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 08:20:47 +0000 (09:20 +0100)
commitf4d1d649d2eaf389b16e9204d71ab0bcf7ceb4e2
tree269cba41f3f97ba1b2c006747c9a043fcb8bac05
parent2bf4b03bc3ecb43f7182c88e6c15f3014df6d845
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