mbox series

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

Message ID 2212930.ElGaqSPkdT@kreacher
Headers show
Series cpufreq: intel_pstate: HWP support on hybrid processors | expand

Message

Rafael J. Wysocki May 12, 2021, 2:14 p.m. UTC
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!