Skip to contentSkip to conversation

hwmon: (k10temp): Add 0x1ah/80h

PATCH Applied Mario Limonciello 3 participants 7 messages Sep 11

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

v2 cover hwmon: (k10temp): Add 0x1ah/80h

Add support for more systems. Documentation changes would come later after systems launch.

While at it, move some single use IDs into k10temp.

Mario Limonciello (2):
hwmon: (k10temp): Add support for 1ah/80h
hwmon: (k10temp): Define unshared PCI device IDs locally

 drivers/hwmon/k10temp.c | 32 +++++++++++++++++++++++---------
 include/linux/pci_ids.h | 20 --------------------
 2 files changed, 23 insertions(+), 29 deletions(-)
Signature · 1 line
2.43.0
#1 lore raw

PATCH v2 1/2 hwmon: (k10temp): Add support for 1ah/80h

1ah/80h uses same base as other programs. It only supports Tctl.

---
v2:
* Move header to k10temp.c

---
 drivers/hwmon/k10temp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/k10temp.c +2 -0
index 3e7e63edc6a30..5414b7841864b 100644
@@ -94,6 +94,7 @@ MODULE_PARM_DESC(force, "force loading on processors with erratum 319");
  * Defining locally as IDs are not shared.
  */
 #define PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3	0x12cb
+#define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3	0x1243
 #define PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3	0x127b
 
 struct k10temp_data {
@@ -582,6 +583,7 @@ static const struct pci_device_id k10temp_id_table[] = {
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3) },
+	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3) },
 	{ PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
 	{}
Signature · 1 line
2.43.0
#2 lore raw

Re: [PATCH v2 1/2] hwmon: (k10temp): Add support for 1ah/80h

Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 3 lines

1ah/80h uses same base as other programs. It only supports Tctl.

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=1
maintainer Applied
#3 lore raw

Re: [PATCH v2 1/2] hwmon: (k10temp): Add support for 1ah/80h

In reply to Mario Limonciello
Quoted 3 lines · Mario Limonciello

1ah/80h uses same base as other programs. It only supports Tctl.

Applied.

Thanks,
Guenter

Quoted 27 lines

---
v2:
* Move header to k10temp.c

---
 drivers/hwmon/k10temp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/hwmon/k10temp.c +2 -0
index 3e7e63edc6a30..5414b7841864b 100644
@@ -94,6 +94,7 @@ MODULE_PARM_DESC(force, "force loading on processors with erratum 319");
  * Defining locally as IDs are not shared.
  */
 #define PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3	0x12cb
+#define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3	0x1243
 #define PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3	0x127b
 
 struct k10temp_data {
@@ -582,6 +583,7 @@ static const struct pci_device_id k10temp_id_table[] = {
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3) },
+	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3) },
 	{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3) },
 	{ PCI_VDEVICE(HYGON, PCI_DEVICE_ID_AMD_17H_DF_F3) },
 	{}
#4 lore raw

PATCH v2 2/2 hwmon: (k10temp): Define unshared PCI device IDs locally

In reply to Mario Limonciello

Headers (now) only used by k10temp should not be declared in global headers.

---
v2:
* New patch

---
 drivers/hwmon/k10temp.c | 30 +++++++++++++++++++++---------
 include/linux/pci_ids.h | 20 --------------------
 2 files changed, 21 insertions(+), 29 deletions(-)
drivers/hwmon/k10temp.c +21 -9
index 5414b7841864b..49a62d7349ca7 100644
@@ -83,17 +83,29 @@ MODULE_PARM_DESC(force, "force loading on processors with erratum 319");
  */
 #define AMD_I3255_STR				"3255"
 
-/*
- * PCI Device IDs for AMD's Family 17h-based SOCs.
- * Defining locally as IDs are not shared.
- */
+/* PCI Device IDs. Defining locally as IDs are not shared. */
+#define PCI_DEVICE_ID_AMD_11H_NB_MISC		0x1303
+#define PCI_DEVICE_ID_AMD_CNB17H_F3		0x1703
+#define PCI_DEVICE_ID_AMD_17H_DF_F3		0x1463
+#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3	0x15eb
+#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3	0x1493
+#define PCI_DEVICE_ID_AMD_17H_M40H_DF_F3	0x13f3
+#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F3	0x144b
+#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F3	0x1443
 #define PCI_DEVICE_ID_AMD_17H_M90H_DF_F3	0x1663
