powerpc/83xx: handle machine check caused by watchdog timer
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 10 Dec 2018 11:41:29 +0000 (11:41 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2019 14:34:51 +0000 (15:34 +0100)
commitf2f645667e785474834de678ceb0ddeac3f3f88c
tree20c038afdeac57b31af520743ae9bfff6fccf755
parente914a7747a531934bd878d7ec8857d5095c4b156
powerpc/83xx: handle machine check caused by watchdog timer

[ Upstream commit 0deae39cec6dab3a66794f3e9e83ca4dc30080f1 ]

When the watchdog timer is set in interrupt mode, it causes a
machine check when it times out. The purpose of this mode is to
ease debugging, not to crash the kernel and reboot the machine.

This patch implements a special handling for that, in order to not
crash the kernel if the watchdog times out while in interrupt or
within the idle task.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
[scottwood: added missing #include]
Signed-off-by: Scott Wood <oss@buserror.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/powerpc/include/asm/cputable.h
arch/powerpc/include/asm/reg.h
arch/powerpc/kernel/cputable.c
arch/powerpc/platforms/83xx/misc.c