Skip to contentSkip to conversation

Enabled Broxton SoC thermal reporting device

PATCH In review [email protected] 3 participants 5 messages Oct 14, 2015 – Oct 19, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 Enabled Broxton SoC thermal reporting device

From: Amy Wiles <[email protected]>

---
 drivers/thermal/int340x_thermal/processor_thermal_device.c | 10 ++++++++++
 1 file changed, 10 insertions(+)
drivers/thermal/int340x_thermal/processor_thermal_device.c +10 -0
index ccc0ad0..36fa724 100644
@@ -33,6 +33,12 @@
 /* Braswell thermal reporting device */
 #define PCI_DEVICE_ID_PROC_BSW_THERMAL	0x22DC
 
+/* Broxton thermal reporting device */
+#define PCI_DEVICE_ID_PROC_BXT0_THERMAL  0x0A8C
+#define PCI_DEVICE_ID_PROC_BXT1_THERMAL  0x1A8C
+#define PCI_DEVICE_ID_PROC_BXTX_THERMAL  0x4A8C
+#define PCI_DEVICE_ID_PROC_BXTP_THERMAL  0x5A8C
+
 struct power_config {
 	u32	index;
 	u32	min_uw;
@@ -404,6 +410,10 @@ static const struct pci_device_id proc_thermal_pci_ids[] = {
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_HSB_THERMAL)},
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_SKL_THERMAL)},
 	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BSW_THERMAL)},
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXT0_THERMAL)},
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXT1_THERMAL)},
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXTX_THERMAL)},
+	{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_PROC_BXTP_THERMAL)},
 	{ 0, },
 };
 
Signature · 1 line
1.9.1
#1 lore raw

PATCH 2/2 Enabled Broxton RAPL support

From: Amy Wiles <[email protected]>

---
 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
#2 lore raw

Re: [PATCH 2/2] Enabled Broxton RAPL support

Quoted 13 lines · On Wednesday, October 14, 2015 08:09:15 AM [email protected] wrote:

From: Amy Wiles <[email protected]>

---
 drivers/powercap/intel_rapl.c | 1 +
 1 file changed, 1 insertion(+)
drivers/powercap/intel_rapl.c +0 -0
index 5efacd0..cc97f08 100644

drivers/powercap/intel_rapl.c static const struct x86_cpu_id rapl_ids[] __initconst = { · line 1108

Quoted 7 lines
drivers/powercap/intel_rapl.c +1 -0
@@ -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 */
 	{}

Jacob, any problems with this one?

Thanks,
Rafael

#3 lore raw

Re: [PATCH 2/2] Enabled Broxton RAPL support

Quoted 9 lines · On Thu, 15 Oct 2015 01:29:04 +0200 "Rafael J. Wysocki" <[email protected]>…
Quoted 7 lines · On Wednesday, October 14, 2015 08:09:15 AM [email protected] wrote:

From: Amy Wiles <[email protected]>

---
 drivers/powercap/intel_rapl.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 16 lines
Quoted 11 lines
(quoted diff) +0 -0

b/drivers/powercap/intel_rapl.c index 5efacd0..cc97f08 100644

drivers/powercap/intel_rapl.c +0 -0
@@ -1102,6 +1102,7 @@ static const struct x86_cpu_id rapl_ids[]

__initconst = { RAPL_CPU(0x4A, rapl_defaults_tng),/* Tangier */

drivers/powercap/intel_rapl.c +1 -0
 	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
Quoted 2 lines

Landing */ {}

Jacob, any problems with this one?

looks good to me. I also tested it.

Quoted 3 lines

Thanks,
Rafael

[Jacob Pan]

#4 lore raw

Re: [PATCH 2/2] Enabled Broxton RAPL support

Quoted 28 lines · Jacob Pan
Quoted 9 lines · On Thu, 15 Oct 2015 01:29:04 +0200 "Rafael J. Wysocki" <[email protected]>…
Quoted 7 lines · On Wednesday, October 14, 2015 08:09:15 AM [email protected] wrote:

From: Amy Wiles <[email protected]>

---
 drivers/powercap/intel_rapl.c | 1 +
 1 file changed, 1 insertion(+)
Quoted 16 lines
Quoted 11 lines
(quoted diff) +0 -0

b/drivers/powercap/intel_rapl.c index 5efacd0..cc97f08 100644

drivers/powercap/intel_rapl.c +0 -0
@@ -1102,6 +1102,7 @@ static const struct x86_cpu_id rapl_ids[]

__initconst = { RAPL_CPU(0x4A, rapl_defaults_tng),/* Tangier */

drivers/powercap/intel_rapl.c +1 -0
 	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
Quoted 2 lines

Landing */ {}

Jacob, any problems with this one?

Quoted 1 line

looks good to me. I also tested it.

OK, applied.

Thanks,
Rafael