Skip to contentSkip to conversation

x86,AMD: Power driver support for AMD's family 16h processors

PATCH Superseded Boris Ostrovsky 3 participants 3 messages Dec 4, 2012 – Dec 5, 2012

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86,AMD: Power driver support for AMD's family 16h processors

Add family 16h PCI ID to AMD's power driver to allow it report power consumption on these processors.

---
 drivers/hwmon/fam15h_power.c |    1 +
 include/linux/pci_ids.h      |    1 +
 2 files changed, 2 insertions(+)
drivers/hwmon/fam15h_power.c +1 -0
index 4f41104..dda1113 100644
@@ -248,6 +248,7 @@ static void __devexit fam15h_power_remove(struct pci_dev *pdev)
 
 static DEFINE_PCI_DEVICE_TABLE(fam15h_power_id_table) = {
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) },
+	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) },
 	{}
 };
 MODULE_DEVICE_TABLE(pci, fam15h_power_id_table);
include/linux/pci_ids.h +1 -0
index 9d36b82..9c9a464 100644
@@ -524,6 +524,7 @@
 #define PCI_DEVICE_ID_AMD_15H_NB_F3	0x1603
 #define PCI_DEVICE_ID_AMD_15H_NB_F4	0x1604
 #define PCI_DEVICE_ID_AMD_15H_NB_F5	0x1605
+#define PCI_DEVICE_ID_AMD_16H_NB_F4	0x1534
 #define PCI_DEVICE_ID_AMD_CNB17H_F3	0x1703
 #define PCI_DEVICE_ID_AMD_LANCE		0x2000
 #define PCI_DEVICE_ID_AMD_LANCE_HOME	0x2001
Signature · 8 lines
1.7.10.4



_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
maintainer
#1 lore raw
Quoted 26 lines · Boris Ostrovsky

Add family 16h PCI ID to AMD's power driver to allow it report power consumption on these processors.

---
 drivers/hwmon/fam15h_power.c |    1 +
 include/linux/pci_ids.h      |    1 +
 2 files changed, 2 insertions(+)
drivers/hwmon/fam15h_power.c +1 -0
index 4f41104..dda1113 100644
@@ -248,6 +248,7 @@ static void __devexit fam15h_power_remove(struct pci_dev *pdev)
 
 static DEFINE_PCI_DEVICE_TABLE(fam15h_power_id_table) = {
        { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) },
+       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) },
        {}
 };
 MODULE_DEVICE_TABLE(pci, fam15h_power_id_table);
include/linux/pci_ids.h +0 -0
index 9d36b82..9c9a464 100644

include/linux/pci_ids.h line 530

Quoted 7 lines
include/linux/pci_ids.h +1 -0
@@ -524,6 +524,7 @@
 #define PCI_DEVICE_ID_AMD_15H_NB_F3    0x1603
 #define PCI_DEVICE_ID_AMD_15H_NB_F4    0x1604
 #define PCI_DEVICE_ID_AMD_15H_NB_F5    0x1605
+#define PCI_DEVICE_ID_AMD_16H_NB_F4    0x1534
 #define PCI_DEVICE_ID_AMD_CNB17H_F3    0x1703
 #define PCI_DEVICE_ID_AMD_LANCE                0x2000
 #define PCI_DEVICE_ID_AMD_LANCE_HOME   0x2001

Read the comment at the top of pci_ids.h. Based on just this patch, it doesn't seem like the pci_ids.h change is warranted.

Bjorn

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

maintainer
#2 lore raw

Re: [lm-sensors] [PATCH] x86, AMD: Power driver support for AMD's family 16h processors

Quoted 29 lines · Bjorn Helgaas
Quoted 28 lines · Boris Ostrovsky

Add family 16h PCI ID to AMD's power driver to allow it report power consumption on these processors.

---
 drivers/hwmon/fam15h_power.c |    1 +
 include/linux/pci_ids.h      |    1 +
 2 files changed, 2 insertions(+)
drivers/hwmon/fam15h_power.c +1 -0
index 4f41104..dda1113 100644
@@ -248,6 +248,7 @@ static void __devexit fam15h_power_remove(struct pci_dev *pdev)
 
 static DEFINE_PCI_DEVICE_TABLE(fam15h_power_id_table) = {
        { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_15H_NB_F4) },
+       { PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_16H_NB_F4) },
        {}
 };
 MODULE_DEVICE_TABLE(pci, fam15h_power_id_table);
include/linux/pci_ids.h +0 -0
index 9d36b82..9c9a464 100644
@@ -524,6 +524,7 @@
 #define PCI_DEVICE_ID_AMD_15H_NB_F3    0x1603
 #define PCI_DEVICE_ID_AMD_15H_NB_F4    0x1604
Quoted 9 lines

include/linux/pci_ids.h line 530

Quoted 5 lines
include/linux/pci_ids.h +1 -0
 #define PCI_DEVICE_ID_AMD_15H_NB_F5    0x1605
+#define PCI_DEVICE_ID_AMD_16H_NB_F4    0x1534
 #define PCI_DEVICE_ID_AMD_CNB17H_F3    0x1703
 #define PCI_DEVICE_ID_AMD_LANCE                0x2000
 #define PCI_DEVICE_ID_AMD_LANCE_HOME   0x2001

Read the comment at the top of pci_ids.h. Based on just this patch, it doesn't seem like the pci_ids.h change is warranted.

Boris,

can you move the define into fam15h_power.c and resubmit the patch ? It would simplify integration.

Thanks,
Guenter