diff options
author | Qiuxu Zhuo <qiuxu.zhuo@intel.com> | 2021-07-20 18:30:09 +0200 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2021-08-23 19:32:32 +0200 |
commit | fd07a4a0d30b5468a1f4a0739e34f5f014df7d44 (patch) | |
tree | 842acb8c34c93dac8e298aa6a4ea5aa2c3118800 /drivers/edac/skx_common.c | |
parent | EDAC/altera: Skip defining unused structures for specific configs (diff) | |
download | linux-fd07a4a0d30b5468a1f4a0739e34f5f014df7d44.tar.xz linux-fd07a4a0d30b5468a1f4a0739e34f5f014df7d44.zip |
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
Diffstat (limited to 'drivers/edac/skx_common.c')
-rw-r--r-- | drivers/edac/skx_common.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/edac/skx_common.c b/drivers/edac/skx_common.c index 5e83f59bef8a..f9120e36bf3a 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 { |