]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s: fix handling of non-synchronous machine checks
authorNicholas Piggin <npiggin@gmail.com>
Tue, 28 Feb 2017 02:00:46 +0000 (12:00 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 10 Mar 2017 05:32:06 +0000 (16:32 +1100)
commit5689b706160b5d3f55ae42cd03b789bab4550020
tree5fca3bc76a159eb53f63e3cb4b59ca4cad6d8031
parent2267dcb9e09f596e01e955e127a6dc0d5c16da3d
powerpc/64s: fix handling of non-synchronous machine checks

A synchronous machine check is an exception raised by the attempt to
execute the current instruction. If the error can't be corrected, it
can make sense to SIGBUS the currently running process.

In other cases, the error condition is not related to the current
instruction, so killing the current process is not the right thing to
do.

Today, all machine checks are MCE_SEV_ERROR_SYNC, so this has no
practical change. It will be used to handle POWER9 asynchronous
machine checks.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/opal.c