[PATCH] cpufreq: intel_pstate: Add Granite Rapids support in no-HWP mode

lirongqing posted 1 patch 3 months, 2 weeks ago
drivers/cpufreq/intel_pstate.c | 2 ++
1 file changed, 2 insertions(+)
[PATCH] cpufreq: intel_pstate: Add Granite Rapids support in no-HWP mode
Posted by lirongqing 3 months, 2 weeks ago
From: Li RongQing <lirongqing@baidu.com>

Users may disable HWP in firmware, in which case intel_pstate
wouldn't load unless the CPU model is explicitly supported.

Signed-off-by: Li RongQing <lirongqing@baidu.com>
---
 drivers/cpufreq/intel_pstate.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 64587d3..1782b29 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -2775,6 +2775,8 @@ static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
 	X86_MATCH(INTEL_TIGERLAKE,		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),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
-- 
2.9.4
Re: [PATCH] cpufreq: intel_pstate: Add Granite Rapids support in no-HWP mode
Posted by Rafael J. Wysocki 3 months, 1 week ago
On Mon, Jun 23, 2025 at 12:56 PM lirongqing <lirongqing@baidu.com> wrote:
>
> From: Li RongQing <lirongqing@baidu.com>
>
> Users may disable HWP in firmware, in which case intel_pstate
> wouldn't load unless the CPU model is explicitly supported.
>
> Signed-off-by: Li RongQing <lirongqing@baidu.com>
> ---
>  drivers/cpufreq/intel_pstate.c | 2 ++
>  1 file changed, 2 insertions(+)
>
> diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
> index 64587d3..1782b29 100644
> --- a/drivers/cpufreq/intel_pstate.c
> +++ b/drivers/cpufreq/intel_pstate.c
> @@ -2775,6 +2775,8 @@ static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
>         X86_MATCH(INTEL_TIGERLAKE,              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),
>         {}
>  };
>  MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);
> --

Applied as 6.17 material, thanks!