EDAC/skx_common: Enable EDAC support for the "near" memory
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Fri, 13 Jan 2023 03:27:58 +0000 (11:27 +0800)
committerTony Luck <tony.luck@intel.com>
Wed, 25 Jan 2023 16:16:44 +0000 (08:16 -0800)
commit6e8746cb735166eaf3ceb086b31bb0431f5e3532
tree034555c29a20c55d63ffe8585d153eb849dd4ef3
parent8d8fcc391f50e2d9686d42b85e9b1db89b1bbb35
EDAC/skx_common: Enable EDAC support for the "near" memory

The current {skx,i10nm}_edac miss the EDAC support to decode errors from
the 1st level memory (the fast "near" memory as cache) of the 2-level
memory system. Introduce a helper function skx_error_in_mem() to check
whether errors are from memory at the beginning of skx_mce_check_error().

As long as the errors are from memory (either the 1-level memory system
or the 2-level memory system), decode the errors.

Reported-and-tested-by: Youquan Song <youquan.song@intel.com>
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/all/20230113032802.41752-1-qiuxu.zhuo@intel.com
drivers/edac/skx_common.c
drivers/edac/skx_common.h