[linux-pm] [PATCH] tracing, perf: add more power related events

Jean Pihet jean.pihet at newoldbits.com
Mon Sep 6 04:27:13 PDT 2010

On Mon, Sep 6, 2010 at 12:42 PM, Thomas Renninger <trenn at suse.de> wrote:
>> I will re-start a thread with the full patch and with both lkml and
>> linux-omap in Cc.
> discuss at lesswatts.org and linux-pm at lists.linux-foundation.org
> are also lists where people could be interested in such stuff.
> Could you explain a bit what these ARM specific power domains are then, please.
Sure. This is OMAP specific but could easily be used on all platforms.
To make it short, the OMAP chip is organized in power domains (16 in
OMAP3) where you can adjust the power supply voltage. In each power
domain you have different clocks that you can enable, disable or
change the rate of. In order to reach an efficient low power mode you
need to ensure that all clocks in a clock domain are idled or cut off
(automatically by the HW or with the intervention of SW drivers).

The HW complexity requires the tracing of all those clocks/power
states, that is why new events are proposed.

> One idea I had after seeing these:
> Would it make sense to additionally add one or several device power perf event(s)?
> bluetooth, wireless, usb, cameras, whatever, could register it by name,
> like you've done it with the power domains.
> E.g. I had a problem with 2.6.31 where bluetooth was powered up/activated at
> boot time, while it got activated ondemand before. Cost me some Watts and quite
> some time to find that out.
> Showing perf power events when bluetooth gets activated and put into lower power
> states again (and the same for other devices), sounds like a good idea?
That makes sense. The proposed clock/power events can be used by any
device, might it be chipset internal or external. Of course a proper
API or naming convention is needed.

>     Thomas

Hope this helps,

More information about the linux-pm mailing list