]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Avoid enabling HWP if EPP is not supported
authorRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 14 Jul 2020 18:17:24 +0000 (20:17 +0200)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 16 Jul 2020 15:16:51 +0000 (17:16 +0200)
commitbbadaf55c3999ccb0cb8e689c11926c34c6b6a3d
tree5f75ced2f1a3a3a6936f6b6fb39b13805082ae89
parentd69a0e49c3aedb7018d021dedf84b3a259b4e26d
cpufreq: intel_pstate: Avoid enabling HWP if EPP is not supported

Although there are processors supporting hardware-managed P-states
(HWP) without the energy-performance preference (EPP) feature, they
are not expected to be run with HWP enabled (the BIOS should disable
HWP on those systems).  Missing EPP support generally indicates an
incomplete HWP implementation and so it is better to avoid using
HWP on those systems in production.

However, intel_pstate currently enables HWP on such systems, which
is questionable, so prevent it from doing that by making it check
EPP support before enabling HWP and avoid enabling it if EPP is not
supported by the processor at hand.

Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c