Skip to content

RFC cpuidle: (POWER) cpuidle driver for pSeries

Trinabh Gupta linux-pm linuxppc-dev lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest7 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cpuidle: create bootparam "cpuidle.off=1"Documentation/kernel-parameters.txt drivers/cpuidle/cpuidle.c drivers/cpuidle/cpuidle.h +2 more+20 -00 replies
1/7cpuidle: create bootparam "cpuidle.off=1"Documentation/kernel-parameters.txt drivers/cpuidle/cpuidle.c drivers/cpuidle/cpuidle.h +2 more+20 -04 replies
2/7cpuidle: replace xen access to x86 pm_idle and default_idlearch/x86/xen/setup.c drivers/cpuidle/cpuidle.c include/linux/cpuidle.h+8 -10 replies
2/7cpuidle: replace xen access to x86 pm_idle and default_idlearch/x86/xen/setup.c drivers/cpuidle/cpuidle.c include/linux/cpuidle.h+8 -10 replies
3/7cpuidle: stop using pm_idlearch/arm/kernel/process.c arch/sh/kernel/idle.c arch/x86/kernel/process_32.c +3 more+33 -260 replies
3/7cpuidle: stop using pm_idlearch/arm/kernel/process.c arch/sh/kernel/idle.c arch/x86/kernel/process_32.c +3 more+33 -262 replies
4/7cpuidle: (powerpc) Add cpu_idle_wait() to allow switching idle routinesarch/powerpc/Kconfig arch/powerpc/include/asm/system.h arch/powerpc/kernel/idle.c+23 -00 replies
4/7cpuidle: (powerpc) Add cpu_idle_wait() to allow switching idle routinesarch/powerpc/Kconfig arch/powerpc/include/asm/system.h arch/powerpc/kernel/idle.c+23 -04 replies
5/7cpuidle: (POWER) cpuidle driver for pSeriesarch/powerpc/include/asm/system.h arch/powerpc/kernel/sysfs.c arch/powerpc/platforms/pseries/Kconfig +5 more+355 -30 replies
5/7cpuidle: (POWER) cpuidle driver for pSeriesarch/powerpc/include/asm/system.h arch/powerpc/kernel/sysfs.c arch/powerpc/platforms/pseries/Kconfig +5 more+355 -34 replies
6/7cpuidle: (POWER) Enable cpuidle and directly call cpuidle_idle_call() for pSeriesarch/powerpc/platforms/Kconfig arch/powerpc/platforms/pseries/Kconfig arch/powerpc/platforms/pseries/setup.c +1 more+9 -870 replies
6/7cpuidle: (POWER) Enable cpuidle and directly call cpuidle_idle_call() for pSeriesarch/powerpc/platforms/Kconfig arch/powerpc/platforms/pseries/Kconfig arch/powerpc/platforms/pseries/setup.c +1 more+9 -870 replies
7/7cpuidle: (POWER) Handle power_save=offarch/powerpc/include/asm/processor.h arch/powerpc/kernel/idle.c arch/powerpc/platforms/pseries/processor_idle.c+11 -00 replies
7/7cpuidle: (POWER) Handle power_save=offarch/powerpc/include/asm/processor.h arch/powerpc/kernel/idle.c arch/powerpc/platforms/pseries/processor_idle.c+11 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [RFC PATCH V1 0/7] cpuidle: (POWER) cpuidle driver for pSeries

This patch series ports the cpuidle framework for ppc64 platform and implements a cpuidle back-end driver for ppc64 (pSeries) platform. Currently idle states are managed by pseries_{dedicated,shared}_idle_sleep() routines in arch/powerpc/platforms/pseries/setup.c. There are generally two idle states (snooze and cede) that are exploited by these routines based on simple heuristics.

Moving the idle states over to cpuidle framework can take advantage of the advanced heuristics, tunables, and features provided by cpuidle framework. Additional idle states like extended cede with hints would be included and exploited using the cpuidle framework. The statistics and tracing infrastructure provided by the cpuidle framework also helps in enabling power management related tools and help tune the system and applications.

This series aims to maintain compatibility and functionality to existing pSeries idle cpu management code. There are no new functions or idle states added as part of this series. The first three patch in the series are taken from "idle cleanup - v3" posted by Len Brown (https://lkml.org/lkml/2011/4/2/8). These are required to eliminate usage of pm_idle.

[1/7] cpuidle: create bootparam "cpuidle.off=1"
[2/7] cpuidle: replace xen access to x86 pm_idle and default_idle [3/7] cpuidle: stop using pm_idle
[4/7] - Provides arch specific cpu_idle_wait() function required by cpuidle
subsystem.
[5/7] - pseries_idle cpuidle driver
[6/7] - Enables cpuidle for pSeries and directly calls cpuidle_idle_call() [7/7] - Handles powersave=off kernel boot parameter and disables registration
of pseries_idle cpuidle driver.

This patch series has the following dependencies:

(1) Base kernel tree: 3.0.0-rc2
(2) Patch: cpuidle: global registration patch

        https://lkml.org/lkml/2011/6/6/259

This series is tested on ppc64 pSeries POWER7 system with the snooze and cede states.

Thanks,
-Trinabh