From: Scott Wood <scottwood@freescale.com>
To: Thomas Waldecker <Thomas.Waldecker@tqs.de>
Cc: "Linux PPC dev mailing list \(linuxppc-dev@lists.ozlabs.org\)"
<linuxppc-dev@lists.ozlabs.org>
Subject: Re: Why is the e500v2 core not using cpuidle?
Date: Mon, 4 Feb 2013 14:02:35 -0600 [thread overview]
Message-ID: <1360008155.14901.4@snotra> (raw)
In-Reply-To: <B88C075EE1324644BA0452D5EFDD5828139523EA@TQ-MAIL.tq-net.de> (from Thomas.Waldecker@tqs.de on Sat Feb 2 03:41:27 2013)
On 02/02/2013 03:41:27 AM, Thomas Waldecker wrote:
> Hi Scott,
>=20
> >> Why is there no support for the cpuidle framework?
> > Because nobody implemented it. :-)
> That's the reason I thought before :-)
>=20
> > The only reason I can think of to implement it on this chip would =20
> be to
> > dynamically choose when to enter nap versus doze, rather than always
> > just using doze. It's not clear whether the difference in power
> > savings is worth it -- do you have any way of measuring?
>=20
> Is the e500 only using doze? There are comments in the file
> arch/powerpc/kernel/idle_e500.S
> which are stating:
> /* Go to NAP or DOZE now */
> or
> /* Return from NAP/DOZE ...*/
>=20
> and because of this comments I thought that both modes are in use.
e500 can use nap instead, but it's statically chosen via sysctl. The =20
default is doze. Entering nap requires flushing the cache, so you'd =20
only use nap if you care more about lowering idle power consumption =20
than performance, and you wake infrequently enough that you're not =20
burning more power on the cache flushes than you save with the deeper =20
idle state.
> I have a way of measuring the power and it is also a small part of my =20
> masterthesis,
> but it is not very meaningful because at the measuring point there =20
> are other peripheral
> components too.
>=20
> According to the comments can I activate the nap mode somehow?
echo 1 > /proc/sys/kernel/powersave-nap
If you're able to measure a meaningful difference between the two, I'd =20
be interested in hearing your results.
> >> How can I debug the e500 idle modes?
> >> Are there any statistics?
> > Top reports idle percentage...
> If the e500 and e500v2 are indeed using only the doze mode it
> would be enough statistics.
Whichever mode you have selected, that will be used for all idling. =20
Statistics would only be useful if the idle mode were dynamically =20
chosen.
> Such statistics would be great for the doze, nap (and sleep for the =20
> whole package).
The only way you'll get into sleep mode is through /sys/power/state.
-Scott=
next prev parent reply other threads:[~2013-02-04 20:02 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-01 12:06 Why is the e500v2 core not using cpuidle? Thomas Waldecker
2013-02-01 18:15 ` Scott Wood
2013-02-02 9:41 ` AW: " Thomas Waldecker
2013-02-04 20:02 ` Scott Wood [this message]
-- strict thread matches above, loose matches on Subject: below --
2013-02-07 12:19 Thomas Waldecker
2013-02-07 18:01 ` Scott Wood
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=1360008155.14901.4@snotra \
--to=scottwood@freescale.com \
--cc=Thomas.Waldecker@tqs.de \
--cc=linuxppc-dev@lists.ozlabs.org \
/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).