]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: Handle MCE on POWER9 with only DSISR bit 30 set
authorMichael Neuling <mikey@neuling.org>
Fri, 22 Sep 2017 03:32:21 +0000 (13:32 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Sep 2017 11:01:59 +0000 (21:01 +1000)
commit7e89eac617ded18b171be6e240ba56b92fe5a2e6
treee0f5525c741b273c011ab2968a21344266bcb71a
parent9731ba3c0e5365fd3518052ea4dd88958bc5e189
powerpc: Handle MCE on POWER9 with only DSISR bit 30 set

On POWER9 DD2.1 and below, it's possible for a paste instruction to
cause a Machine Check Exception (MCE) where only DSISR bit 30 (IBM 33)
is set. This will result in the MCE handler seeing an unknown event,
which triggers linux to crash.

We change this by detecting unknown events caused by load/stores in
the MCE handler and marking them as handled so that we no longer
crash.

An MCE that occurs like this is spurious, so we don't need to do
anything in terms of servicing it. If there is something that needs to
be serviced, the CPU will raise the MCE again with the correct DSISR
so that it can be serviced properly.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com
Acked-by: Balbir Singh <bsingharora@gmail.com>
[mpe: Expand comment with details from change log, use normal bit #s]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/kernel/mce_power.c