Commit 2f1ac9cc authored by Chris Wilson's avatar Chris Wilson

drm/i915: Queue hangcheck when irqs are disabled

Ensure that the hangcheck is queued even in the absence of interrupts.
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20170123093724.18592-1-chris@chris-wilson.co.ukReviewed-by: default avatarMika Kuoppala <mika.kuoppala@intel.com>
parent e27414a0
...@@ -127,6 +127,7 @@ static void __intel_breadcrumbs_enable_irq(struct intel_breadcrumbs *b) ...@@ -127,6 +127,7 @@ static void __intel_breadcrumbs_enable_irq(struct intel_breadcrumbs *b)
if (!b->irq_enabled || if (!b->irq_enabled ||
test_bit(engine->id, &i915->gpu_error.missed_irq_rings)) { test_bit(engine->id, &i915->gpu_error.missed_irq_rings)) {
mod_timer(&b->fake_irq, jiffies + 1); mod_timer(&b->fake_irq, jiffies + 1);
i915_queue_hangcheck(i915);
} else { } else {
/* Ensure we never sleep indefinitely */ /* Ensure we never sleep indefinitely */
GEM_BUG_ON(!time_after(b->timeout, jiffies)); GEM_BUG_ON(!time_after(b->timeout, jiffies));
......
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