cpufreq: intel_pstate: Update hybrid scaling factor for Meteor Lake
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Tue, 9 Jan 2024 17:48:48 +0000 (09:48 -0800)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 10 Jan 2024 14:02:25 +0000 (15:02 +0100)
commitbde4f5ff8295601554601f78a523d4d97e42433e
treedac694c26f0f77314e20287238777e9d85a898b1
parente956c884ef50a02d23fd594f3ab291444f22a6f3
cpufreq: intel_pstate: Update hybrid scaling factor for Meteor Lake

On some Meteor Lake platforms, maximum one core turbo frequency is not
observed. During hybrid performance to frequency conversion, the maximum
frequency is 100 MHz less. This results in requesting maximum frequency
100 MHz less.

For example when the max one core turbo is 4.9 GHz:
MSR HWP_CAPABILITIES shows highest performance ratio for P-core is 0x3E.
With the current scaling factor of 78741 (1.27x for converting frequency
to performance) results in max frequency of 4.8 GHz. This results in
capping the max scaling frequency as 4.8 GHz, which is 100 MHz less than
the desired.

Add capability to define per CPU model specific scaling factor and define
scaling factor of 80000 (1.25x for converting frequency to performance for
P-cores) for Meteor Lake.

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
[ rjw: Debug message adjustment, subject edit ]
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c