Skip to content

cpufreq: intel_pstate: HWP support on hybrid processors

Rafael J. Wysocki linux-acpi linux-pm lkml 1 version New

Get series with b4
b4 am 2212930.ElGaqSPkdT@kreacher

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cpufreq: intel_pstate: hybrid: Avoid exposing two global attributesDocumentation/admin-guide/pm/intel_pstate.rst drivers/cpufreq/intel_pstate.c+19 -20 replies
2/2cpufreq: intel_pstate: hybrid: CPU-specific scaling factordrivers/cpufreq/intel_pstate.c+210 -230 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] cpufreq: intel_pstate: HWP support on hybrid processors

Hi All,

In Intel Hybrid processors there are cores with different micro-architecture, so the relationship between CPU frequency and performance is generally not uniform across all CPUs. Because the units of CPU performance used in the MSR_HWP_CAPABILITIES and MSR_HWP_REQUEST registers are the same for all CPUs, the scaling between HWP performance levels and frequency generally depends on the core type and it is not uniform across all CPUs either, so some assumptions made by intel_pstate are not applicable to hybrid processors.

As the scaling factor between HWP performance and frequency will now generally depend on the CPU, in particular it cannot be assumed to be equal to the scaling factor between P-states and frequency for all CPUs which has been one of the assumptions made so far by intel_pstate. Unfortunately, in general it is not very straightforward to determine that scaling factor which is the purpose of patch [2/2] (please refer to the changelog of that patch for details).

Moreover, two of the global sysfs attributes exposed by intel_pstate only work as expected if all CPUs have the same number of HWP performance levels, so it is better to avoid exposing those attributes when running on hybrid processors, which is taken care of by patch [1/2].

Thanks!