]> git.baikalelectronics.ru Git - kernel.git/commit
cpufreq: intel_pstate: Show different max frequency with turbo 3 and HWP
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Wed, 18 Jul 2018 21:51:59 +0000 (14:51 -0700)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 Jul 2018 10:53:03 +0000 (12:53 +0200)
commit5df4eed6644fb2003ae1e53592927b9a1c5d2d6e
tree4e50ebd0587ac6d5befb81efddadc0af8235650f
parentc1938c5a56335fd813d1388d121e723ad7d90d5d
cpufreq: intel_pstate: Show different max frequency with turbo 3 and HWP

On HWP platforms with Turbo 3.0, the HWP capability max ratio shows the
maximum ratio of that core, which can be different than other cores. If
we show the correct maximum frequency in cpufreq sysfs via
cpuinfo_max_freq and scaling_max_freq then, user can know which cores
can run faster for pinning some high priority tasks.

Currently the max turbo frequency is shown as max frequency, which is
the max of all cores, even if some cores can't reach that frequency
even for single threaded workload.

But it is possible that max ratio in HWP capabilities is set as 0xFF or
some high invalid value (E.g. One KBL NUC). Since the actual performance
can never exceed 1 core turbo frequency from MSR TURBO_RATIO_LIMIT, we
use this as a bound check.

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