OpenCloudOS-Kernel/arch/x86/kernel/cpu/mce
Smita Koralahalli 891e465a1b x86/mce: Check whether writes to MCA_STATUS are getting ignored
The platform can sometimes - depending on its settings - cause writes
to MCA_STATUS MSRs to get ignored, regardless of HWCR[McStatusWrEn]'s
value.

For further info see

  PPR for AMD Family 19h, Model 01h, Revision B1 Processors, doc ID 55898

at https://bugzilla.kernel.org/show_bug.cgi?id=206537.

Therefore, probe for ignored writes to MCA_STATUS to determine if hardware
error injection is at all possible.

  [ bp: Heavily massage commit message and patch. ]

Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lore.kernel.org/r/20220214233640.70510-2-Smita.KoralahalliChannabasappa@amd.com
2022-06-28 12:08:10 +02:00
..
Makefile thermal: Move therm_throt there from x86/mce 2021-02-08 11:43:20 +01:00
amd.c x86/MCE/AMD: Fix memory leak when threshold_create_bank() fails 2022-04-05 21:24:37 +02:00
apei.c ACPI: APEI: Fix missing ERST record id 2022-04-13 20:29:24 +02:00
core.c libnvdimm for 5.19 2022-05-27 15:49:30 -07:00
dev-mcelog.c x86/mce/dev-mcelog: Do not update kflags on AMD systems 2020-09-15 10:04:51 +02:00
genpool.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 437 2019-06-05 17:37:17 +02:00
inject.c x86/mce: Check whether writes to MCA_STATUS are getting ignored 2022-06-28 12:08:10 +02:00
intel.c x86/cpu: Merge Intel and AMD ppin_init() functions 2022-02-01 12:56:23 +01:00
internal.h x86/mce: Check whether writes to MCA_STATUS are getting ignored 2022-06-28 12:08:10 +02:00
p5.c x86/mce: Get rid of machine_check_vector 2021-09-23 11:15:49 +02:00
severity.c x86/mce: Add messages for panic errors in AMD's MCE grading 2022-04-25 12:40:48 +02:00
threshold.c x86/entry: Convert various system vectors 2020-06-11 15:15:14 +02:00
winchip.c x86/mce: Get rid of machine_check_vector 2021-09-23 11:15:49 +02:00