diff mbox series

cpufreq: intel_pstate: Support Granite Rapids and Sierra Forest OOB mode

Message ID 20240802184839.1909091-1-srinivas.pandruvada@linux.intel.com (mailing list archive)
State Mainlined, archived
Headers show
Series cpufreq: intel_pstate: Support Granite Rapids and Sierra Forest OOB mode | expand

Commit Message

srinivas pandruvada Aug. 2, 2024, 6:48 p.m. UTC
Prevent intel_pstate from loading when OOB (Out Of Band) P-states mode is
enabled.

The OOB identifying bits are same as for the prior generation CPUs like
Emerald Rapids servers. Add Granite Rapids and Sierra Forest CPU models to
intel_pstate_cpu_oob_ids[].

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 drivers/cpufreq/intel_pstate.c | 4 ++++
 1 file changed, 4 insertions(+)

Comments

Rafael J. Wysocki Aug. 19, 2024, 1:40 p.m. UTC | #1
On Fri, Aug 2, 2024 at 8:49 PM Srinivas Pandruvada
<srinivas.pandruvada@linux.intel.com> wrote:
>
> Prevent intel_pstate from loading when OOB (Out Of Band) P-states mode is
> enabled.
>
> The OOB identifying bits are same as for the prior generation CPUs like
> Emerald Rapids servers. Add Granite Rapids and Sierra Forest CPU models to
> intel_pstate_cpu_oob_ids[].
>
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
>  drivers/cpufreq/intel_pstate.c | 4 ++++
>  1 file changed, 4 insertions(+)
>
> diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
> index 392a8000b238..79b9c3c27dff 100644
> --- a/drivers/cpufreq/intel_pstate.c
> +++ b/drivers/cpufreq/intel_pstate.c
> @@ -2425,6 +2425,10 @@ static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = {
>         X86_MATCH(INTEL_ICELAKE_X,              core_funcs),
>         X86_MATCH(INTEL_SAPPHIRERAPIDS_X,       core_funcs),
>         X86_MATCH(INTEL_EMERALDRAPIDS_X,        core_funcs),
> +       X86_MATCH(INTEL_GRANITERAPIDS_D,        core_funcs),
> +       X86_MATCH(INTEL_GRANITERAPIDS_X,        core_funcs),
> +       X86_MATCH(INTEL_ATOM_CRESTMONT,         core_funcs),
> +       X86_MATCH(INTEL_ATOM_CRESTMONT_X,       core_funcs),
>         {}
>  };
>  #endif
> --

Applied as 6.12 material, thanks!
diff mbox series

Patch

diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 392a8000b238..79b9c3c27dff 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -2425,6 +2425,10 @@  static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = {
 	X86_MATCH(INTEL_ICELAKE_X,		core_funcs),
 	X86_MATCH(INTEL_SAPPHIRERAPIDS_X,	core_funcs),
 	X86_MATCH(INTEL_EMERALDRAPIDS_X,	core_funcs),
+	X86_MATCH(INTEL_GRANITERAPIDS_D,	core_funcs),
+	X86_MATCH(INTEL_GRANITERAPIDS_X,	core_funcs),
+	X86_MATCH(INTEL_ATOM_CRESTMONT,		core_funcs),
+	X86_MATCH(INTEL_ATOM_CRESTMONT_X,	core_funcs),
 	{}
 };
 #endif