提交 4a111add 编写于 作者: Q Qiuxu Zhuo 提交者: Youquan Song

EDAC/skx_common: Set the memory type correctly for HBM memory

mainline inclusion
from mainline-v5.15-rc1
commit fd07a4a0
category: feature
bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I5HAC1
CVE: NA

Intel-SIG: commit fd07a4a0 EDAC/skx_common: Set the memory type correctly for HBM
 memory.
Backport to add EDAC HBM support.

--------------------------------

Set the memory type to MEM_HBM2 if it's managed by the HBM2
memory controller.
Signed-off-by: NQiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: NTony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20210720163009.GA1417532@agluck-desk2.amr.corp.intel.comSigned-off-by: NYouquan Song <youquan.song@intel.com>
上级 b0adb315
......@@ -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 {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册