aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrinivas Pandruvada <srinivas.pandruvada@linux.intel.com>2016-11-22 15:23:59 -0500
committerThomas Gleixner <tglx@linutronix.de>2016-11-24 14:44:20 -0500
commit8b533a0eeefc5861cea57163dd3cec2798a77f6c (patch)
treebc90e65cd6db3fa21df8359076154ce9cdf6aa07
parent5c2832e91a3ed45f35531ae1c5afba8eac22c81f (diff)
acpi/bus: Set _OSC for diverse core support
Set the OSC_SB_CPC_DIVERSE_HIGH_SUPPORT (bit 12) to enable diverse core support. This is required to enable the BIOS support of the Intel Turbo Boost Max Technology 3.0 feature. Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com> Signed-off-by: Tim Chen <tim.c.chen@linux.intel.com> Cc: linux-pm@vger.kernel.org Cc: peterz@infradead.org Cc: jolsa@redhat.com Cc: rjw@rjwysocki.net Cc: linux-acpi@vger.kernel.org Cc: bp@suse.de Link: http://lkml.kernel.org/r/a023623a727e86040a1715797055f6402caefd7e.1479844244.git.tim.c.chen@linux.intel.com Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--drivers/acpi/bus.c3
-rw-r--r--include/linux/acpi.h1
2 files changed, 4 insertions, 0 deletions
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 2f381ba1e1f2..806db0d6e6e8 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -338,6 +338,9 @@ static void acpi_bus_osc_support(void)
338 } 338 }
339#endif 339#endif
340 340
341 if (IS_ENABLED(CONFIG_SCHED_ITMT))
342 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_CPC_DIVERSE_HIGH_SUPPORT;
343
341 if (!ghes_disable) 344 if (!ghes_disable)
342 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_APEI_SUPPORT; 345 capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_APEI_SUPPORT;
343 if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle))) 346 if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle)))
diff --git a/include/linux/acpi.h b/include/linux/acpi.h
index 61a3d90f32b3..051023756520 100644
--- a/include/linux/acpi.h
+++ b/include/linux/acpi.h
@@ -469,6 +469,7 @@ acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context);
469#define OSC_SB_CPCV2_SUPPORT 0x00000040 469#define OSC_SB_CPCV2_SUPPORT 0x00000040
470#define OSC_SB_PCLPI_SUPPORT 0x00000080 470#define OSC_SB_PCLPI_SUPPORT 0x00000080
471#define OSC_SB_OSLPI_SUPPORT 0x00000100 471#define OSC_SB_OSLPI_SUPPORT 0x00000100
472#define OSC_SB_CPC_DIVERSE_HIGH_SUPPORT 0x00001000
472 473
473extern bool osc_sb_apei_support_acked; 474extern bool osc_sb_apei_support_acked;
474extern bool osc_pc_lpi_support_confirmed; 475extern bool osc_pc_lpi_support_confirmed;