lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-5c2832e91a3ed45f35531ae1c5afba8eac22c81f@git.kernel.org>
Date:   Thu, 24 Nov 2016 11:54:21 -0800
From:   tip-bot for Srinivas Pandruvada <tipbot@...or.com>
To:     linux-tip-commits@...r.kernel.org
Cc:     linux-kernel@...r.kernel.org, tim.c.chen@...ux.intel.com,
        srinivas.pandruvada@...ux.intel.com, hpa@...or.com,
        tglx@...utronix.de, mingo@...nel.org
Subject: [tip:x86/core] acpi/bus: Enable HWP CPPC objects

Commit-ID:  5c2832e91a3ed45f35531ae1c5afba8eac22c81f
Gitweb:     http://git.kernel.org/tip/5c2832e91a3ed45f35531ae1c5afba8eac22c81f
Author:     Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
AuthorDate: Tue, 22 Nov 2016 12:23:58 -0800
Committer:  Thomas Gleixner <tglx@...utronix.de>
CommitDate: Thu, 24 Nov 2016 20:44:20 +0100

acpi/bus: Enable HWP CPPC objects

Need to set platform wide _OSC bits to enable CPPC and CPPC version 2.
If platform supports CPPC, then BIOS exposes CPPC tables.

The primary reason to enable CPPC support is to get the maximum
performance of each CPU to check and enable Intel Turbo Boost Max
Technology 3.0 (ITMT).

Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@...ux.intel.com>
Signed-off-by: Tim Chen <tim.c.chen@...ux.intel.com>
Cc: linux-pm@...r.kernel.org
Cc: peterz@...radead.org
Cc: jolsa@...hat.com
Cc: rjw@...ysocki.net
Cc: linux-acpi@...r.kernel.org
Cc: bp@...e.de
Link: http://lkml.kernel.org/r/a696f6b17843cee9a542482fae6abab087be9587.1479844244.git.tim.c.chen@linux.intel.com
Signed-off-by: Thomas Gleixner <tglx@...utronix.de>

---
 drivers/acpi/bus.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
index 56190d0..2f381ba 100644
--- a/drivers/acpi/bus.c
+++ b/drivers/acpi/bus.c
@@ -331,6 +331,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)))

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