x86/mce: Fix all mce notifiers to update the mce->kflags bitmask
authorTony Luck <tony.luck@intel.com>
Fri, 14 Feb 2020 22:27:17 +0000 (14:27 -0800)
committerBorislav Petkov <bp@suse.de>
Tue, 14 Apr 2020 13:59:26 +0000 (15:59 +0200)
commit23ba710a0864108910c7531dc4c73ef65eca5568
treed5875a88dffb875229136fed490ad8367a108fdc
parent1de08dccd383482a3e88845d3554094d338f5ff9
x86/mce: Fix all mce notifiers to update the mce->kflags bitmask

If the handler took any action to log or deal with the error, set a bit
in mce->kflags so that the default handler on the end of the machine
check chain can see what has been done.

Get rid of NOTIFY_STOP returns. Make the EDAC and dev-mcelog handlers
skip over errors already processed by CEC.

Signed-off-by: Tony Luck <tony.luck@intel.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Tested-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20200214222720.13168-5-tony.luck@intel.com
arch/x86/kernel/cpu/mce/core.c
arch/x86/kernel/cpu/mce/dev-mcelog.c
drivers/acpi/acpi_extlog.c
drivers/acpi/nfit/mce.c
drivers/edac/i7core_edac.c
drivers/edac/mce_amd.c
drivers/edac/pnd2_edac.c
drivers/edac/sb_edac.c
drivers/edac/skx_common.c
drivers/ras/cec.c