All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Sripathy, Vishwanath" <vishwanath.bs@ti.com>
To: "Cousson, Benoit" <b-cousson@ti.com>,
	"Gulati, Shweta" <shweta.gulati@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: RE: [PATCH V2] OMAP3: PM: Workaround for DPLL3 Lock issue
Date: Wed, 19 May 2010 19:20:13 +0530	[thread overview]
Message-ID: <FCCFB4CDC6E5564B9182F639FC356087030527036D@dbde02.ent.ti.com> (raw)
In-Reply-To: <4BF3D23F.6070308@ti.com>

Hi Benoit,

> -----Original Message-----
> From: Cousson, Benoit
> Sent: Wednesday, May 19, 2010 5:28 PM
> To: Gulati, Shweta
> Cc: linux-omap@vger.kernel.org; Sripathy, Vishwanath
> Subject: Re: [PATCH V2] OMAP3: PM: Workaround for DPLL3 Lock issue
> 
> Hi Vishwa,
> 
> On 5/13/2010 12:12 PM, shweta gulati wrote:
> > From: Vishwanath Sripathy<vishwanath.bs@ti.com>
> >
> > OMAP3430/3630 has a Silicon bug because of which SDRC is
> > released from IDLE even before Core DPLL has locked. This leads
> > to undefined behaviour of SDRC DLL.
> >
> > This patch has workaround for the same.
> >
> > Description of WA for 3430:
> > Initialization:
> > 	Disable DPLL3 automatic mode by default. Issue will not be faced as DPLL3
> > 	is always locked.
> >
> > Before CORE Voltage Domain (VDD2) Sleep Transition to RETENTION or OFF mode:
> > 1.	Reduce DPLL3 M2 Frequency to get L3 running at OPP2 Frequency
> > 	(by changing M2 Divider value). This is increasing the period duration of
> > 	one L3 clock cycle.
> > 	o	In case of CORE is at OPP3 (166MHz@1.15V):
> > 	"	Lower the frequency to 83MHz.
> >
> > 	o	In case of CORE is at OPP2 (83MHz@1.05V):
> > 	"	Keep the frequency as it is (83MHz).
> >
> > 2.	Increase CORE Voltage to 1.2V. This is reducing the timing duration of the
> > 	critical path signal which will now fit to one L3 clock cycle.
> >
> > 3.	Enable DPLL3 Automatic mode. This will ensure proper transition to
> > 	RETENTION or OFF mode.
> >
> > After CORE Voltage Domain Wakeup Transition from RETENTION or OFF mode:
> > 1.	Disable DPLL3 Automatic mode.
> > 2.	Restore previous DPLL3 M2 Frequency and CORE Voltage values.
> >
> > Description of WA for 3630:
> > Initialization:
> > 	Disable DPLL3 automatic mode by default. Issue will not be faced as DPLL3 is
> always locked.
> >
> > Before CORE Voltage Domain(VDD2) Sleep Transition to RETENTION or OFF mode:
> > 1.	Reduce DPLL3 M2 Frequency to get L3 running at OPP50 Frequency
> > 	(by changing M2 Divider value) and set VDD2 Voltage for OPP100.
> > 	This is increasing the period duration of one L3 clock cycle and reducing
> > 	the timing duration of the critical path signal which will now fit to one
> > 	L3 clock cycle.
> > 	o	In case of CORE is at OPP100 (L3=200MHz, VDD2=1.1375V):
> > 		"	Lower the frequency to 100MHz.
> > 		"	Keep the voltage as it is (1.1375V).
> >
> > 	o	In case of CORE is at OPP50 (L3=100MHz, VDD2=0.93V):
> > 		"	Keep the frequency as it is (100MHz).
> > 		"	Increase the voltage to 1.1375V.
> >
> > 2.	Enable DPLL3 Automatic mode. This will ensure proper transition to
> > 	RETENTION or OFF mode.
> >
> > After CORE Voltage Domain Wakeup Transition from RETENTION or OFF mode:
> > 1.	Disable DPLL3 Automatic mode.
> > 2.	Restore previous DPLL3 M2 Frequency and CORE Voltage values.
> >
> > Also OSWR should not be attempted if DPLL3 has locked. This should be done as
> part of OSWR patch series.
> >
> > Patch tested on 3430SDP and 3630 ZOOM3.
> >
> 
> Do you have a more accurate description of the bug? What is the defect ID?
> 
Defect Id is i581. 
> The subject is about DPLL3 lock issue, and the description is all about
> the transition to CORE RET or OFF and playing with voltage... and why
> OSWR is affected as well?
> I'm a little bit confused by that...
> 
> Is this bug dependent of the target power state? What about INACTIVE?
The root cause of the issue is that SDRC IDLEREQ is deasserted before DPLL3 has locked. Because of this DLL may/may not lock based on Process Voltage Temperature conditions. The bug can occur when DPLL3 automatic transition is enabled. So DPLL3 automatic transition is disabled by default and it is enabled only when system is entering ret/off state (to facilitate voltage scaling). So when system is entering ret/off state, WA is applied (since DPLL3 autoidle is enabled, we can possibly hit the issue; hence the WA)

Regarding OSWR, as per errata i580, DPLL3 cannot be kept Locked when CORE is in OSWR state if DPLL3 is set in Manual Lock mode. So if DPLL3 autoidle is not enabled (manual lock mode), then we should not attempt to goto Core OSWR. 

> 
> Why setting the CORE at 1.2v when the description is only considering
> 1.1375v?
> 
For OMAP3430, as per errata VDD2 should be set to 1.2V before attempting off/retention. 1.1375V applies for OMAP3630.

Regards
Vishwa
> Thanks,
> Benoit

  reply	other threads:[~2010-05-19 13:50 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-13 10:12 [PATCH V2] OMAP3: PM: Workaround for DPLL3 Lock issue shweta gulati
2010-05-14 17:58 ` Kevin Hilman
2010-05-18 15:40   ` Sripathy, Vishwanath
2010-05-18 16:36     ` Kevin Hilman
2010-05-19 10:12       ` Sripathy, Vishwanath
2010-05-19 11:57 ` Benoit Cousson
2010-05-19 13:50   ` Sripathy, Vishwanath [this message]
2010-05-19 14:30     ` Benoit Cousson
2010-05-19 14:37       ` Sripathy, Vishwanath
2010-05-19 16:04         ` Benoit Cousson
2010-05-21  4:49           ` Girish S G

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=FCCFB4CDC6E5564B9182F639FC356087030527036D@dbde02.ent.ti.com \
    --to=vishwanath.bs@ti.com \
    --cc=b-cousson@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=shweta.gulati@ti.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.