Skip to content

Commit e0d3350

Browse files
qzhuo2aegl
authored andcommitted
EDAC/skx_common: Allow decoding of SGX addresses
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: 1e92af0 ("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
1 parent d7518ad commit e0d3350

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/edac/skx_common.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -648,7 +648,7 @@ int skx_mce_check_error(struct notifier_block *nb, unsigned long val,
648648
memset(&res, 0, sizeof(res));
649649
res.mce = mce;
650650
res.addr = mce->addr & MCI_ADDR_PHYSADDR;
651-
if (!pfn_to_online_page(res.addr >> PAGE_SHIFT)) {
651+
if (!pfn_to_online_page(res.addr >> PAGE_SHIFT) && !arch_is_platform_page(res.addr)) {
652652
pr_err("Invalid address 0x%llx in IA32_MC%d_ADDR\n", mce->addr, mce->bank);
653653
return NOTIFY_DONE;
654654
}

0 commit comments

Comments
 (0)