EDAC/i10nm: Add detection of memory levels for ICX/SPR servers
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Fri, 11 Jun 2021 17:01:19 +0000 (10:01 -0700)
committerTony Luck <tony.luck@intel.com>
Fri, 18 Jun 2021 01:19:30 +0000 (18:19 -0700)
commit4bd4d32e9a38d7ffb091b4109ab63c8f601e5678
tree59ed1c06888923f84a61e087759d3aba3dbd0db8
parent2f4348e5a86198704368a699a7c4cdeb21d569f5
EDAC/i10nm: Add detection of memory levels for ICX/SPR servers

Current i10nm_edac driver is only for system configured in 1-level
memory. If the system is configured in 2-level memory, the driver
doesn't report the 1st level memory DIMM for the error address, even
if the error occurs in the 1st level memory.

Both Ice Lake servers and Sapphire Rapids servers can be configured
in 2-level memory. Add detection of memory levels to i10nm_edac for
the two kinds of servers so that the driver can report the 2nd level
memory DIMM or the 1st level memory DIMM according to error source.

Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20210611170123.1057025-3-tony.luck@intel.com
drivers/edac/i10nm_base.c
drivers/edac/skx_common.h