linux/arch/x86/kernel/cpu/mce
Yazen Ghannam 4783b9cb37 x86/mce: Make sure logged MCEs are processed after sysfs update
A recent change introduced a flag to queue up errors found during
boot-time polling. These errors will be processed during late init once
the MCE subsystem is fully set up.

A number of sysfs updates call mce_restart() which goes through a subset
of the CPU init flow. This includes polling MCA banks and logging any
errors found. Since the same function is used as boot-time polling,
errors will be queued. However, the system is now past late init, so the
errors will remain queued until another error is found and the workqueue
is triggered.

Call mce_schedule_work() at the end of mce_restart() so that queued
errors are processed.

Fixes: 3bff147b18 ("x86/mce: Defer processing of early errors")
Signed-off-by: Yazen Ghannam <yazen.ghannam@amd.com>
Signed-off-by: Borislav Petkov (AMD) <bp@alien8.de>
Reviewed-by: Tony Luck <tony.luck@intel.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20230301221420.2203184-1-yazen.ghannam@amd.com
2023-03-12 21:12:21 +01:00
..
Makefile thermal: Move therm_throt there from x86/mce 2021-02-08 11:43:20 +01:00
amd.c x86/mce: Add support for Extended Physical Address MCA changes 2022-12-28 22:37:37 +01:00
apei.c x86/mce: Retrieve poison range from hardware 2022-08-29 09:33:42 +02:00
core.c x86/mce: Make sure logged MCEs are processed after sysfs update 2023-03-12 21:12:21 +01: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/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: Add support for Extended Physical Address MCA changes 2022-12-28 22:37:37 +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/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