Skip to content

Commit d954559

Browse files
cyringCyrIng
authored andcommitted
[AMD][Zen4] Increased the UMC size to 12 channels.
1 parent 36adec3 commit d954559

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

coretypes.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1962,14 +1962,14 @@ typedef struct /* BSP CPUID features. */
19621962

19631963
/* Memory Controller' structures dimensions. */
19641964
#define MC_MAX_CTRL 8
1965-
#define MC_MAX_CHA 8
1965+
#define MC_MAX_CHA 12
19661966
#define MC_MAX_DIMM 4
19671967

19681968
#define MC_3D_VECTOR_TO_SCALAR(_mc, _cha, _slot) \
1969-
((_mc << 3 /*MC_MAX_CTRL*/) + (_cha << 3 /*MC_MAX_CHA*/) + _slot)
1969+
((_mc * MC_MAX_CTRL) + (_cha * MC_MAX_CHA) + _slot)
19701970

19711971
#define MC_2D_VECTOR_TO_SCALAR(_mc, _cha) \
1972-
((_mc << 3 /*MC_MAX_CTRL*/) + _cha)
1972+
((_mc * MC_MAX_CTRL) + _cha)
19731973

19741974
#define MC_VECTOR_DISPATCH(_1, _2, _3, MC_VECTOR_CURSOR, ...) \
19751975
MC_VECTOR_CURSOR

0 commit comments

Comments
 (0)