Skip to content

Commit

Permalink
[AMD][Turin] Employed the Genoa UMC decoder
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring committed Oct 27, 2024
1 parent bc7d3fe commit a1189f5
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
3 changes: 3 additions & 0 deletions x86_64/corefreq-api.h
Original file line number Diff line number Diff line change
Expand Up @@ -1636,3 +1636,6 @@ typedef struct
#define DID_AMD_19H_RAPHAEL_DF_UMC 0x14e0 /* Raphael */
#define DID_AMD_19H_GENOA_DF_UMC 0x14ad /* Genoa */
#define DID_AMD_19H_PHOENIX_DF_UMC 0x14f0 /* Phoenix */
/* Source: AMD PPR Vol 1 for AMD Family 1Ah Model 02h C1 */
#define DID_AMD_1AH_ZEN5_TURIN_IOMMU 0x153b /* Turin */
#define DID_AMD_1AH_TURIN_DF_UMC 0x12c0 /* Turin */
2 changes: 2 additions & 0 deletions x86_64/corefreqd.c
Original file line number Diff line number Diff line change
Expand Up @@ -7711,6 +7711,7 @@ void PCI_AMD(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc), RO(CORE) *RO(Core),
case DID_AMD_19H_ZEN4_RPL_NB_IOMMU:
case DID_AMD_19H_ZEN4_GNA_NB_IOMMU:
case DID_AMD_19H_ZEN4_PHX_NB_IOMMU:
case DID_AMD_1AH_ZEN5_TURIN_IOMMU:
AMD_17h_IOMMU(RO(Shm), RO(Proc));
break;
case DID_AMD_17H_ZEPPELIN_DF_UMC:
Expand All @@ -7729,6 +7730,7 @@ void PCI_AMD(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc), RO(CORE) *RO(Core),
case DID_AMD_19H_RAPHAEL_DF_UMC:
case DID_AMD_19H_GENOA_DF_UMC:
case DID_AMD_19H_PHOENIX_DF_UMC:
case DID_AMD_1AH_TURIN_DF_UMC:
AMD_17h_UMC(RO(Shm), RO(Proc));
AMD_17h_CAP(RO(Shm), RO(Proc), RO(Core));
SET_CHIPSET(IC_ZEN);
Expand Down
17 changes: 16 additions & 1 deletion x86_64/corefreqk.h
Original file line number Diff line number Diff line change
Expand Up @@ -2071,6 +2071,8 @@ static void InitTimer_AMD_Zen4_RPL(unsigned int cpu) ;
[Zen4c/Hawk Point] AF_7Ch 4 nm [HWK]
[Zen4c][Bergamo][Siena] AF_A0h Stepping [1][2] 5 nm SVR
[Zen4/Storm Peak] AF_18h Stepping 1 5 nm WS/SP6
[Family 1Ah] BF_00h
[Zen5/5c/Strix Point] BF_24h 4 nm [STX]/FP8
[Zen5/Granite Ridge] BF_44h 4 nm Eldora
[Zen5/Turin] BF_02h Stepping 1 4 nm SP5
Expand Down Expand Up @@ -2188,6 +2190,7 @@ static PCI_CALLBACK AMD_DataFabric_Rembrandt(struct pci_dev *pdev) ;
static PCI_CALLBACK AMD_DataFabric_Raphael(struct pci_dev *pdev) ;
static PCI_CALLBACK AMD_DataFabric_Genoa(struct pci_dev *pdev) ;
static PCI_CALLBACK AMD_DataFabric_Phoenix(struct pci_dev *pdev) ;
#define AMD_DataFabric_Turin AMD_DataFabric_Genoa

static struct pci_device_id PCI_Void_ids[] = {
{0, }
Expand Down Expand Up @@ -3443,7 +3446,19 @@ static struct pci_device_id PCI_AMD_17h_ids[] = {
};

#define PCI_AMD_19h_ids PCI_AMD_17h_ids
#define PCI_AMD_1Ah_ids PCI_AMD_19h_ids

/* AMD Family 1Ah */
static struct pci_device_id PCI_AMD_1Ah_ids[] = {
{
PCI_VDEVICE(AMD, DID_AMD_1AH_ZEN5_TURIN_IOMMU),
.driver_data = (kernel_ulong_t) AMD_Zen_IOMMU
},
{
PCI_VDEVICE(AMD, DID_AMD_1AH_TURIN_DF_UMC),
.driver_data = (kernel_ulong_t) AMD_DataFabric_Turin
},
{0, }
};

/* Left as empty for initialization purpose. */
static char *Arch_Misc_Processor[] = ZLIST(NULL);
Expand Down

0 comments on commit a1189f5

Please sign in to comment.