]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc: introduce die_mce
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:33 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:11 +0000 (00:02 +1100)
commit209e9d500e25eada096b2c09a34093bc458166f3
treef2f9b5484471d2f641c25ea289ca4e398a02657f
parentdcdb4f12963f3f4200e24e1dad78564a98736f67
powerpc: introduce die_mce

As explained by commit daf00ae71dad ("powerpc/traps: restore
recoverability of machine_check interrupts"), die() can't be called from
within nmi_enter to nicely kill a process context that was interrupted.
nmi_exit must be called first.

This adds a function die_mce which takes care of this for machine check
handlers.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-24-npiggin@gmail.com
arch/powerpc/include/asm/bug.h
arch/powerpc/kernel/traps.c
arch/powerpc/platforms/powernv/opal.c
arch/powerpc/platforms/pseries/ras.c