Skip to content

Commit fd07a4a

Browse files
qzhuo2aegl
authored andcommitted
EDAC/skx_common: Set the memory type correctly for HBM memory
Set the memory type to MEM_HBM2 if it's managed by the HBM2 memory controller. Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com> Signed-off-by: Tony Luck <tony.luck@intel.com> Link: https://lore.kernel.org/r/20210720163009.GA1417532@agluck-desk2.amr.corp.intel.com
1 parent 7d07deb commit fd07a4a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/edac/skx_common.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,10 @@ int skx_get_dimm_info(u32 mtr, u32 mcmtr, u32 amap, struct dimm_info *dimm,
345345
rows = numrow(mtr);
346346
cols = imc->hbm_mc ? 6 : numcol(mtr);
347347

348-
if (cfg->support_ddr5 && ((amap & 0x8) || imc->hbm_mc)) {
348+
if (imc->hbm_mc) {
349+
banks = 32;
350+
mtype = MEM_HBM2;
351+
} else if (cfg->support_ddr5 && (amap & 0x8)) {
349352
banks = 32;
350353
mtype = MEM_DDR5;
351354
} else {

0 commit comments

Comments
 (0)