]> git.proxmox.com Git - mirror_ubuntu-jammy-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)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 20 May 2022 12:42:40 +0000 (14:42 +0200)
commit4b4c5c11a45b4cf6a54e74ddb26f87c2903d655e
tree5e7b3595adef1f1db23acb3be686b56acda1eef6
parentef1cd73e93b754aeb2ca3d15db1bb702b0372b51
cpufreq: intel_pstate: ITMT support for overclocked system

BugLink: https://bugs.launchpad.net/bugs/1969857
commit 03c83982a0278207709143ba78c5a470179febee upstream.

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>
Signed-off-by: Dimitri John Ledkov <dimitri.ledkov@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/cpufreq/intel_pstate.c