]> git.hungrycats.org Git - linux/commit
EDAC/skx_common: Allow decoding of SGX addresses
authorQiuxu Zhuo <qiuxu.zhuo@intel.com>
Mon, 8 Apr 2024 12:04:19 +0000 (20:04 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:10 +0000 (09:49 +0200)
commitae136271e42d4588d89554852eec7d219fd844ec
tree0c65e137275f06584cf0e16eac877bf3d3ce1b9c
parent128996b8480cb6f03a771f238934aac058cf9357
EDAC/skx_common: Allow decoding of SGX addresses

[ Upstream commit e0d335077831196bffe6a634ffe385fc684192ca ]

There are no "struct page" associations with SGX pages, causing the check
pfn_to_online_page() to fail. This results in the inability to decode the
SGX addresses and warning messages like:

  Invalid address 0x34cc9a98840 in IA32_MC17_ADDR

Add an additional check to allow the decoding of the error address and to
skip the warning message, if the error address is an SGX address.

Fixes: 1e92af09fab1 ("EDAC/skx_common: Filter out the invalid address")
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Link: https://lore.kernel.org/r/20240408120419.50234-1-qiuxu.zhuo@intel.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/edac/skx_common.c