linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] cpufreq: intel_pstate: Add Ice Lake server to out-of-band IDs
@ 2021-11-12  9:16 Adamos Ttofari
  2021-11-17 19:12 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Adamos Ttofari @ 2021-11-12  9:16 UTC (permalink / raw)
  To: attofari
  Cc: Hendrik Borghorst, David Woodhouse, Srinivas Pandruvada,
	Len Brown, Rafael J. Wysocki, Viresh Kumar, Giovanni Gherdovich,
	linux-pm, linux-kernel

Commit fbdc21e9b038 ("cpufreq: intel_pstate: Add Icelake servers support in
no-HWP mode") enabled the use of Intel P-State driver for Ice Lake servers.
But it doesn't cover the case when OS can't control P-States.

Therefore, for Ice Lake server, if MSR_MISC_PWR_MGMT bits 8 or 18 are
enabled, then the Intel P-State driver should exit as OS can't control
P-States.

Fixes: fbdc21e9b038 ("cpufreq: intel_pstate: Add Icelake servers support in no-HWP mode")

Signed-off-by: Adamos Ttofari <attofari@amazon.de>
Cc: Hendrik Borghorst <hborghor@amazon.de>
Cc: David Woodhouse <dwmw@amazon.co.uk>
---
 drivers/cpufreq/intel_pstate.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
index 815df3daae9d..1088ff350159 100644
--- a/drivers/cpufreq/intel_pstate.c
+++ b/drivers/cpufreq/intel_pstate.c
@@ -2353,6 +2353,7 @@ static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = {
 	X86_MATCH(BROADWELL_D,		core_funcs),
 	X86_MATCH(BROADWELL_X,		core_funcs),
 	X86_MATCH(SKYLAKE_X,		core_funcs),
+	X86_MATCH(ICELAKE_X,		core_funcs),
 	{}
 };
 
-- 
2.32.0




Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879




^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] cpufreq: intel_pstate: Add Ice Lake server to out-of-band IDs
  2021-11-12  9:16 [PATCH] cpufreq: intel_pstate: Add Ice Lake server to out-of-band IDs Adamos Ttofari
@ 2021-11-17 19:12 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2021-11-17 19:12 UTC (permalink / raw)
  To: Adamos Ttofari
  Cc: Hendrik Borghorst, David Woodhouse, Srinivas Pandruvada,
	Len Brown, Rafael J. Wysocki, Viresh Kumar, Giovanni Gherdovich,
	Linux PM, Linux Kernel Mailing List

On Fri, Nov 12, 2021 at 10:17 AM Adamos Ttofari <attofari@amazon.de> wrote:
>
> Commit fbdc21e9b038 ("cpufreq: intel_pstate: Add Icelake servers support in
> no-HWP mode") enabled the use of Intel P-State driver for Ice Lake servers.
> But it doesn't cover the case when OS can't control P-States.
>
> Therefore, for Ice Lake server, if MSR_MISC_PWR_MGMT bits 8 or 18 are
> enabled, then the Intel P-State driver should exit as OS can't control
> P-States.
>
> Fixes: fbdc21e9b038 ("cpufreq: intel_pstate: Add Icelake servers support in no-HWP mode")
>
> Signed-off-by: Adamos Ttofari <attofari@amazon.de>
> Cc: Hendrik Borghorst <hborghor@amazon.de>
> Cc: David Woodhouse <dwmw@amazon.co.uk>
> ---
>  drivers/cpufreq/intel_pstate.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/cpufreq/intel_pstate.c b/drivers/cpufreq/intel_pstate.c
> index 815df3daae9d..1088ff350159 100644
> --- a/drivers/cpufreq/intel_pstate.c
> +++ b/drivers/cpufreq/intel_pstate.c
> @@ -2353,6 +2353,7 @@ static const struct x86_cpu_id intel_pstate_cpu_oob_ids[] __initconst = {
>         X86_MATCH(BROADWELL_D,          core_funcs),
>         X86_MATCH(BROADWELL_X,          core_funcs),
>         X86_MATCH(SKYLAKE_X,            core_funcs),
> +       X86_MATCH(ICELAKE_X,            core_funcs),
>         {}
>  };
>
> --

Applied as 5.16-rc material, thanks!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-11-17 19:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-12  9:16 [PATCH] cpufreq: intel_pstate: Add Ice Lake server to out-of-band IDs Adamos Ttofari
2021-11-17 19:12 ` Rafael J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).