Skip to contentSkip to conversation

cpufreq: intel_pstate: Support Emerald Rapids OOB mode

PATCH In review Srinivas Pandruvada 2 participants 2 messages May 30, 2024 – Jun 7, 2024

Subsystems (2)
lore
Share & tools
lore

Srinivas Pandruvada

author maintainer
#0 lore raw

PATCH 1/1 cpufreq: intel_pstate: Support Emerald Rapids OOB mode

Prevent intel_pstate to load when OOB (Out Of Band) P-states mode is enabled in Emerald Rapids. The OOB identifying bits are same as the prior generation CPUs like Sapphire Rapids servers. So, also add Emerald Rapids to intel_pstate_cpu_oob_ids list.

---
 drivers/cpufreq/intel_pstate.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/intel_pstate.c +1 -0
index 4b986c044741..6b6d47d3ec02 100644
@@ -2404,6 +2404,7 @@ static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = {
 	X86_MATCH(SKYLAKE_X,		core_funcs),
 	X86_MATCH(ICELAKE_X,		core_funcs),
 	X86_MATCH(SAPPHIRERAPIDS_X,	core_funcs),
+	X86_MATCH(EMERALDRAPIDS_X,	core_funcs),
 	{}
 };
 #endif
Signature · 1 line
2.40.1
#1 lore raw
Quoted 16 lines · Srinivas Pandruvada

Prevent intel_pstate to load when OOB (Out Of Band) P-states mode is enabled in Emerald Rapids. The OOB identifying bits are same as the prior generation CPUs like Sapphire Rapids servers. So, also add Emerald Rapids to intel_pstate_cpu_oob_ids list.

---
 drivers/cpufreq/intel_pstate.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/intel_pstate.c +0 -0
index 4b986c044741..6b6d47d3ec02 100644

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

Quoted 8 lines
drivers/cpufreq/intel_pstate.c +1 -1
@@ -2404,6 +2404,7 @@ static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = {
        X86_MATCH(SKYLAKE_X,            core_funcs),
        X86_MATCH(ICELAKE_X,            core_funcs),
        X86_MATCH(SAPPHIRERAPIDS_X,     core_funcs),
+       X86_MATCH(EMERALDRAPIDS_X,      core_funcs),
        {}
 };
 #endif
--

Rebased on top of the Tony's series:

https://lore.kernel.org/linux-acpi/[email protected]/

and applied as 6.11 material.

Thanks!