platform/x86: intel_turbo_max_3: Add Skylake platform
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
Sat, 21 Oct 2017 16:52:00 +0000 (09:52 -0700)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 27 Oct 2017 17:54:01 +0000 (20:54 +0300)
commit5520437bebf7c65507a12bb111eba79f35efba1d
tree4972db8eb91a3f3b48ed3fbe43f40bc54cf52435
parent026930bc06e95b93c3200036ab3b44b783dc6f9d
platform/x86: intel_turbo_max_3: Add Skylake platform

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>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/platform/x86/intel_turbo_max_3.c