]> 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)
commit9902d1f25e50bda37d656ab562f9673a3516d880
tree5fca3bc76a159eb53f63e3cb4b59ca4cad6d8031
parent2a62b36ac10c5d0b9c16cd1fe3266ad1a473cd03
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