From: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
To: "Nayak, Rajendra" <rnayak@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"Derrick, David" <dderrick@ti.com>,
"Woodruff, Richard" <r-woodruff2@ti.com>
Subject: RE: [PATCH 01/04] OMAP3: PM: Disable PER DPLL idle before OFF, reduces OFF latency by 20ms
Date: Wed, 17 Jun 2009 15:47:50 +0300 [thread overview]
Message-ID: <1245242870.6847.161.camel@ubuntu> (raw)
In-Reply-To: <5A47E75E594F054BAF48C5E4FC4B92AB0305A541E6@dbde02.ent.ti.com>
On Wed, 2009-06-17 at 15:38 +0300, Nayak, Rajendra wrote:
>
> >-----Original Message-----
> >From: Kalle Jokiniemi [mailto:kalle.jokiniemi@digia.com]
> >Sent: Wednesday, June 17, 2009 3:56 PM
> >To: Nayak, Rajendra
> >Cc: linux-omap@vger.kernel.org; Derrick, David; Woodruff, Richard
> >Subject: RE: [PATCH 01/04] OMAP3: PM: Disable PER DPLL idle
> >before OFF, reduces OFF latency by 20ms
> >
> >On Wed, 2009-06-17 at 12:50 +0300, Nayak, Rajendra wrote:
> >> >-----Original Message-----
> >> >From: Kalle Jokiniemi [mailto:kalle.jokiniemi@digia.com]
> >> >Sent: Wednesday, June 17, 2009 1:17 PM
> >> >To: Nayak, Rajendra
> >> >Cc: linux-omap@vger.kernel.org; Derrick, David; Woodruff, Richard
> >> >Subject: Re: [PATCH 01/04] OMAP3: PM: Disable PER DPLL idle
> >> >before OFF, reduces OFF latency by 20ms
> >> >
> >> >Hi Rajendra,
> >> >
> >> >On Tue, 2009-06-16 at 14:52 +0300, Rajendra Nayak wrote:
> >> >> If autoidle for DPLL4 is enabled in the stored scratchpad
> >> >> value of CM_AUTOIDLE_PLL then there is an added delay by
> >> >> the boot ROM when coming out of OFF mode.
> >> >> The patch disables this bitfield in the stored scratchpad value.
> >> >>
> >> >> This should significantly reduce CORE OFF latency and also
> >> >> bring down the threshold for CORE OFF, making OFF affordable
> >> >> even with smaller sleep times.
> >> >
> >> >I did some measurements on RX-51 with this patch, and it
> >seems it does
> >> >not reduce latency, it increases it by few hundred us.
> >> >
> >> >Servicing an empty timer interrupt from off mode (measured from VDD1
> >> >ramp up to start of VDD1 ramp down):
> >> >
> >> >with dpll4 patch : ~14100us
> >> >without patch : ~13600us
> >> >
> >> >I attached pictures of both situations.
> >> >
> >> >My kernel had only C7 state enabled.
> >> >
> >> >Have you measured the latency effects on SDP or some other board?
> >>
> >> I haven't done the latency measurements on SDP yet, but
> >David had done it
> >> sometime back, using a different codebase though.
> >
> >OK, I also used our internal code base. Though the PM functionality is
> >pretty much the same as in l-o:pm branch.
> >
> >>
> >> Can you explain more on how you are measuring the latency
> >here, I am a bit
> >> confused. This is supposed to bring down the OFF wakeup
> >latency, the sleep latency
> >> remains the same.
> >
> >I'm doing a timer interrupt periodically. Servicing that timer
> >interrupt
> >takes the same amount of time every time. What varies (with the patch)
> >is the transition times from off to active and back to off.
> >
> >In the pictures the top graph shows current and bottom graph shows the
> >VDD1 and VDD2 voltages. I zoomed from the pictures the interval from
> >when VDD1 goes up, to the point when it starts to go down again.
> >
> >So I measured: wakeup latency + interrupt service + sleep latency.
>
> Is the boot ROM different on the OMAP devices on nokia h/w or is it
> the same as that on the SDP?
I have heard that our ROM version would be somehow older version, but I
really don't have any facts on that matter.
- Kalle
>
> >
> >- Kalle
> >
> >>
> >> >
> >> >- Kalle
> >> >
> >> >
> >> >> This patch however does not optimize the C state threshold for
> >> >> CORE OFF states based on the new latency.
> >> >>
> >> >> Signed-off-by: Rajendra Nayak <rnayak@ti.com>
> >> >> ---
> >> >> arch/arm/mach-omap2/control.c | 7 +++++++
> >> >> 1 files changed, 7 insertions(+), 0 deletions(-)
> >> >>
> >> >> diff --git a/arch/arm/mach-omap2/control.c
> >> >b/arch/arm/mach-omap2/control.c
> >> >> index c9407c0..a7159a9 100644
> >> >> --- a/arch/arm/mach-omap2/control.c
> >> >> +++ b/arch/arm/mach-omap2/control.c
> >> >> @@ -238,6 +238,13 @@ void omap3_save_scratchpad_contents(void)
> >> >> cm_read_mod_reg(PLL_MOD, CM_CLKEN);
> >> >> prcm_block_contents.cm_autoidle_pll =
> >> >> cm_read_mod_reg(PLL_MOD,
> >> >OMAP3430_CM_AUTOIDLE_PLL);
> >> >> + /*
> >> >> + * ROM restore takes 20mS longer if PER idle is enabled
> >> >before OFF.
> >> >> + * Clear feature before sleep. The origional idle state is
> >> >> + * restored by software as part of wake procedure.
> >> >> + */
> >> >> + prcm_block_contents.cm_autoidle_pll &=
> >> >~OMAP3430_AUTO_PERIPH_DPLL_MASK;
> >> >> +
> >> >> prcm_block_contents.cm_clksel1_pll =
> >> >> cm_read_mod_reg(PLL_MOD,
> >> >OMAP3430_CM_CLKSEL1_PLL);
> >> >> prcm_block_contents.cm_clksel2_pll =
> >> >
> >
> >
> >
next prev parent reply other threads:[~2009-06-17 12:47 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1245224794.6847.141.camel@ubuntu>
2009-06-17 9:50 ` [PATCH 01/04] OMAP3: PM: Disable PER DPLL idle before OFF, reduces OFF latency by 20ms Nayak, Rajendra
2009-06-17 10:26 ` Kalle Jokiniemi
2009-06-17 12:38 ` Nayak, Rajendra
2009-06-17 12:47 ` Kalle Jokiniemi [this message]
2009-06-17 13:01 ` Nayak, Rajendra
2009-06-29 18:58 ` Kevin Hilman
2009-06-30 5:58 ` Nayak, Rajendra
2009-06-30 22:24 ` Kevin Hilman
2009-06-30 22:32 ` Paul Walmsley
2009-07-01 5:39 ` Nayak, Rajendra
[not found] ` <87zlbov64k.fsf@deeprootsystems.com>
2009-07-01 14:28 ` Woodruff, Richard
2009-07-01 14:36 ` Kevin Hilman
2009-06-16 11:52 Rajendra Nayak
2009-06-16 12:52 ` Högander Jouni
2009-06-16 13:17 ` Nayak, Rajendra
2009-06-16 14:21 ` Kevin Hilman
2009-06-16 16:09 ` Derrick, David
2009-06-17 8:33 ` 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=1245242870.6847.161.camel@ubuntu \
--to=kalle.jokiniemi@digia.com \
--cc=dderrick@ti.com \
--cc=linux-omap@vger.kernel.org \
--cc=r-woodruff2@ti.com \
--cc=rnayak@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