Skip to content

Commit cbd8353

Browse files
committed
hwmon: (k10temp) Add support for Zen5 Ryzen Desktop
JIRA: https://issues.redhat.com/browse/RHEL-118516 commit 2c18396 Author: David Hows <david@hows.id.au> Date: Thu Apr 3 09:08:09 2025 +1100 hwmon: (k10temp) Add support for Zen5 Ryzen Desktop Add support for retrieving CCD temperatures on Zen5 (Granite Ridge) Desktop CPUs. Signed-off-by: David Hows <david@hows.id.au> Link: https://lore.kernel.org/r/Z-21SQkZpuWiWK06@archibald.hows.id.au Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Steve Best <sbest@redhat.com>
1 parent 24ee20f commit cbd8353

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

drivers/hwmon/k10temp.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -503,6 +503,13 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
503503
k10temp_get_ccd_support(data, 12);
504504
break;
505505
}
506+
} else if (boot_cpu_data.x86 == 0x1a) {
507+
switch (boot_cpu_data.x86_model) {
508+
case 0x40 ... 0x4f: /* Zen5 Ryzen Desktop */
509+
data->ccd_offset = 0x308;
510+
k10temp_get_ccd_support(data, 8);
511+
break;
512+
}
506513
}
507514

508515
for (i = 0; i < ARRAY_SIZE(tctl_offset_table); i++) {

0 commit comments

Comments
 (0)