Skip to content

Commit 6a4b450

Browse files
cyringCyrIng
authored and
CyrIng
committed
[AMD][Raphael] Adding device DIDs to probe UMC and IOMMU
1 parent 6794d6c commit 6a4b450

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

corefreq-api.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,8 @@ typedef struct
14211421
#define DID_AMD_17H_ARDEN_NB_IOMMU 0x1627 /* Arden */
14221422
/* Source: AMD Ryzen 5 6600H [ Zen3+ Rembrandt ] */
14231423
#define DID_AMD_19H_ZEN3_RMB_NB_IOMMU 0x14b6 /* Rembrandt */
1424-
1424+
/* Source: AMD Ryzen 9 7950X [ Zen4/Raphael ] */
1425+
#define DID_AMD_19H_ZEN4_RPL_NB_IOMMU 0x14d9 /* Raphael */
14251426
/* Source: /include/linux/pci_ids.h */
14261427
#define DID_AMD_17H_ZEPPELIN_DF_UMC 0x1460 /* Zeppelin */
14271428
#define DID_AMD_17H_RAVEN_DF_UMC 0x15e8 /* Raven */
@@ -1435,3 +1436,4 @@ typedef struct
14351436
#define DID_AMD_19H_VERMEER_DF_UMC 0x1650 /* Vermeer */
14361437
#define DID_AMD_19H_CEZANNE_DF_UMC 0x166a /* Cezanne */
14371438
#define DID_AMD_19H_REMBRANDT_DF_UMC 0x1679 /* Rembrandt */
1439+
#define DID_AMD_19H_RAPHAEL_DF_UMC 0x14e0 /* Raphael */

corefreqd.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6572,6 +6572,7 @@ void PCI_AMD(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc), RO(CORE) *RO(Core),
65726572
case DID_AMD_17H_FIREFLIGHT_NB_IOMMU:
65736573
case DID_AMD_17H_ARDEN_NB_IOMMU:
65746574
case DID_AMD_19H_ZEN3_RMB_NB_IOMMU:
6575+
case DID_AMD_19H_ZEN4_RPL_NB_IOMMU:
65756576
AMD_17h_IOMMU(RO(Shm), RO(Proc));
65766577
break;
65776578
case DID_AMD_17H_ZEPPELIN_DF_UMC:
@@ -6586,6 +6587,7 @@ void PCI_AMD(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc), RO(CORE) *RO(Core),
65866587
case DID_AMD_19H_VERMEER_DF_UMC:
65876588
case DID_AMD_19H_CEZANNE_DF_UMC:
65886589
case DID_AMD_19H_REMBRANDT_DF_UMC:
6590+
case DID_AMD_19H_RAPHAEL_DF_UMC:
65896591
AMD_17h_UMC(RO(Shm), RO(Proc));
65906592
AMD_17h_CAP(RO(Shm), RO(Proc), RO(Core));
65916593
SET_CHIPSET(IC_ZEN);

corefreqk.h

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1693,6 +1693,7 @@ static void Query_Hygon_F18h(unsigned int cpu);
16931693
#define InitTimer_AMD_F19h_Zen3_SP InitTimer_AMD_F17h_Zen2_SP
16941694
#define InitTimer_AMD_F19h_Zen3_MP InitTimer_AMD_F17h_Zen2_MP
16951695
#define InitTimer_AMD_F19h_Zen3_APU InitTimer_AMD_F17h_Zen2_APU
1696+
#define InitTimer_AMD_Zen4_RPL InitTimer_AMD_Zen3Plus_RMB
16961697
#define Start_Uncore_AMD_Family_19h Start_Uncore_AMD_Family_17h
16971698
#define Stop_Uncore_AMD_Family_19h Stop_Uncore_AMD_Family_17h
16981699

@@ -2050,6 +2051,7 @@ static PCI_CALLBACK AMD_DataFabric_Arden(struct pci_dev *pdev) ;
20502051
static PCI_CALLBACK AMD_DataFabric_Vermeer(struct pci_dev *pdev) ;
20512052
static PCI_CALLBACK AMD_DataFabric_Cezanne(struct pci_dev *pdev) ;
20522053
static PCI_CALLBACK AMD_DataFabric_Rembrandt(struct pci_dev *pdev) ;
2054+
#define AMD_DataFabric_Raphael AMD_DataFabric_Rembrandt
20532055

20542056
static struct pci_device_id PCI_Void_ids[] = {
20552057
{0, }
@@ -2849,6 +2851,10 @@ static struct pci_device_id PCI_AMD_17h_ids[] = {
28492851
PCI_VDEVICE(AMD, DID_AMD_19H_ZEN3_RMB_NB_IOMMU),
28502852
.driver_data = (kernel_ulong_t) AMD_Zen_IOMMU
28512853
},
2854+
{
2855+
PCI_VDEVICE(AMD, DID_AMD_19H_ZEN4_RPL_NB_IOMMU),
2856+
.driver_data = (kernel_ulong_t) AMD_Zen_IOMMU
2857+
},
28522858
/* Source: HYGON: PCI list */
28532859
{
28542860
PCI_VDEVICE(HYGON, DID_AMD_17H_ZEN_PLUS_NB_IOMMU),
@@ -2905,6 +2911,10 @@ static struct pci_device_id PCI_AMD_17h_ids[] = {
29052911
PCI_VDEVICE(AMD, DID_AMD_19H_REMBRANDT_DF_UMC),
29062912
.driver_data = (kernel_ulong_t) AMD_DataFabric_Rembrandt
29072913
},
2914+
{
2915+
PCI_VDEVICE(AMD, DID_AMD_19H_RAPHAEL_DF_UMC),
2916+
.driver_data = (kernel_ulong_t) AMD_DataFabric_Raphael
2917+
},
29082918
{0, }
29092919
};
29102920

@@ -9835,14 +9845,14 @@ static ARCH Arch[ARCHITECTURES] = {
98359845
.Start = Start_AMD_Family_19h,
98369846
.Stop = Stop_AMD_Family_19h,
98379847
.Exit = Exit_AMD_F19h,
9838-
.Timer = InitTimer_AMD_F19h_Zen3_SP,
9848+
.Timer = InitTimer_AMD_Zen4_RPL,
98399849
.BaseClock = BaseClock_AMD_Family_19h,
98409850
.ClockMod = ClockMod_AMD_Zen,
98419851
.TurboClock = TurboClock_AMD_Zen,
98429852
.thermalFormula = THERMAL_FORMULA_AMD_ZEN3,
98439853
.voltageFormula = VOLTAGE_FORMULA_AMD_19h,
98449854
.powerFormula = POWER_FORMULA_AMD_19h,
9845-
.PCI_ids = PCI_Void_ids,
9855+
.PCI_ids = PCI_AMD_19h_ids,
98469856
.Uncore = {
98479857
.Start = Start_Uncore_AMD_Family_19h,
98489858
.Stop = Stop_Uncore_AMD_Family_19h,

0 commit comments

Comments
 (0)