]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce: Take action on UCNA/Deferred errors again
authorJan H. Schönherr <jschoenh@amazon.de>
Fri, 3 Jan 2020 15:07:17 +0000 (16:07 +0100)
committerBorislav Petkov <bp@suse.de>
Mon, 13 Jan 2020 09:07:23 +0000 (10:07 +0100)
commite97dc6b7e08d251f8ce47f0e4d63d30edc9563b1
tree02f2a2ac1f639749744d859f9d28d35d0bb83d2a
parent424c5cf463da3265ec9fbc58681f4f7c79079a12
x86/mce: Take action on UCNA/Deferred errors again

Commit

  c382e1ffba74 ("x86, mce: Support memory error recovery for both UCNA
and Deferred error in machine_check_poll")

added handling of UCNA and Deferred errors by adding them to the ring
for SRAO errors.

Later, commit

  af54084a225c ("x86/mce: Remove the MCE ring for Action Optional errors")

switched storage from the SRAO ring to the unified pool that is still
in use today. In order to only act on the intended errors, a filter
for MCE_AO_SEVERITY is used -- effectively removing handling of
UCNA/Deferred errors again.

Extend the severity filter to include UCNA/Deferred errors again.
Also, generalize the naming of the notifier from SRAO to UC to capture
the extended scope.

Note, that this change may cause a message like the following to appear,
as the same address may be reported as SRAO and as UCNA:

 Memory failure: 0x5fe3284: already hardware poisoned

Technically, this is a return to previous behavior.

Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de>
Signed-off-by: Borislav Petkov <bp@suse.de>
Acked-by: Tony Luck <tony.luck@intel.com>
Link: https://lkml.kernel.org/r/20200103150722.20313-2-jschoenh@amazon.de
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mce/core.c