Skip to contentSkip to conversation

cpufreq: intel_pstate: Update Arrow Lake hybrid scaling factor

PATCH Applied Srinivas Pandruvada 2 participants 3 messages Jun 18, 2024 – Jun 19, 2024

Subsystems (2)
lore
Share & tools
lore

Srinivas Pandruvada

author maintainer
#0 lore raw

PATCH 1/2 cpufreq: intel_pstate: Update Arrow Lake hybrid scaling factor

Arrow Lake uses the same scaling factor as Meteor Lake, so reuse the same scaling factor.

---
 drivers/cpufreq/intel_pstate.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/intel_pstate.c +1 -0
index 3dc9b82c43af..72d9e60369e0 100644
@@ -3401,6 +3401,7 @@ static const struct x86_cpu_id intel_epp_default[] = {
 
 static const struct x86_cpu_id intel_hybrid_scaling_factor[] = {
 	X86_MATCH_VFM(INTEL_METEORLAKE_L, HYBRID_SCALING_FACTOR_MTL),
+	X86_MATCH_VFM(INTEL_ARROWLAKE, HYBRID_SCALING_FACTOR_MTL),
 	{}
 };
 
Signature · 1 line
2.44.0
author maintainer
#1 lore raw

PATCH 2/2 cpufreq: intel_pstate: Update Lunar Lake hybrid scaling factor

Change hybrid scaling factor for Lunar Lake. Scaling factor is 1.15 for P-cores compared to E-cores.

---
 drivers/cpufreq/intel_pstate.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/cpufreq/intel_pstate.c +2 -0
index 72d9e60369e0..32c331ee97ca 100644
@@ -300,6 +300,7 @@ static struct cpufreq_driver *intel_pstate_driver __read_mostly;
 
 #define HYBRID_SCALING_FACTOR		78741
 #define HYBRID_SCALING_FACTOR_MTL	80000
+#define HYBRID_SCALING_FACTOR_LNL	86957
 
 static int hybrid_scaling_factor = HYBRID_SCALING_FACTOR;
 
@@ -3402,6 +3403,7 @@ static const struct x86_cpu_id intel_epp_default[] = {
 static const struct x86_cpu_id intel_hybrid_scaling_factor[] = {
 	X86_MATCH_VFM(INTEL_METEORLAKE_L, HYBRID_SCALING_FACTOR_MTL),
 	X86_MATCH_VFM(INTEL_ARROWLAKE, HYBRID_SCALING_FACTOR_MTL),
+	X86_MATCH_VFM(INTEL_LUNARLAKE_M, HYBRID_SCALING_FACTOR_LNL),
 	{}
 };
 
Signature · 1 line
2.44.0
maintainer Applied
#2 lore raw
In reply to Srinivas Pandruvada
Quoted 14 lines · Srinivas Pandruvada

Arrow Lake uses the same scaling factor as Meteor Lake, so reuse the same scaling factor.

---
 drivers/cpufreq/intel_pstate.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/intel_pstate.c +0 -0
index 3dc9b82c43af..72d9e60369e0 100644

drivers/cpufreq/intel_pstate.c static const struct x86_cpu_id intel_epp_default[] = {

Quoted 8 lines
drivers/cpufreq/intel_pstate.c +1 -1
@@ -3401,6 +3401,7 @@ static const struct x86_cpu_id intel_epp_default[] = {
 
 static const struct x86_cpu_id intel_hybrid_scaling_factor[] = {
        X86_MATCH_VFM(INTEL_METEORLAKE_L, HYBRID_SCALING_FACTOR_MTL),
+       X86_MATCH_VFM(INTEL_ARROWLAKE, HYBRID_SCALING_FACTOR_MTL),
        {}
 };
 
--

Applied as 6.11 material along with the [2/2], thanks!