]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
parisc/kgdb: add kgdb_roundup() to make kgdb work with idle polling
authorSven Schnelle <svens@stackframe.org>
Fri, 15 Oct 2021 19:49:23 +0000 (21:49 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 26 Nov 2021 10:36:07 +0000 (11:36 +0100)
commit007466218935c54404db3e2851c117da335f7da4
tree625f310fc7e411e6ad5e13c58642d058455a8f65
parent4847dcb44233beb8a73a35709f1a5296b25e72a1
parisc/kgdb: add kgdb_roundup() to make kgdb work with idle polling

[ Upstream commit 66e29fcda1824f0427966fbee2bd2c85bf362c82 ]

With idle polling, IPIs are not sent when a CPU idle, but queued
and run later from do_idle(). The default kgdb_call_nmi_hook()
implementation gets the pointer to struct pt_regs from get_irq_reqs(),
which doesn't work in that case because it was not called from the
IPI interrupt handler. Fix it by defining our own kgdb_roundup()
function which sents an IPI_ENTER_KGDB. When that IPI is received
on the target CPU kgdb_nmicallback() is called.

Signed-off-by: Sven Schnelle <svens@stackframe.org>
Signed-off-by: Helge Deller <deller@gmx.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/parisc/kernel/smp.c