From d79c35a6a4e026ed1ca6a445ade63f193e28b512 Mon Sep 17 00:00:00 2001 From: Daniel Vetter Date: Wed, 11 Oct 2017 17:05:18 +0200 Subject: softdog: Obey hardlockup_all_cpu_backtrace sysctl This is used by the nmi watchdog, but also useful by the softdog when we're trying to figure out where exactly we're stuck. Cc: Chris Wilson Cc: Imre Deak Cc: Wim Van Sebroeck Cc: Guenter Roeck Cc: linux-watchdog@vger.kernel.org References: https://bugs.freedesktop.org/show_bug.cgi?id=103160 Signed-off-by: Daniel Vetter --- FIXME: Take the && 1 out once CI is configured to enable this. -Daniel --- drivers/watchdog/softdog.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/watchdog/softdog.c b/drivers/watchdog/softdog.c index 7a1096265f18..9f2530fadbdc 100644 --- a/drivers/watchdog/softdog.c +++ b/drivers/watchdog/softdog.c @@ -84,6 +84,8 @@ static enum hrtimer_restart softdog_fire(struct hrtimer *timer) pr_crit("Triggered - Reboot ignored\n"); } else if (soft_panic) { pr_crit("Initiating panic\n"); + if (sysctl_hardlockup_all_cpu_backtrace && 1) + trigger_allbutself_cpu_backtrace(); panic("Software Watchdog Timer expired"); } else { pr_crit("Initiating system reboot\n"); -- cgit v1.2.3