From: Qiuxu Zhuo Date: Tue, 20 Jul 2021 16:30:09 +0000 (-0700) Subject: EDAC/skx_common: Set the memory type correctly for HBM memory X-Git-Tag: v5.15-rc1~205^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=fd07a4a0d30b5468a1f4a0739e34f5f014df7d44;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Tony Luck Link: https://lore.kernel.org/r/20210720163009.GA1417532@agluck-desk2.amr.corp.intel.com --- diff --git a/drivers/edac/skx_common.c b/drivers/edac/skx_common.c index 5e83f59bef8aa..f9120e36bf3af 100644 --- a/drivers/edac/skx_common.c +++ b/drivers/edac/skx_common.c @@ -345,7 +345,10 @@ int skx_get_dimm_info(u32 mtr, u32 mcmtr, u32 amap, struct dimm_info *dimm, rows = numrow(mtr); cols = imc->hbm_mc ? 6 : numcol(mtr); - if (cfg->support_ddr5 && ((amap & 0x8) || imc->hbm_mc)) { + if (imc->hbm_mc) { + banks = 32; + mtype = MEM_HBM2; + } else if (cfg->support_ddr5 && (amap & 0x8)) { banks = 32; mtype = MEM_DDR5; } else {