Commit ab278fc 1 parent 5905720 commit ab278fc Copy full SHA for ab278fc
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -7118,15 +7118,17 @@ Window *CreateMemCtrl(unsigned long long id)
7118
7118
switch (Shm -> Uncore .Unit .DDR_Ver ) {
7119
7119
case 5 :
7120
7120
case 4 :
7121
- ctrlHeaders = 7 ;
7122
- channelHeaders = 5 ;
7123
7121
if (Shm -> Proc .Features .Info .Vendor .CRC == CRC_INTEL )
7124
7122
{
7123
+ ctrlHeaders = 7 ;
7124
+ channelHeaders = 5 ;
7125
7125
pTimingFunc = Timing_DDR4 ;
7126
7126
}
7127
7127
else if ( (Shm -> Proc .Features .Info .Vendor .CRC == CRC_AMD )
7128
7128
|| (Shm -> Proc .Features .Info .Vendor .CRC == CRC_HYGON ) )
7129
7129
{
7130
+ ctrlHeaders = 8 ;
7131
+ channelHeaders = 6 ;
7130
7132
pTimingFunc = Timing_DDR4_Zen ;
7131
7133
}
7132
7134
break ;
@@ -7139,7 +7141,7 @@ Window *CreateMemCtrl(unsigned long long id)
7139
7141
break ;
7140
7142
}
7141
7143
for (mc = 0 ; mc < Shm -> Uncore .CtrlCount ; mc ++ ) {
7142
- rows += ctrlHeaders * Shm -> Uncore . CtrlCount ;
7144
+ rows += ctrlHeaders ;
7143
7145
rows += channelHeaders * Shm -> Uncore .MC [mc ].ChannelCount ;
7144
7146
rows += Shm -> Uncore .MC [mc ].SlotCount * Shm -> Uncore .MC [mc ].ChannelCount ;
7145
7147
}
You can’t perform that action at this time.
0 commit comments