[PATCH v2] hwmon: (k10temp) Add support for AMD Family 19h Model 8h

From: Armin Wolf
Date: Mon Dec 11 2023 - 16:02:37 EST


From: Jami Kurki <bindkeys@xxxxxxxxx>

From: Jami Kurki <bindkeys@xxxxxxxxx>

Add support for AMD Family 19h Model 8h CPUs, which appear to
be the Zen 3 based AMD Threadripper 5000WX series (Chagall).

The patch was tested with an AMD Threadripper 5955WX.

Closes: https://bugzilla.kernel.org/show_bug.cgi?id=218244
Tested-by: Jami Kurki <bindkeys@xxxxxxxxx>
Signed-off-by: Jami Kurki <bindkeys@xxxxxxxxx>
Co-developed-by: Armin Wolf <W_Armin@xxxxxx>
Signed-off-by: Armin Wolf <W_Armin@xxxxxx>
---
Changes since v1:
- reword patch description
- reduce changes to existing code
---
drivers/hwmon/k10temp.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index bae0becfa24b..8092312c0a87 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -455,6 +455,7 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)

switch (boot_cpu_data.x86_model) {
case 0x0 ... 0x1: /* Zen3 SP3/TR */
+ case 0x8: /* Zen3 TR Chagall */
case 0x21: /* Zen3 Ryzen Desktop */
case 0x50 ... 0x5f: /* Green Sardine */
data->ccd_offset = 0x154;
--
2.39.2