linux/arch/x86/kernel/cpu/mce
Yazen Ghannam 495a91d099 x86/MCE/AMD: Split amd_mce_is_memory_error()
Define helper functions for legacy and SMCA systems in order to reuse
individual checks in later changes.

Describe what each function is checking for, and correct the XEC bitmask
for SMCA.

No functional change intended.

  [ bp: Use "else in amd_mce_is_memory_error() to make the conditional
    balanced, for readability. ]

Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Shuai Xue <xueshuai@linux.alibaba.com>
Link: https://lore.kernel.org/r/20230613141142.36801-2-yazen.ghannam@amd.com
2023-10-16 15:04:53 +02:00
..
amd.c x86/MCE/AMD: Split amd_mce_is_memory_error() 2023-10-16 15:04:53 +02:00
apei.c x86/mce: Retrieve poison range from hardware 2022-08-29 09:33:42 +02:00
core.c x86/MCE: Always save CS register on AMD Zen IF Poison errors 2023-08-18 13:05:52 +02:00
dev-mcelog.c x86/mce/dev-mcelog: use strscpy() to instead of strncpy() 2023-01-07 11:47:35 +01:00
genpool.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 437 2019-06-05 17:37:17 +02:00
inject.c x86/apic: Wrap IPI calls into helper functions 2023-08-09 12:00:55 -07:00
intel.c x86/mce: Prevent duplicate error records 2023-07-21 18:55:46 +02:00
internal.h x86/MCE: Always save CS register on AMD Zen IF Poison errors 2023-08-18 13:05:52 +02:00
Makefile thermal: Move therm_throt there from x86/mce 2021-02-08 11:43:20 +01:00
p5.c x86/mce: Get rid of machine_check_vector 2021-09-23 11:15:49 +02:00
severity.c x86/mce: Use severity table to handle uncorrected errors in kernel 2022-10-31 17:01:19 +01:00
threshold.c x86/apic: Nuke ack_APIC_irq() 2023-08-09 11:58:34 -07:00
winchip.c x86/mce: Get rid of machine_check_vector 2021-09-23 11:15:49 +02:00