-
-/*
- * PCI Device IDs for AMD's Family 1Ah-based SOCs.
- * Defining locally as IDs are not shared.
- */
+#define PCI_DEVICE_ID_AMD_17H_MA0H_DF_F3	0x1727
+#define PCI_DEVICE_ID_AMD_19H_DF_F3		0x1653
+#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F3	0x14b0
+#define PCI_DEVICE_ID_AMD_19H_M40H_DF_F3	0x167c
+#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F3	0x166d
+#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F3	0x14e3
+#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F3	0x14f3
+#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F3	0x12fb
+#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3	0x12c3
+#define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3	0x16fb
 #define PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3	0x12cb
+#define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3	0x124b
+#define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3	0x12bb
 #define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3	0x1243
 #define PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3	0x127b
 
include/linux/pci_ids.h +0 -20
index 63774ae2bf71d..7f2ce86695de4 100644
@@ -550,7 +550,6 @@
 #define PCI_DEVICE_ID_AMD_11H_NB_HT	0x1300
 #define PCI_DEVICE_ID_AMD_11H_NB_MAP	0x1301
 #define PCI_DEVICE_ID_AMD_11H_NB_DRAM	0x1302
-#define PCI_DEVICE_ID_AMD_11H_NB_MISC	0x1303
 #define PCI_DEVICE_ID_AMD_11H_NB_LINK	0x1304
 #define PCI_DEVICE_ID_AMD_15H_M10H_F3	0x1403
 #define PCI_DEVICE_ID_AMD_15H_M30H_NB_F3 0x141d
@@ -567,28 +566,9 @@
 #define PCI_DEVICE_ID_AMD_16H_NB_F4	0x1534
 #define PCI_DEVICE_ID_AMD_16H_M30H_NB_F3 0x1583
 #define PCI_DEVICE_ID_AMD_16H_M30H_NB_F4 0x1584
-#define PCI_DEVICE_ID_AMD_17H_DF_F3	0x1463
-#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3 0x15eb
-#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3 0x1493
-#define PCI_DEVICE_ID_AMD_17H_M40H_DF_F3 0x13f3
-#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F3 0x144b
-#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F3 0x1443
-#define PCI_DEVICE_ID_AMD_17H_MA0H_DF_F3 0x1727
-#define PCI_DEVICE_ID_AMD_19H_DF_F3	0x1653
-#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F3 0x14b0
-#define PCI_DEVICE_ID_AMD_19H_M40H_DF_F3 0x167c
-#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F3 0x166d
-#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F3 0x14e3
-#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F3 0x14f3
-#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F3 0x12fb
-#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3 0x12c3
-#define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
-#define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3 0x124b
-#define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3 0x12bb
 #define PCI_DEVICE_ID_AMD_MI200_DF_F3	0x14d3
 #define PCI_DEVICE_ID_AMD_MI300_DF_F3	0x152b
 #define PCI_DEVICE_ID_AMD_VANGOGH_USB	0x163a
-#define PCI_DEVICE_ID_AMD_CNB17H_F3	0x1703
 #define PCI_DEVICE_ID_AMD_LANCE		0x2000
 #define PCI_DEVICE_ID_AMD_LANCE_HOME	0x2001
 #define PCI_DEVICE_ID_AMD_SCSI		0x2020
Signature · 1 line
2.43.0
#5 lore raw

Re: [PATCH v2 2/2] hwmon: (k10temp): Define unshared PCI device IDs locally

Sashiko has reviewed this patch and found no issues. It looks great!
Quoted 4 lines

Headers (now) only used by k10temp should not be declared in global headers.

Sashiko has reviewed this patch and found no issues. It looks great!

Signature · 1 line
Sashiko AI review · https://sashiko.dev/#/patchset/[email protected]?part=2
maintainer
#6 lore raw

Re: [PATCH v2 2/2] hwmon: (k10temp): Define unshared PCI device IDs locally

In reply to Mario Limonciello
Quoted 4 lines · Mario Limonciello

Headers (now) only used by k10temp should not be declared in global headers.

I'll need an Ack from a PCI maintainer to apply this patch.

Thanks,
Guenter

Quoted 92 lines

---
v2:
* New patch

---
 drivers/hwmon/k10temp.c | 30 +++++++++++++++++++++---------
 include/linux/pci_ids.h | 20 --------------------
 2 files changed, 21 insertions(+), 29 deletions(-)
drivers/hwmon/k10temp.c +21 -9
index 5414b7841864b..49a62d7349ca7 100644
@@ -83,17 +83,29 @@ MODULE_PARM_DESC(force, "force loading on processors with erratum 319");
  */
 #define AMD_I3255_STR				"3255"
 
