]> git.baikalelectronics.ru Git - kernel.git/commit
x86/mce/dev-mcelog: Do not update kflags on AMD systems
authorSmita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Thu, 3 Sep 2020 23:45:31 +0000 (18:45 -0500)
committerBorislav Petkov <bp@suse.de>
Tue, 15 Sep 2020 08:04:51 +0000 (10:04 +0200)
commit9e23412db28d70a008690da912907b6b48f07169
treedbf5f771c38079e0f6bcfe8669fdd889fcd805ff
parentd843849db2d9f8c354248c81c93d5b038344ef08
x86/mce/dev-mcelog: Do not update kflags on AMD systems

The mcelog utility is not commonly used on AMD systems. Therefore,
errors logged only by the dev_mce_log() notifier will be missed. This
may occur if the EDAC modules are not loaded, in which case it's
preferable to print the error record by the default notifier.

However, the mce->kflags set by dev_mce_log() notifier makes the
default notifier skip over the errors assuming they are processed by
dev_mce_log().

Do not update kflags in the dev_mce_log() notifier on AMD systems.

Signed-off-by: Smita Koralahalli <Smita.KoralahalliChannabasappa@amd.com>
Signed-off-by: Borislav Petkov <bp@suse.de>
Link: https://lkml.kernel.org/r/20200903234531.162484-3-Smita.KoralahalliChannabasappa@amd.com
arch/x86/kernel/cpu/mce/dev-mcelog.c