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 <ch...@chris-wilson.co.uk>
Cc: Imre Deak <imre.d...@intel.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=103160
Signed-off-by: Daniel Vetter <daniel.vet...@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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to