From 55414723fc96df8eb822a5d77f53e466a59e946f Mon Sep 17 00:00:00 2001 From: Li RongQing Date: Mon, 23 Jun 2025 18:56:01 +0800 Subject: [PATCH] cpufreq: intel_pstate: Add Granite Rapids support in no-HWP mode mainline inclusion from mainline-v6.17-rc1 commit fc64e0421598aaa87d61184f6777b52614a095be category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/ICUHH9 CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=fc64e0421598aaa87d61184f6777b52614a095be ------------------------------------------------- Intel-SIG: commit fc64e0421598 cpufreq: intel_pstate: Add Granite Rapids support in no-HWP mode Add support for legacy/no-HWP mode for GNR/GNR-D. 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 Link: https://patch.msgid.link/20250623105601.3924-1-lirongqing@baidu.com Signed-off-by: Rafael J. Wysocki [ Zhang Rui: amend commit log ] Signed-off-by: Zhang Rui --- 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 4dbafca0d81e..fed9fd5e95bf 100644 --- a/drivers/cpufreq/intel_pstate.c +++ b/drivers/cpufreq/intel_pstate.c @@ -2223,6 +2223,8 @@ static const struct x86_cpu_id intel_pstate_cpu_ids[] = { X86_MATCH(ICELAKE_X, core_funcs), X86_MATCH(SAPPHIRERAPIDS_X, core_funcs), X86_MATCH(EMERALDRAPIDS_X, core_funcs), + X86_MATCH(GRANITERAPIDS_D, core_funcs), + X86_MATCH(GRANITERAPIDS_X, core_funcs), {} }; MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids); -- Gitee