]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv/mce: Don't silently restart the machine
authorBalbir Singh <bsingharora@gmail.com>
Thu, 8 Mar 2018 00:36:06 +0000 (11:36 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 13 Mar 2018 04:50:31 +0000 (15:50 +1100)
commitdb1e50ccc2930e3e3fa1296f77b6e0229c20747b
tree37ddcaea9d6b0e4579bec6579130cb4be859dda1
parent450ba87d35b4a853a8b0e19fecea1d0228ed77ec
powerpc/powernv/mce: Don't silently restart the machine

On MCE the current code will restart the machine with
ppc_md.restart(). This case was extremely unlikely since
prior to that a skiboot call is made and that resulted in
a checkstop for analysis.

With newer skiboots, on P9 we don't checkstop the box by
default, instead we return back to the kernel to extract
useful information at the time of the MCE. While we still
get this information, this patch converts the restart to
a panic(), so that if configured a dump can be taken and
we can track and probably debug the potential issue causing
the MCE.

Signed-off-by: Balbir Singh <bsingharora@gmail.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c