mirror of
https://github.com/cyring/CoreFreq.git
synced 2025-07-23 12:13:07 +02:00
[AMD][Zen][UMC] Computes DIMM ranks based on DDR type
This commit is contained in:
@@ -6604,9 +6604,11 @@ void AMD_17h_UMC(RO(SHM_STRUCT) *RO(Shm), RO(PROC) *RO(Proc))
|
|||||||
+ RO(Proc)->Uncore.MC[mc].Channel[cha].DIMM[slot].AMD17h.DAC.NumCol);
|
+ RO(Proc)->Uncore.MC[mc].Channel[cha].DIMM[slot].AMD17h.DAC.NumCol);
|
||||||
|
|
||||||
RO(Shm)->Uncore.MC[mc].Channel[cha].DIMM[slot].Ranks = \
|
RO(Shm)->Uncore.MC[mc].Channel[cha].DIMM[slot].Ranks = \
|
||||||
|
RO(Proc)->Uncore.MC[mc].Channel[cha].AMD17h.CONFIG.DdrType == 0 ?
|
||||||
RO(Proc)->Uncore.MC[mc].Channel[cha].DIMM[
|
RO(Proc)->Uncore.MC[mc].Channel[cha].DIMM[
|
||||||
slot
|
slot
|
||||||
].AMD17h.CFG.OnDimmMirror ? 2 : 1;
|
].AMD17h.CFG.OnDimmMirror ? 2 : 1
|
||||||
|
: 2; /* DDR5 */
|
||||||
|
|
||||||
DIMM_Size = 8LLU;
|
DIMM_Size = 8LLU;
|
||||||
DIMM_Size *= RO(Shm)->Uncore.MC[mc].Channel[cha].DIMM[slot].Banks;
|
DIMM_Size *= RO(Shm)->Uncore.MC[mc].Channel[cha].DIMM[slot].Banks;
|
||||||
|
Reference in New Issue
Block a user