-/*
- * PCI Device IDs for AMD's Family 17h-based SOCs.
- * Defining locally as IDs are not shared.
- */
+/* PCI Device IDs. Defining locally as IDs are not shared. */
+#define PCI_DEVICE_ID_AMD_11H_NB_MISC		0x1303
+#define PCI_DEVICE_ID_AMD_CNB17H_F3		0x1703
+#define PCI_DEVICE_ID_AMD_17H_DF_F3		0x1463
+#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3	0x15eb
+#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3	0x1493
+#define PCI_DEVICE_ID_AMD_17H_M40H_DF_F3	0x13f3
+#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F3	0x144b
+#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F3	0x1443
 #define PCI_DEVICE_ID_AMD_17H_M90H_DF_F3	0x1663
-
-/*
- * PCI Device IDs for AMD's Family 1Ah-based SOCs.
- * Defining locally as IDs are not shared.
- */
+#define PCI_DEVICE_ID_AMD_17H_MA0H_DF_F3	0x1727
+#define PCI_DEVICE_ID_AMD_19H_DF_F3		0x1653
+#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F3	0x14b0
+#define PCI_DEVICE_ID_AMD_19H_M40H_DF_F3	0x167c
+#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F3	0x166d
+#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F3	0x14e3
+#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F3	0x14f3
+#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F3	0x12fb
+#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3	0x12c3
+#define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3	0x16fb
 #define PCI_DEVICE_ID_AMD_1AH_M50H_DF_F3	0x12cb
+#define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3	0x124b
+#define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3	0x12bb
 #define PCI_DEVICE_ID_AMD_1AH_M80H_DF_F3	0x1243
 #define PCI_DEVICE_ID_AMD_1AH_M90H_DF_F3	0x127b
 
include/linux/pci_ids.h +0 -20
index 63774ae2bf71d..7f2ce86695de4 100644
@@ -550,7 +550,6 @@
 #define PCI_DEVICE_ID_AMD_11H_NB_HT	0x1300
 #define PCI_DEVICE_ID_AMD_11H_NB_MAP	0x1301
 #define PCI_DEVICE_ID_AMD_11H_NB_DRAM	0x1302
-#define PCI_DEVICE_ID_AMD_11H_NB_MISC	0x1303
 #define PCI_DEVICE_ID_AMD_11H_NB_LINK	0x1304
 #define PCI_DEVICE_ID_AMD_15H_M10H_F3	0x1403
 #define PCI_DEVICE_ID_AMD_15H_M30H_NB_F3 0x141d
@@ -567,28 +566,9 @@
 #define PCI_DEVICE_ID_AMD_16H_NB_F4	0x1534
 #define PCI_DEVICE_ID_AMD_16H_M30H_NB_F3 0x1583
 #define PCI_DEVICE_ID_AMD_16H_M30H_NB_F4 0x1584
-#define PCI_DEVICE_ID_AMD_17H_DF_F3	0x1463
-#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3 0x15eb
-#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3 0x1493
-#define PCI_DEVICE_ID_AMD_17H_M40H_DF_F3 0x13f3
-#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F3 0x144b
-#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F3 0x1443
-#define PCI_DEVICE_ID_AMD_17H_MA0H_DF_F3 0x1727
-#define PCI_DEVICE_ID_AMD_19H_DF_F3	0x1653
-#define PCI_DEVICE_ID_AMD_19H_M10H_DF_F3 0x14b0
-#define PCI_DEVICE_ID_AMD_19H_M40H_DF_F3 0x167c
-#define PCI_DEVICE_ID_AMD_19H_M50H_DF_F3 0x166d
-#define PCI_DEVICE_ID_AMD_19H_M60H_DF_F3 0x14e3
-#define PCI_DEVICE_ID_AMD_19H_M70H_DF_F3 0x14f3
-#define PCI_DEVICE_ID_AMD_19H_M78H_DF_F3 0x12fb
-#define PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3 0x12c3
-#define PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 0x16fb
-#define PCI_DEVICE_ID_AMD_1AH_M60H_DF_F3 0x124b
-#define PCI_DEVICE_ID_AMD_1AH_M70H_DF_F3 0x12bb
 #define PCI_DEVICE_ID_AMD_MI200_DF_F3	0x14d3
 #define PCI_DEVICE_ID_AMD_MI300_DF_F3	0x152b
 #define PCI_DEVICE_ID_AMD_VANGOGH_USB	0x163a
-#define PCI_DEVICE_ID_AMD_CNB17H_F3	0x1703
 #define PCI_DEVICE_ID_AMD_LANCE		0x2000
 #define PCI_DEVICE_ID_AMD_LANCE_HOME	0x2001
 #define PCI_DEVICE_ID_AMD_SCSI		0x2020