]> 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)
commit1363875bdb6317a2d0798284d7aaf320f0782f6d
tree5fca3bc76a159eb53f63e3cb4b59ca4cad6d8031
parent46f401c4297a2232a037ad8801b6c83c90414cf7
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