Commit 5c699396 authored by Anton Blanchard's avatar Anton Blanchard Committed by Michael Ellerman

powerpc/xmon: Reset RCU and soft lockup watchdogs

I'm seeing RCU warnings when exiting xmon. xmon resets the NMI
watchdog, but does nothing with the RCU stall or soft lockup
watchdogs. Add a helper function that handles all three.
Signed-off-by: default avatarAnton Blanchard <anton@ozlabs.org>
Acked-by: default avatarNicholas Piggin <npiggin@gmail.com>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200630100218.62a3c3fb@kryten.localdomain
parent 3337bf41
...@@ -481,6 +481,13 @@ static inline int unrecoverable_excp(struct pt_regs *regs) ...@@ -481,6 +481,13 @@ static inline int unrecoverable_excp(struct pt_regs *regs)
#endif #endif
} }
static void xmon_touch_watchdogs(void)
{
touch_softlockup_watchdog_sync();
rcu_cpu_stall_reset();
touch_nmi_watchdog();
}
static int xmon_core(struct pt_regs *regs, int fromipi) static int xmon_core(struct pt_regs *regs, int fromipi)
{ {
int cmd = 0; int cmd = 0;
...@@ -718,7 +725,7 @@ static int xmon_core(struct pt_regs *regs, int fromipi) ...@@ -718,7 +725,7 @@ static int xmon_core(struct pt_regs *regs, int fromipi)
else else
insert_cpu_bpts(); insert_cpu_bpts();
touch_nmi_watchdog(); xmon_touch_watchdogs();
local_irq_restore(flags); local_irq_restore(flags);
return cmd != 'X' && cmd != EOF; return cmd != 'X' && cmd != EOF;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment