Skip to contentSkip to conversation

The x86 cpu RAPL id was added in to support BXT core

PATCH In review [email protected] 3 participants 3 messages Oct 13, 2015 – Oct 14, 2015 Power management core

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 The x86 cpu RAPL id was added in to support BXT core

From: Amy Wiles <[email protected]>

BUG=None
TEST=Navigate to /sys/class/powercap and check that the directory intel-rapl:0 is present

---
 drivers/powercap/intel_rapl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/powercap/intel_rapl.c +1 -0
index 5efacd0..cc97f08 100644
@@ -1102,6 +1102,7 @@ static const struct x86_cpu_id rapl_ids[] __initconst = {
 	RAPL_CPU(0x4A, rapl_defaults_tng),/* Tangier */
 	RAPL_CPU(0x56, rapl_defaults_core),/* Future Xeon */
 	RAPL_CPU(0x5A, rapl_defaults_ann),/* Annidale */
+	RAPL_CPU(0X5C, rapl_defaults_core),/* Broxton */
 	RAPL_CPU(0x5E, rapl_defaults_core),/* Skylake-H/S */
 	RAPL_CPU(0x57, rapl_defaults_hsw_server),/* Knights Landing */
 	{}
Signature · 1 line
1.9.1
#1 lore raw
Quoted 5 lines · On Tue, 2015-10-13 at 08:59 -0700, [email protected] wrote:

From: Amy Wiles <[email protected]>

BUG=None
TEST=Navigate to /sys/class/powercap and check that the directory intel-rapl:0 is present

Remove above lines and just say "Enabled Broxton RAPL support". Copied to Jacob.

Thanks,
Srinivas

Quoted 20 lines
---
 drivers/powercap/intel_rapl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/powercap/intel_rapl.c +1 -0
index 5efacd0..cc97f08 100644
@@ -1102,6 +1102,7 @@ static const struct x86_cpu_id rapl_ids[]
 __initconst = {
 	RAPL_CPU(0x4A, rapl_defaults_tng),/* Tangier */
 	RAPL_CPU(0x56, rapl_defaults_core),/* Future Xeon */
 	RAPL_CPU(0x5A, rapl_defaults_ann),/* Annidale */
+	RAPL_CPU(0X5C, rapl_defaults_core),/* Broxton */
 	RAPL_CPU(0x5E, rapl_defaults_core),/* Skylake-H/S */
 	RAPL_CPU(0x57, rapl_defaults_hsw_server),/* Knights Landing

*/
{}

#2 lore raw
Quoted 9 lines · Srinivas
Quoted 5 lines · On Tue, 2015-10-13 at 08:59 -0700, [email protected] wrote:

From: Amy Wiles <[email protected]>

BUG=None
TEST=Navigate to /sys/class/powercap and check that the directory intel-rapl:0 is present

Remove above lines and just say "Enabled Broxton RAPL support". Copied to Jacob.

agreed, other than that looks good to me.

Quoted 9 lines

Thanks,
Srinivas

Quoted 5 lines
---
 drivers/powercap/intel_rapl.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 15 lines
Quoted 13 lines
drivers/powercap/intel_rapl.c +1 -0
index 5efacd0..cc97f08 100644
@@ -1102,6 +1102,7 @@ static const struct x86_cpu_id rapl_ids[]
 __initconst = {
 	RAPL_CPU(0x4A, rapl_defaults_tng),/* Tangier */
 	RAPL_CPU(0x56, rapl_defaults_core),/* Future Xeon */
 	RAPL_CPU(0x5A, rapl_defaults_ann),/* Annidale */
+	RAPL_CPU(0X5C, rapl_defaults_core),/* Broxton */
 	RAPL_CPU(0x5E, rapl_defaults_core),/* Skylake-H/S */
 	RAPL_CPU(0x57, rapl_defaults_hsw_server),/* Knights Landing
Quoted 2 lines

*/
{}

[Jacob Pan]