linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] platform/x86: intel_turbo_max_3: Add Skylake platform
@ 2017-10-21 16:52 Srinivas Pandruvada
  2017-10-27 16:32 ` Andy Shevchenko
  0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Pandruvada @ 2017-10-21 16:52 UTC (permalink / raw)
  To: dvhart, andy
  Cc: platform-driver-x86, linux-kernel, lenb, rjw, Srinivas Pandruvada

Ev Kontsevoy reported that he can't see the presence of
"/proc/sys/kernel/sched_itmt_enabled" on i9-7900x with Asrock x299
Taichi system even if he enabled "Turbo 3.0" in the BIOS.

The problem is that even if one core max is 200MHz more than others, the
current implementation couldn't enumerate that with the way the system
is configured.

The system by default configured for legacy mode (no HWP or speed shift
technology), in this mode only way we can enumerate via the mail box
interface as implemented in this driver. We were planing to only use
this driver for Broadwell, but we need to extend this because some
Skylake system has same issue as Braodwell systems.

On this system BIOS allows to change to HWP mode, where we expect that
we can enumerate favored core with ACPI-CPPC. But on this system the
core priority is 0xff for all cores in CPPC object. So this is not an
option.

Hence this change allows Skylake systems to be enumerate favored core
similar to Broadwell in legacy mode.

Reported-and-tested-by: Ev Kontsevoy <ev@kontsevoy.com>
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
 drivers/platform/x86/intel_turbo_max_3.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/platform/x86/intel_turbo_max_3.c b/drivers/platform/x86/intel_turbo_max_3.c
index 4f60d8e..d4ea018 100644
--- a/drivers/platform/x86/intel_turbo_max_3.c
+++ b/drivers/platform/x86/intel_turbo_max_3.c
@@ -125,6 +125,7 @@ static int itmt_legacy_cpu_online(unsigned int cpu)
 
 static const struct x86_cpu_id itmt_legacy_cpu_ids[] = {
 	ICPU(INTEL_FAM6_BROADWELL_X),
+	ICPU(INTEL_FAM6_SKYLAKE_X),
 	{}
 };
 
-- 
2.5.5

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

* Re: [PATCH] platform/x86: intel_turbo_max_3: Add Skylake platform
  2017-10-21 16:52 [PATCH] platform/x86: intel_turbo_max_3: Add Skylake platform Srinivas Pandruvada
@ 2017-10-27 16:32 ` Andy Shevchenko
  0 siblings, 0 replies; 2+ messages in thread
From: Andy Shevchenko @ 2017-10-27 16:32 UTC (permalink / raw)
  To: Srinivas Pandruvada
  Cc: dvhart, Andy Shevchenko, Platform Driver, linux-kernel,
	Len Brown, Rafael J. Wysocki

On Sat, Oct 21, 2017 at 7:52 PM, Srinivas Pandruvada
<srinivas.pandruvada@linux.intel.com> wrote:
> Ev Kontsevoy reported that he can't see the presence of
> "/proc/sys/kernel/sched_itmt_enabled" on i9-7900x with Asrock x299
> Taichi system even if he enabled "Turbo 3.0" in the BIOS.
>
> The problem is that even if one core max is 200MHz more than others, the
> current implementation couldn't enumerate that with the way the system
> is configured.
>
> The system by default configured for legacy mode (no HWP or speed shift
> technology), in this mode only way we can enumerate via the mail box
> interface as implemented in this driver. We were planing to only use
> this driver for Broadwell, but we need to extend this because some
> Skylake system has same issue as Braodwell systems.
>
> On this system BIOS allows to change to HWP mode, where we expect that
> we can enumerate favored core with ACPI-CPPC. But on this system the
> core priority is 0xff for all cores in CPPC object. So this is not an
> option.
>
> Hence this change allows Skylake systems to be enumerate favored core
> similar to Broadwell in legacy mode.

Pushed to my review and testing queue, thanks!

>
> Reported-and-tested-by: Ev Kontsevoy <ev@kontsevoy.com>
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
>  drivers/platform/x86/intel_turbo_max_3.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/drivers/platform/x86/intel_turbo_max_3.c b/drivers/platform/x86/intel_turbo_max_3.c
> index 4f60d8e..d4ea018 100644
> --- a/drivers/platform/x86/intel_turbo_max_3.c
> +++ b/drivers/platform/x86/intel_turbo_max_3.c
> @@ -125,6 +125,7 @@ static int itmt_legacy_cpu_online(unsigned int cpu)
>
>  static const struct x86_cpu_id itmt_legacy_cpu_ids[] = {
>         ICPU(INTEL_FAM6_BROADWELL_X),
> +       ICPU(INTEL_FAM6_SKYLAKE_X),
>         {}
>  };
>
> --
> 2.5.5
>



-- 
With Best Regards,
Andy Shevchenko

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

end of thread, other threads:[~2017-10-27 16:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-10-21 16:52 [PATCH] platform/x86: intel_turbo_max_3: Add Skylake platform Srinivas Pandruvada
2017-10-27 16:32 ` Andy Shevchenko

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).