* [Replacement][PATCH v2 6/8] acpi: bus: Enable HWP CPPC objects
@ 2016-09-02 0:14 Srinivas Pandruvada
2016-09-08 8:10 ` Peter Zijlstra
0 siblings, 1 reply; 2+ messages in thread
From: Srinivas Pandruvada @ 2016-09-02 0:14 UTC (permalink / raw)
To: rjw, tglx, mingo, bp
Cc: x86, linux-pm, linux-kernel, linux-acpi, peterz, tim.c.chen,
Srinivas Pandruvada
Need to set platform wide _OSC bits to enable CPPC and CPPC version 2.
If platform supports CPPC, then BIOS exposess CPPC tables.
Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
---
Replacement: Fix error reported by 0-day for compile issue on ARM
drivers/acpi/bus.c | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 85b7d07..61643a5 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -330,6 +330,13 @@ static void acpi_bus_osc_support(void)
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_HOTPLUG_OST_SUPPORT;
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_PCLPI_SUPPORT;
+#ifdef CONFIG_X86
+ if (boot_cpu_has(X86_FEATURE_HWP)) {
+ capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_CPC_SUPPORT;
+ capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_CPCV2_SUPPORT;
+ }
+#endif
+
if (!ghes_disable)
capbuf[OSC_SUPPORT_DWORD] |= OSC_SB_APEI_SUPPORT;
if (ACPI_FAILURE(acpi_get_handle(NULL, "\\_SB", &handle)))
--
2.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Replacement][PATCH v2 6/8] acpi: bus: Enable HWP CPPC objects
2016-09-02 0:14 [Replacement][PATCH v2 6/8] acpi: bus: Enable HWP CPPC objects Srinivas Pandruvada
@ 2016-09-08 8:10 ` Peter Zijlstra
0 siblings, 0 replies; 2+ messages in thread
From: Peter Zijlstra @ 2016-09-08 8:10 UTC (permalink / raw)
To: Srinivas Pandruvada
Cc: rjw, tglx, mingo, bp, x86, linux-pm, linux-kernel, linux-acpi,
tim.c.chen
On Thu, Sep 01, 2016 at 05:14:02PM -0700, Srinivas Pandruvada wrote:
> Need to set platform wide _OSC bits to enable CPPC and CPPC version 2.
> If platform supports CPPC, then BIOS exposess CPPC tables.
>
> Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
> ---
> Replacement: Fix error reported by 0-day for compile issue on ARM
Oh, here it is.. I hadn't seen it. Please send such patches in-thread as
a reply to the patch they replace.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-08 8:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-02 0:14 [Replacement][PATCH v2 6/8] acpi: bus: Enable HWP CPPC objects Srinivas Pandruvada
2016-09-08 8:10 ` Peter Zijlstra
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).