]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: ITMT support for overclocked system
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Fri, 19 Nov 2021 05:18:01 +0000 (21:18 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Tue, 23 Nov 2021 13:11:18 +0000 (14:11 +0100)
commita7944a921b82b031af866c7ab884e3b9fcf1914c
tree37bfbbc8a758b6b2149d5030276a19f1842a7479
parentadaf3be3d10c4292727668322af2c00ff59bd178
cpufreq: intel_pstate: ITMT support for overclocked system

On systems with overclocking enabled, CPPC Highest Performance can be
hard coded to 0xff. In this case even if we have cores with different
highest performance, ITMT can't be enabled as the current implementation
depends on CPPC Highest Performance.

On such systems we can use MSR_HWP_CAPABILITIES maximum performance field
when CPPC.Highest Performance is 0xff.

Due to legacy reasons, we can't solely depend on MSR_HWP_CAPABILITIES as
in some older systems CPPC Highest Performance is the only way to identify
different performing cores.

Reported-by: Michael Larabel <Michael@MichaelLarabel.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tested-by: Michael Larabel <Michael@MichaelLarabel.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c