powerpc/traps: fix recoverability of machine check handling on book3s/32
authorChristophe Leroy <christophe.leroy@c-s.fr>
Tue, 22 Jan 2019 14:11:24 +0000 (14:11 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 23 Mar 2019 19:10:08 +0000 (20:10 +0100)
commit461a52a448937271cad6ba857f17d25f1685339d
treeeb9118f063e472285c9bf6e4e47b141d1b7a1560
parentbaed68a953ac6e7c10ff37e604fcc95cfff81bd9
powerpc/traps: fix recoverability of machine check handling on book3s/32

commit 0bbea75c476b77fa7d7811d6be911cc7583e640f upstream.

Looks like book3s/32 doesn't set RI on machine check, so
checking RI before calling die() will always be fatal
allthought this is not an issue in most cases.

Fixes: b96672dd840f ("powerpc: Machine check interrupt is a non-maskable interrupt")
Fixes: daf00ae71dad ("powerpc/traps: restore recoverability of machine_check interrupts")
Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Cc: stable@vger.kernel.org
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/kernel/traps.c