Skip to content

Commit cc50bc1

Browse files
committed
Merge: hwmon: (k10temp): Updates
MR: https://gitlab.com/redhat/centos-stream/src/kernel/centos-stream-10/-/merge_requests/1516 Description: updates for hwmon: (k10temp) JIRA: https://issues.redhat.com/browse/RHEL-118516 Build Info: 69018550 Tested: Successful platform test results on AMD (amd-krackan-01) system. Signed-off-by: Steve Best <sbest@redhat.com> Approved-by: David Arcari <darcari@redhat.com> Approved-by: Tony Camuso <tcamuso@redhat.com> Approved-by: CKI KWF Bot <cki-ci-bot+kwf-gitlab-com@redhat.com> Merged-by: Scott Weaver <scweaver@redhat.com>
2 parents 67c7df8 + cbd8353 commit cc50bc1

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

drivers/hwmon/k10temp.c

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,7 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
467467
k10temp_get_ccd_support(data, 4);
468468
break;
469469
case 0x31: /* Zen2 Threadripper */
470+
case 0x47: /* Cyan Skillfish */
470471
case 0x60: /* Renoir */
471472
case 0x68: /* Lucienne */
472473
case 0x71: /* Zen2 */
@@ -502,6 +503,13 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
502503
k10temp_get_ccd_support(data, 12);
503504
break;
504505
}
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+
}
505513
}
506514

507515
for (i = 0; i < ARRAY_SIZE(tctl_offset_table); i++) {
@@ -535,6 +543,7 @@ static const struct pci_device_id k10temp_id_table[] = {
535543
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_DF_F3) },
536544
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M10H_DF_F3) },
537545
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M30H_DF_F3) },
546+
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M40H_DF_F3) },
538547
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M60H_DF_F3) },
539548
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_M70H_DF_F3) },
540549
{ PCI_VDEVICE(AMD, PCI_DEVICE_ID_AMD_17H_MA0H_DF_F3) },

include/linux/pci_ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,7 @@
570570
#define PCI_DEVICE_ID_AMD_17H_DF_F3 0x1463
571571
#define PCI_DEVICE_ID_AMD_17H_M10H_DF_F3 0x15eb
572572
#define PCI_DEVICE_ID_AMD_17H_M30H_DF_F3 0x1493
573+
#define PCI_DEVICE_ID_AMD_17H_M40H_DF_F3 0x13f3
573574
#define PCI_DEVICE_ID_AMD_17H_M60H_DF_F3 0x144b
574575
#define PCI_DEVICE_ID_AMD_17H_M70H_DF_F3 0x1443
575576
#define PCI_DEVICE_ID_AMD_17H_MA0H_DF_F3 0x1727

0 commit comments

Comments
 (0)