[Intel-gfx] [PATCH] softdog: Obey hardlockup_all_cpu_backtrace sysctl
Daniel Vetter
daniel.vetter at ffwll.ch
Wed Oct 11 15:10:07 UTC 2017
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 <chris at chris-wilson.co.uk>
Cc: Imre Deak <imre.deak at intel.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=103160
Signed-off-by: Daniel Vetter <daniel.vetter at intel.com>
---
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 060740625485..3a1606011b17 100644
--- a/drivers/watchdog/softdog.c
+++ b/drivers/watchdog/softdog.c
@@ -63,6 +63,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");
--
2.14.1
More information about the Intel-gfx
mailing list