From: Eduardo Valentin <eduardo.valentin@ti.com>
To: "Premi, Sanjeev" <premi@ti.com>
Cc: "Valentin, Eduardo" <eduardo.valentin@ti.com>,
Paul Walmsley <paul@pwsan.com>,
Kevin Hilman <khilman@deeprootsystems.com>,
Linux-OMAP <linux-omap@vger.kernel.org>,
Linux-ARM <linux-arm-kernel@lists.infradead.org>
Subject: Re: [PATCH 2/2] OMAP3: PM: Do not rely on ROM code to restore CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL
Date: Thu, 14 Apr 2011 20:42:16 +0300 [thread overview]
Message-ID: <20110414174216.GA3509@zarco> (raw)
In-Reply-To: <B85A65D85D7EB246BE421B3FB0FBB593024C960470@dbde02.ent.ti.com>
Hello Sanjeev,
On Thu, Apr 14, 2011 at 12:36:17PM -0500, Premi, Sanjeev wrote:
> > -----Original Message-----
> > From: Valentin, Eduardo
> > Sent: Thursday, April 14, 2011 11:04 PM
> > To: Premi, Sanjeev
> > Cc: Valentin, Eduardo; Paul Walmsley; Kevin Hilman;
> > Linux-OMAP; Linux-ARM
> > Subject: Re: [PATCH 2/2] OMAP3: PM: Do not rely on ROM code
> > to restore CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL
> >
> > Hello Sanjeev,
> >
> >
> > On Thu, Apr 14, 2011 at 09:13:14AM -0500, Premi, Sanjeev wrote:
> > > > -----Original Message-----
> > > > From: linux-omap-owner@vger.kernel.org
> > > > [mailto:linux-omap-owner@vger.kernel.org] On Behalf Of
> > > > Valentin, Eduardo
> > > > Sent: Wednesday, April 13, 2011 8:51 PM
> > > > To: Paul Walmsley; Kevin Hilman
> > > > Cc: Linux-OMAP; Linux-ARM; Valentin, Eduardo
> > > > Subject: [PATCH 2/2] OMAP3: PM: Do not rely on ROM code to
> > > > restore CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL
> > > >
> > > > As per OMAP3 erratum (i671), ROM code adds extra latencies while
> > > > restoring CM_AUTOIDLE_PLL register, if AUTO_PERIPH_DPLL
> > is equal to 1.
> > > >
> > > > This patch stores 0's in scratchpad content area corresponding to
> > > > AUTO_PERIPH_DPLL, to prevent ROM code to try to lock per
> > DPLL, since
> > > > it won't respect proper programing scheme.
> > > >
> > > > This register is then stored in prcm context. The saving
> > and restore
> > > > is now done by kernel side.
> > > >
> > > > Here follow the erratum description
> > > >
> > > > DESCRIPTION
> > > >
> > > > After OFF mode transition, among many restorations, the ROM
> > > > Code restores the
> > > > CM_AUTOIDLE_PLL register, and after that, it tries to relock
> > > > the PER DPLL.
> > > >
> > > > In case the restoration data stored in scratchpad memory
> > > > contains a field
> > > > CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL = 1, then the way the ROM
> > > > Code restores and
> > > > locks the PER DPLL does not respect the PER DPLL
> > programming scheme.
> > > >
> > > > In that case, the DPLL might not lock. Meanwhile, when trying
> > > > to lock the PER
> > > > DPLL, the ROM Code does not hang. Only extra latencies are
> > > > introduced at
> > > > wake-up.
> > > >
> > >
> > > [sp] You seem to have missed this patch:
> > > http://marc.info/?l=linux-arm-kernel&m=129735383925285&w=2
> >
> > Right,
> >
> > But that one doesn't clear the AUTO_PERIPH_DPLL bits in the
> > scratchpad area
> > to avoid rom code extra overhead (check my patch description).
> >
> > Besides, why do we want to add more code inside omap_sram_idle,
> > if we have better places to this S&R?
>
> Didn't see that as a comment earlier?
Better later than never :-) ?
>
> ~sanjeev
>
> >
> >
> > >
> > > ~sanjeev
> > >
> > >
> >
> > All best,
> >
> > --
> > Eduardo Valentin
> >
Cheers,
--
Eduardo Valentin
next prev parent reply other threads:[~2011-04-14 17:42 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-13 15:21 [PATCH 0/2] Couple of fixes regarding CM_AUTOIDLE_PLL register Eduardo Valentin
2011-04-13 15:21 ` [PATCH 1/2] OMAP2+: PM: Fix the saving of CM_AUTOIDLE_PLL register on scratchpad area Eduardo Valentin
2011-04-13 15:21 ` [PATCH 2/2] OMAP3: PM: Do not rely on ROM code to restore CM_AUTOIDLE_PLL.AUTO_PERIPH_DPLL Eduardo Valentin
2011-04-14 14:13 ` Premi, Sanjeev
2011-04-14 17:33 ` Eduardo Valentin
2011-04-14 17:36 ` Premi, Sanjeev
2011-04-14 17:42 ` Eduardo Valentin [this message]
2011-04-20 19:35 ` Paul Walmsley
2011-04-20 19:32 ` [PATCH 0/2] Couple of fixes regarding CM_AUTOIDLE_PLL register Paul Walmsley
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=20110414174216.GA3509@zarco \
--to=eduardo.valentin@ti.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-omap@vger.kernel.org \
--cc=paul@pwsan.com \
--cc=premi@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).