mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Add support for CCD temperatures in AMD 1Ah CPUs model 0x40..0x4f
@ 2025-03-25 11:14 David Hows
  2025-03-25 12:46 ` Guenter Roeck
  0 siblings, 1 reply; 4+ messages in thread
From: David Hows @ 2025-03-25 11:14 UTC (permalink / raw)
  To: Clemens Ladisch, Jean Delvare, Guenter Roeck, linux-hwmon, linux-kernel

---
 drivers/hwmon/k10temp.c | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/drivers/hwmon/k10temp.c b/drivers/hwmon/k10temp.c
index d0b4cc9a5011..cc2ad7a324f9 100644
--- a/drivers/hwmon/k10temp.c
+++ b/drivers/hwmon/k10temp.c
@@ -502,6 +502,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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2025-03-25 22:36 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-03-25 11:14 [PATCH] Add support for CCD temperatures in AMD 1Ah CPUs model 0x40..0x4f David Hows
2025-03-25 12:46 ` Guenter Roeck
2025-03-25 19:04   ` David Hows
2025-03-25 22:36     ` Guenter Roeck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®