linux-acpi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/2] cpufreq: intel_pstate: Make HWP calibration work on all hybrid platforms
@ 2022-10-24 19:18 Rafael J. Wysocki
  2022-10-24 19:21 ` [PATCH v1 1/2] cpufreq: intel_pstate: Read all MSRs on the target CPU Rafael J. Wysocki
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rafael J. Wysocki @ 2022-10-24 19:18 UTC (permalink / raw)
  To: Linux PM; +Cc: LKML, Len Brown, Srinivas Pandruvada, Linux ACPI

Hi All,

The HWP calibration in intel_pstate is needed to map HWP performance levels to
frequencies, which are used in the cpufreq sysfs interface, in a reliable way.
On all non-hybrid "core" platforms it is sufficient to multiply the HWP
performance levels by 100000 to obtain the corresponding frequencies, but on
hybrid ones there is a difference between P-cores and E-cores.

Previous attempts to make this work were based on using CPPC (and in particular
the nominal performance values provided by _CPC), but it turns out that the
CPPC information is not sufficiently reliable for this purpose and the only
way to do it is to use a hard-coded scaling factors for P-cores and for E-cores
(which fortunately is the same as in the non-hybrid case).  Fortunately, the
same scaling factor for P-cores works on all of the hybrid platforms to date.

The first patch in the series ensures that all of the CPUs will use correct
information from MSRs by avoiding the situations in which an MSR values read
on one CPU will be used for performance scaling of another CPU.

The second one implements the approach outlined above.

Please see the changelogs for details.

Thanks!




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2022-10-25 13:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-24 19:18 [PATCH 0/2] cpufreq: intel_pstate: Make HWP calibration work on all hybrid platforms Rafael J. Wysocki
2022-10-24 19:21 ` [PATCH v1 1/2] cpufreq: intel_pstate: Read all MSRs on the target CPU Rafael J. Wysocki
2022-10-24 19:22 ` [PATCH v1 2/2] cpufreq: intel_pstate: hybrid: Use known scaling factor for P-cores Rafael J. Wysocki
2022-10-24 22:14 ` [PATCH 0/2] cpufreq: intel_pstate: Make HWP calibration work on all hybrid platforms srinivas pandruvada
2022-10-25 13:03   ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).