Skip to content

Commit

Permalink
[AMD][Zen] Query DAC & CFG with the right UMC base address register
Browse files Browse the repository at this point in the history
  • Loading branch information
cyring authored and CyrIng committed Apr 11, 2023
1 parent 756e30d commit 509ab79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions corefreqk.c
Original file line number Diff line number Diff line change
Expand Up @@ -6405,11 +6405,11 @@ static void AMD_Zen_UMC(struct pci_dev *dev,

Core_AMD_SMN_Read(
PUBLIC(RO(Proc))->Uncore.MC[mc].Channel[cha].DIMM[slot].AMD17h.DAC,
SMU_AMD_UMC_BASE_CHA_F17H(cha) + UMC_DAC + (slot << 2), dev
UMC_BAR + UMC_DAC + (slot << 2), dev
);
Core_AMD_SMN_Read(
PUBLIC(RO(Proc))->Uncore.MC[mc].Channel[cha].DIMM[slot].AMD17h.CFG,
SMU_AMD_UMC_BASE_CHA_F17H(cha) + UMC_DIMM_CFG + (slot << 2), dev
UMC_BAR + UMC_DIMM_CFG + (slot << 2), dev
);
for (sec = 0; sec < 2; sec++)
{
Expand Down

0 comments on commit 509ab79

Please sign in to comment.