summaryrefslogtreecommitdiff
path: root/arch/powerpc/platforms
diff options
context:
space:
mode:
authorMahesh Salgaonkar <mahesh@linux.vnet.ibm.com>2019-04-29 21:15:55 +0300
committerMichael Ellerman <mpe@ellerman.id.au>2019-05-01 15:22:51 +0300
commitcda6618d060b5e8afc93e691d4bcd987f3dd4393 (patch)
tree0e46c9bfcbfc072447b278176b1704ea3648c45e /arch/powerpc/platforms
parentd6e8a150850601277039a548ffcdddd1bfe3e365 (diff)
downloadlinux-cda6618d060b5e8afc93e691d4bcd987f3dd4393.tar.xz
powerpc/powernv/mce: Print correct severity for MCE error.
Currently all machine check errors are printed as severe errors which isn't correct. Print soft errors as warning instead of severe errors. Signed-off-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/platforms')
-rw-r--r--arch/powerpc/platforms/powernv/opal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/platforms/powernv/opal.c b/arch/powerpc/platforms/powernv/opal.c
index 2b0eca104f86..737c51d63480 100644
--- a/arch/powerpc/platforms/powernv/opal.c
+++ b/arch/powerpc/platforms/powernv/opal.c
@@ -505,7 +505,7 @@ static int opal_recover_mce(struct pt_regs *regs,
recovered = 0;
}
- if (!recovered && evt->severity == MCE_SEV_ERROR_SYNC) {
+ if (!recovered && evt->sync_error) {
/*
* Try to kill processes if we get a synchronous machine check
* (e.g., one caused by execution of this instruction). This