@@ -65,7 +65,7 @@ static DEFINE_MUTEX(nb_smu_ind_mutex);
65
65
#define F15H_M60H_HARDWARE_TEMP_CTRL_OFFSET 0xd8200c64
66
66
#define F15H_M60H_REPORTED_TEMP_CTRL_OFFSET 0xd8200ca4
67
67
68
- /* Common for Zen CPU families (Family 17h and 18h and 19h) */
68
+ /* Common for Zen CPU families (Family 17h and 18h and 19h and 1Ah ) */
69
69
#define ZEN_REPORTED_TEMP_CTRL_BASE 0x00059800
70
70
71
71
#define ZEN_CCD_TEMP (offset , x ) (ZEN_REPORTED_TEMP_CTRL_BASE + \
@@ -475,6 +475,10 @@ static int k10temp_probe(struct pci_dev *pdev, const struct pci_device_id *id)
475
475
k10temp_get_ccd_support (pdev , data , 12 );
476
476
break ;
477
477
}
478
+ } else if (boot_cpu_data .x86 == 0x1a ) {
479
+ data -> temp_adjust_mask = ZEN_CUR_TEMP_RANGE_SEL_MASK ;
480
+ data -> read_tempreg = read_tempreg_nb_zen ;
481
+ data -> is_zen = true;
478
482
} else {
479
483
data -> read_htcreg = read_htcreg_pci ;
480
484
data -> read_tempreg = read_tempreg_pci ;
@@ -521,6 +525,8 @@ static const struct pci_device_id k10temp_id_table[] = {
521
525
{ PCI_VDEVICE (AMD , PCI_DEVICE_ID_AMD_19H_M60H_DF_F3 ) },
522
526
{ PCI_VDEVICE (AMD , PCI_DEVICE_ID_AMD_19H_M70H_DF_F3 ) },
523
527
{ PCI_VDEVICE (AMD , PCI_DEVICE_ID_AMD_19H_M78H_DF_F3 ) },
528
+ { PCI_VDEVICE (AMD , PCI_DEVICE_ID_AMD_1AH_M00H_DF_F3 ) },
529
+ { PCI_VDEVICE (AMD , PCI_DEVICE_ID_AMD_1AH_M20H_DF_F3 ) },
524
530
{ PCI_VDEVICE (HYGON , PCI_DEVICE_ID_AMD_17H_DF_F3 ) },
525
531
{}
526
532
};
0 commit comments