cpufreq: intel_pstate: Add Sapphire Rapids support in no-HWP mode
authorGiovanni Gherdovich <ggherdovich@suse.cz>
Mon, 21 Nov 2022 15:35:40 +0000 (16:35 +0100)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Wed, 30 Nov 2022 18:56:17 +0000 (19:56 +0100)
Users may disable HWP in firmware, in which case intel_pstate wouldn't load
unless the CPU model is explicitly supported.

See also the following past commits:

commit d8de7a44e11f ("cpufreq: intel_pstate: Add Skylake servers support")
commit 706c5328851d ("cpufreq: intel_pstate: Add Cometlake support in
no-HWP mode")
commit fbdc21e9b038 ("cpufreq: intel_pstate: Add Icelake servers support in
no-HWP mode")
commit 71bb5c82aaae ("cpufreq: intel_pstate: Add Tigerlake support in
no-HWP mode")

Signed-off-by: Giovanni Gherdovich <ggherdovich@suse.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/cpufreq/intel_pstate.c

index ad9be31..fd73d6d 100644 (file)
@@ -2379,6 +2379,7 @@ static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
        X86_MATCH(COMETLAKE,            core_funcs),
        X86_MATCH(ICELAKE_X,            core_funcs),
        X86_MATCH(TIGERLAKE,            core_funcs),
+       X86_MATCH(SAPPHIRERAPIDS_X,     core_funcs),
        {}
 };
 MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);