diff mbox series

[3/4,F/linux-azure-5.4] cpufreq: intel_pstate: Add Icelake servers support in no-HWP mode

Message ID 20211126161321.10965-4-bartlomiej.zolnierkiewicz@canonical.com
State New
Headers show
Series add Icelake servers support in no-HWP mode to cpufreq/intel_pstate driver | expand

Commit Message

Bartlomiej Zolnierkiewicz Nov. 26, 2021, 4:13 p.m. UTC
From: Giovanni Gherdovich <ggherdovich@suse.cz>

BugLink: https://bugs.launchpad.net/bugs/1952234

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

Add ICELAKE_X to the list of CPUs that can register intel_pstate while not
advertising the HWP capability. Without this change, an ICELAKE_X in no-HWP
mode could only use the acpi_cpufreq frequency scaling driver.

See also commit d8de7a44e11f ("cpufreq: intel_pstate: Add Skylake servers
support").

Signed-off-by: Giovanni Gherdovich <ggherdovich@suse.cz>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(backported from commit fbdc21e9b038d00d0d56fa4e0f7701d42ae08f00)
Signed-off-by: Bartlomiej Zolnierkiewicz <bartlomiej.zolnierkiewicz@canonical.com>
---
 drivers/cpufreq/intel_pstate.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 88fe803a044d..3ffb570a9930 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -1942,6 +1942,7 @@  static const struct x86_cpu_id intel_pstate_cpu_ids[] = {
 	ICPU(INTEL_FAM6_ATOM_GOLDMONT,		core_funcs),
 	ICPU(INTEL_FAM6_ATOM_GOLDMONT_PLUS,     core_funcs),
 	ICPU(INTEL_FAM6_SKYLAKE_X,		core_funcs),
+	ICPU(INTEL_FAM6_ICELAKE_X,		core_funcs),
 	{}
 };
 MODULE_DEVICE_TABLE(x86cpu, intel_pstate_cpu_ids);