From: Kalle Jokiniemi <kalle.jokiniemi@digia.com>
To: "Woodruff, Richard" <r-woodruff2@ti.com>
Cc: Aaro Koskinen <aaro.koskinen@nokia.com>,
Kevin Hilman <khilman@deeprootsystems.com>,
"jhnikula@gmail.com" <jhnikula@gmail.com>,
"linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>
Subject: RE: [PATCH 1/1] OMAP: I2C: Add mpu wake up latency constraint in i2c
Date: Fri, 9 Oct 2009 07:50:32 +0300 [thread overview]
Message-ID: <1255063832.22468.340.camel@ubuntu> (raw)
In-Reply-To: <13B9B4C6EF24D648824FF11BE8967162039B0BD781@dlee02.ent.ti.com>
On Wed, 2009-10-07 at 21:52 +0300, Woodruff, Richard wrote:
> > From: linux-omap-owner@vger.kernel.org [mailto:linux-omap-
> > owner@vger.kernel.org] On Behalf Of Kalle Jokiniemi
> > Sent: Friday, October 02, 2009 5:59 AM
>
>
> > Yes, this is a good idea in theory, but the reality of wake-up latencies
> > kind-a kill this one. Wake-up from even C1 (MPU INA, CORE ON) takes
> > ~130us on fastest OPP. And when you add 70us of sleep transition into
> > that, you get 200us at minimum.
>
> These values feel a bit on the high side. Have you measured since tweaking your DPLL M/N values?
>
> Are you measuring just across WFI or adding in some part of the idle code path?
For the numbers I mentioned, the path from start of omap_sram_idle to
end of omap_sram_idle was included. And one can't really not include it,
since it is run with interrupts disabled.
>
> > For us, the 500us constraint seems to work quite nicely. It removes the
> > problems we had with i2c transfers timing out with off mode, and
> > restores average transfer times (from clk_enable to clk_disable) to few
> > hundred us (that were observed with retention).
>
> Some of the historic I2C timeout issues were from the wakeup sources
> not being programmed properly.
There could be such issues, I have not investigated for other reasons
causing the time-outs.
>
> Your constraint in my understanding is more about saving power.
True.
> Today cpuidle doesn't predict interrupt events very well. As such the
> huge timeout used with i2c will never gate an off mode attempt. You
> will loose in context save and restore with out constraint.
True, that is why the constraint is needed on latency basis.
- Kalle
>
> I floated some idea a while back on pm list to try and do something
> really simple with irqs. ... take a timestamp on last irq, when
> cpuilde goes to sleep if current time since last irq is too near then
> choose safe sleep state. Comments I got at that time was some didn't
> like extra overhead on irq path. However, I don't know I agree with
> that.
>
> Regards,
> Richard W.
next prev parent reply other threads:[~2009-10-09 4:50 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-17 16:28 [PATCH 0/1] OMAP: I2C: Add mpu wake up latency constraint Kalle Jokiniemi
2009-09-17 16:28 ` [PATCH 1/1] OMAP: I2C: Add mpu wake up latency constraint in i2c Kalle Jokiniemi
2009-09-30 16:36 ` Kevin Hilman
2009-10-01 7:44 ` Kalle Jokiniemi
2009-10-01 11:41 ` Aaro Koskinen
2009-10-02 10:59 ` Kalle Jokiniemi
2009-10-07 18:52 ` Woodruff, Richard
2009-10-09 4:50 ` Kalle Jokiniemi [this message]
2009-10-01 14:58 ` Kevin Hilman
2009-10-01 6:10 ` Jarkko Nikula
2009-10-01 7:56 ` Kalle Jokiniemi
2009-10-05 17:08 ` Pandita, Vikram
2009-10-07 10:10 ` Kalle Jokiniemi
2009-10-07 10:49 ` Nishanth Menon
[not found] ` <1254927643.22468.315.camel@ubuntu>
2009-10-07 15:34 ` Sonasath, Moiz
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=1255063832.22468.340.camel@ubuntu \
--to=kalle.jokiniemi@digia.com \
--cc=aaro.koskinen@nokia.com \
--cc=jhnikula@gmail.com \
--cc=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=r-woodruff2@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