]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Clear HWP desired on suspend/shutdown and offline
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 3 Nov 2021 18:43:47 +0000 (19:43 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 4 Nov 2021 18:48:47 +0000 (19:48 +0100)
commit670de0564ebb1d39f26e8f039b8ce4059fb8e118
tree06b28b5ff13d302c1c99fa85424a45a3a86ed494
parent45ae4a9aadf5dec489f6d7d319c26c44534de7f4
cpufreq: intel_pstate: Clear HWP desired on suspend/shutdown and offline

Commit 611b137298a8 ("cpufreq: intel_pstate: Implement the
->adjust_perf() callback") caused intel_pstate to use nonzero HWP
desired values in certain usage scenarios, but it did not prevent
them from being leaked into the confugirations in which HWP desired
is expected to be 0.

The failing scenarios are switching the driver from the passive
mode to the active mode and starting a new kernel via kexec() while
intel_pstate is running in the passive mode.

To address this issue, ensure that HWP desired will be cleared on
offline and suspend/shutdown.

Fixes: 611b137298a8 ("cpufreq: intel_pstate: Implement the ->adjust_perf() callback")
Reported-by: Julia Lawall <julia.lawall@inria.fr>
Tested-by: Julia Lawall <julia.lawall@inria.fr>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c