Skip to content

ARM: shmobile: PM domain with cpuidle on Mackerel

Rafael J. Wysocki linux-sh 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ARM: shmobile: Software-only testing device for Mackerel+0 -00 replies
2/2ARM: shmobile: A3SM PM domain object for cpuidle connection testing+0 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Demo/RFC][PATCH 0/2] ARM: shmobile: PM domain with cpuidle on Mackerel

Hi,

I normally don't post demo patches, but in this particular case it would be quite difficult to implement the desired functionality on the actual hardware, due to some complicated dependencies present in there.

The first of the following two patches adds a software-only "device" to the Mackerel configuration and a driver for it allowing it to be turned "off" and "on" on demand from user space, via sysfs (the device is initially "on"). This is just a variant of the very simple code I used during my LinuxCon Japan presentation earlier this way.

The second patch adds a PM domain object and makes the "fake" device added by the previous patch belong to it. At the same time, it uses the mechanism introduced by commit cbc9ef0 (PM / Domains: Add preliminary support for cpuidle, v2) to connect cpuidle state 3 to that PM domain. This way, cpuidle state 3 is not used initially until the "fake" device is turned "off" via sysfs (which makes the A3SM domain to be turned "off" and enable cpuidle state 3). Then, if the "fake" device is turned "on" via sysfs (which makes the A3SM domain turn "on") cpuidle state 3 is disabled and state 2 becomes the deepest one available.

The patches in this series are on top of the current linux-next branch of the linux-pm.git tree with the following patches applied:

https://patchwork.kernel.org/patch/1303111/
https://patchwork.kernel.org/patch/1309171/
https://patchwork.kernel.org/patch/1309151/
https://patchwork.kernel.org/patch/1312431/
https://patchwork.kernel.org/patch/1312421/
https://patchwork.kernel.org/patch/1317311/
https://patchwork.kernel.org/patch/1317271/
https://patchwork.kernel.org/patch/1317251/

Thanks,
Rafael