[PATCH] [v2] hwmon: (k10temp) Add support for Zen5 Ryzen Desktop

David Hows posted 1 patch 20 hours ago
drivers/hwmon/k10temp.c | 7 +++++++
1 file changed, 7 insertions(+)
[PATCH] [v2] hwmon: (k10temp) Add support for Zen5 Ryzen Desktop
Posted by David Hows 20 hours ago
Add support for retrieving CCD temperatures on Zen5 Desktop CPUs

Signed-off-by: David Hows <david@hows.id.au>
---
 drivers/hwmon/k10temp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index 3685906cc57c..96a76f3359eb 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -503,6 +503,13 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
 			k10temp_get_ccd_support(data, 12);
 			break;
 		}
+	} else if (boot_cpu_data.x86 == 0x1a) {
+		switch (boot_cpu_data.x86_model) {
+		case 0x40 ... 0x4f:	/* Zen5 Ryzen Desktop*/
+			data->ccd_offset = 0x308;
+			k10temp_get_ccd_support(data, 8);
+			break;
+		}
 	}
 
 	for (i = 0; i < ARRAY_SIZE(tctl_offset_table); i++) {
-- 
2.49.0
Re: [PATCH] [v2] hwmon: (k10temp) Add support for Zen5 Ryzen Desktop
Posted by Guenter Roeck 6 hours ago
On Thu, Apr 03, 2025 at 09:08:09AM +1100, David Hows wrote:
> Add support for retrieving CCD temperatures on Zen5 Desktop CPUs
> 
> Signed-off-by: David Hows <david@hows.id.au>

Applied.

Guenter