diff options
| author | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-30 13:22:02 -1000 |
|---|---|---|
| committer | Linus Torvalds <torvalds@linux-foundation.org> | 2026-10-30 13:22:02 -1000 |
| commit | 7306ea08c00efaf6406281bd113f7d657be2e6c8 (patch) | |
| tree | c2a2a24ed420f2e380ae542628fbfba185eca543 /Documentation | |
| parent | e3e15872e77f3feecd831eccfb753b9af916f387 (diff) | |
| parent | 018f42c9ac5fa9701fc09514ed0739ab72708331 (diff) | |
Merge tag 'pm-7.4-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm
Pull power management fixes from Rafael Wysocki:
"These address assorted issues in the power management code and update
documentation:
- Fix potential out-of-bounds access in deferred reset in the cpufreq
statistics code (Zhongqiu Han)
- Cancel HWP notify work in the intel_pstate driver cleanup to
prevent possible use-after-free from occurring (Tristan Madani)
- Adjust state names and descriptions for ACPI _LPI idle states in
the intel_idle driver to make them follow the driver's idle state
naming convention (Rafael Wysocki)
- Document the new pm_runtime_use_autosuspend() undo mechanism that
triggers automatically on driver exit (Joshua Crofts)
- Do not call suspend_ops->begin()/end() for suspend-to-idle to avoid
driver confusion (Ovidiu Panait)
- Make the energy model management code allocate the cpumask for
non-CPU perf domains to prevent out-of-bounds reads from occurring
in the EM netlink interface (Karl Mehltretter)"
* tag 'pm-7.4-rc1-2' of git://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm:
PM: runtime: clarify pm_runtime_use_autosuspend() undo mechanism
cpufreq: stats: Fix potential out-of-bounds access in deferred reset
PM: suspend: Do not call suspend_ops->begin()/end() for s2idle
intel_idle: Adjust state names and descriptions for _LPI states
PM: EM: allocate the cpumask for every perf domain
cpufreq: intel_pstate: cancel HWP notify work in driver cleanup
Diffstat (limited to 'Documentation')
| -rw-r--r-- | Documentation/admin-guide/pm/intel_idle.rst | 12 | ||||
| -rw-r--r-- | Documentation/power/runtime_pm.rst | 10 |
2 files changed, 12 insertions, 10 deletions
diff --git a/Documentation/admin-guide/pm/intel_idle.rst b/Documentation/admin-guide/pm/intel_idle.rst index 996e5bd83c42..d1a6251790b8 100644 --- a/Documentation/admin-guide/pm/intel_idle.rst +++ b/Documentation/admin-guide/pm/intel_idle.rst @@ -145,11 +145,13 @@ for the other idle state types (C2 and C3) the target residency value is 3 times the exit latency (again, that is because it reflects the target residency to exit latency ratio in the majority of cases for the processor models recognized by ``intel_idle``). The name of the idle state (to be returned by the ``name`` -idle state attribute in ``sysfs``) is either "Cx_LPI" (if it comes from ``_LPI`` -processing) or "Cx_ACPI", where x is the index of that idle state in the final -list (note that the minimum value of x is 1, because 0 is reserved for the -"polling" state), and its target residency is based on the exit latency value. -All of the idle states in the final list are enabled by default in this case. +idle state attribute in ``sysfs``) either is equal to the state name value that +comes from ``_LPI`` processing (with the possible fallback to "Cx_LPI" if the +state name is not provided) or it is "Cx_ACPI", where x is the index of that +idle state in the final list (note that the minimum value of x is 1, because 0 +is reserved for the "polling" state), and its target residency is based on the +exit latency value. All of the idle states in the final list are enabled by +default in this case. .. _intel-idle-initialization: diff --git a/Documentation/power/runtime_pm.rst b/Documentation/power/runtime_pm.rst index e4407b687f8b..40a5c23d5259 100644 --- a/Documentation/power/runtime_pm.rst +++ b/Documentation/power/runtime_pm.rst @@ -425,11 +425,11 @@ but it also allows more flexibility in the handling of devices during the removal of their drivers. Drivers in ->remove() callback should undo the runtime PM changes done -in ->probe(). Usually this means calling pm_runtime_disable(), -pm_runtime_dont_use_autosuspend() etc. Alternatively, drivers can use -devm_pm_runtime_enable() during probe, which automatically takes care of -calling pm_runtime_disable() and pm_runtime_dont_use_autosuspend() upon driver -detachment. +in ->probe(). Usually this means calling pm_runtime_disable() etc. +Alternatively, drivers can use devm_pm_runtime_enable() during probe, which +automatically takes care of calling pm_runtime_disable() upon driver detachment. +Any pm_runtime_use_autosuspend() calls in a driver will be automatically undone +on driver exit. The user space can effectively disallow the driver of the device to power manage it at run time by changing the value of its /sys/devices/.../power/control |
