PM: Provide a config snippet for disabling PM
PATCH 1/1 PM: Provide a config snippet for disabling PM
A frequent source of build problems is poor handling of optional PM support, almost all development is done with the PM options enabled but they can be turned off. Currently few if any of the build test services do this as standard as there is no standard config for it and the use of selects and def_bool means that simply setting CONFIG_PM=n doesn't do what is expected. To make this easier provide a fragement that can be used with KCONFIG_ALLCONFIG to force PM off.
CONFIG_XEN is disabled as Xen uses hibernation callbacks which end up turning on power management on architectures with Xen. Some cpuidle implementations on ARM select PM so CONFIG_CPU_IDLE is disabled, and some ARM architectures unconditionally enable PM so they are also disabled.
--- MAINTAINERS | 1 + kernel/configs/nopm.config | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 kernel/configs/nopm.config
MAINTAINERS +1 -0
@@ -10895,6 +10895,7 @@ F: include/linux/pm.h F: include/linux/pm_* F: include/linux/powercap.h F: drivers/powercap/ +F: kernel/configs/nopm.config POWER STATE COORDINATION INTERFACE (PSCI) M: Mark Rutland <[email protected]>
kernel/configs/nopm.config new file +15 -0
@@ -0,0 +1,15 @@ +CONFIG_PM=n +CONFIG_SUSPEND=n +CONFIG_HIBERNATION=n + +# Triggers PM on OMAP +CONFIG_CPU_IDLE=n + +# Triggers enablement via hibernate callbacks +CONFIG_XEN=n + +# ARM/ARM64 architectures that select PM unconditionally +CONFIG_ARCH_OMAP2PLUS_TYPICAL=n +CONFIG_ARCH_RENESAS=n +CONFIG_ARCH_TEGRA=n +CONFIG_ARCH_VEXPRESS=n
Signature · 1 line
2.15.0
Rafael J. Wysocki
maintainerQuoted 8 lines · Mark Brown
A frequent source of build problems is poor handling of optional PM support, almost all development is done with the PM options enabled but they can be turned off. Currently few if any of the build test services do this as standard as there is no standard config for it and the use of selects and
def_boolmeans that simply settingCONFIG_PM=ndoesn't do what is expected. To make this easier provide a fragement that can be used withKCONFIG_ALLCONFIGto force PM off.
Quoted 7 lines
CONFIG_XENis disabled as Xen uses hibernation callbacks which end up turning on power management on architectures with Xen. Some cpuidle implementations on ARM select PM soCONFIG_CPU_IDLEis disabled, and some ARM architectures unconditionally enable PM so they are also disabled.Signed-off-by Mark Brown <[email protected]>
I'm going to apply this shortly, sorry for the delay.
Quoted 42 lines
--- MAINTAINERS | 1 + kernel/configs/nopm.config | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 kernel/configs/nopm.configMAINTAINERS +1
-0@@ -10895,6 +10895,7 @@ F: include/linux/pm.h F: include/linux/pm_* F: include/linux/powercap.h F: drivers/powercap/ +F: kernel/configs/nopm.config POWER STATE COORDINATION INTERFACE (PSCI) M: Mark Rutland <[email protected]>kernel/configs/nopm.config new file +15
-1@@ -0,0 +1,15 @@ +CONFIG_PM=n +CONFIG_SUSPEND=n +CONFIG_HIBERNATION=n + +# Triggers PM on OMAP +CONFIG_CPU_IDLE=n + +# Triggers enablement via hibernate callbacks +CONFIG_XEN=n + +# ARM/ARM64 architectures that select PM unconditionally +CONFIG_ARCH_OMAP2PLUS_TYPICAL=n +CONFIG_ARCH_RENESAS=n +CONFIG_ARCH_TEGRA=n +CONFIG_ARCH_VEXPRESS=n --2.15.0
Quoted 6 lines · Rafael J. Wysocki
Quoted 2 lines · Mark Brown
A frequent source of build problems is poor handling of optional PM support, almost all development is done with the PM options enabled
I'm going to apply this shortly, sorry for the delay.
Thanks! I sent it just before the merge window so I was expecting to
have to resend even when I originally posted it.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20171129/bb1c411d/attachment.sig>
Rafael J. Wysocki
AppliedQuoted 45 lines · CET Mark Brown
A frequent source of build problems is poor handling of optional PM support, almost all development is done with the PM options enabled but they can be turned off. Currently few if any of the build test services do this as standard as there is no standard config for it and the use of selects and
def_boolmeans that simply settingCONFIG_PM=ndoesn't do what is expected. To make this easier provide a fragement that can be used withKCONFIG_ALLCONFIGto force PM off.
CONFIG_XENis disabled as Xen uses hibernation callbacks which end up turning on power management on architectures with Xen. Some cpuidle implementations on ARM select PM soCONFIG_CPU_IDLEis disabled, and some ARM architectures unconditionally enable PM so they are also disabled.Signed-off-by Mark Brown <[email protected]>--- MAINTAINERS | 1 + kernel/configs/nopm.config | 15 +++++++++++++++ 2 files changed, 16 insertions(+) create mode 100644 kernel/configs/nopm.configMAINTAINERS +1
-0@@ -10895,6 +10895,7 @@ F: include/linux/pm.h F: include/linux/pm_* F: include/linux/powercap.h F: drivers/powercap/ +F: kernel/configs/nopm.config POWER STATE COORDINATION INTERFACE (PSCI) M: Mark Rutland <[email protected]>kernel/configs/nopm.config new file +5
-0@@ -0,0 +1,15 @@ +CONFIG_PM=n +CONFIG_SUSPEND=n +CONFIG_HIBERNATION=n + +# Triggers PM on OMAP
kernel/configs/nopm.config line 15
Quoted 10 lines
kernel/configs/nopm.config new file +10
-0+CONFIG_CPU_IDLE=n + +# Triggers enablement via hibernate callbacks +CONFIG_XEN=n + +# ARM/ARM64 architectures that select PM unconditionally +CONFIG_ARCH_OMAP2PLUS_TYPICAL=n +CONFIG_ARCH_RENESAS=n +CONFIG_ARCH_TEGRA=n +CONFIG_ARCH_VEXPRESS=n
Applied, thanks!