hwmon: (k10temp) Add per-CCD temperature monitoring for Zen5 Turin
A message that is not in the archive (sent off-list or not yet received): [email protected]
Guenter Roeck
maintainerQuoted 1 line · Gabriel Ford
Adds support for per-CCD temperature monitoring on Zen 5 Turin (EPYC 9005)
Nit: s/Adds/Add/
Quoted 5 lines
CPUs, as they fall in a different model range with a larger number of maximum CCDs compared to their desktop counterparts. Tested and working on an EPYC 9555P.
Signed-off-by Gabriel Ford <[email protected]>
I'll need confirmation from someone at AMD to confirm that this is correct.
Also, it appears that the patch did not make it into patchwork nor into any of the mailing lists, and thus it has not been reviewed by Sashiko. Any idea why this might be the case ?
Thanks,
Guenter
Quoted 30 lines
--- drivers/hwmon/k10temp.c | 8 ++++++++ 1 file changed, 8 insertions(+)drivers/hwmon/k10temp.c +8
-0@@ -207,6 +207,10 @@ static const char *k10temp_temp_label[] = {"Tccd10" ,"Tccd11" ,"Tccd12" , +"Tccd13" , +"Tccd14" , +"Tccd15" , +"Tccd16" }; static int k10temp_read_labels(struct device *dev,@@ -515,6 +519,10 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id) } }else if (boot_cpu_data.x86 ==0x1a ) {switch (boot_cpu_data.x86_model) { + case 0x00 ... 0x2f: /* Zen5 Turin */ + data->ccd_offset =0x1F0 ; +k10temp_get_ccd_support (data,16 ); +break ; case 0x40 ... 0x4f: /* Zen5 Ryzen Desktop */ data->ccd_offset =0x308 ;k10temp_get_ccd_support (data,8 );