[PATCH 4/4] warn

Chris Wilson
2017-10-23T21:32:55Z

---
drivers/gpu/drm/i915/i915_irq.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/gpu/drm/i915/i915_irq.c b/drivers/gpu/drm/i915/i915_irq.c
index f8205841868b..e4bd20ce031d 100644
--- a/drivers/gpu/drm/i915/i915_irq.c
+++ b/drivers/gpu/drm/i915/i915_irq.c
@@ -1391,6 +1391,9 @@ gen8_cs_irq_handler(struct intel_engine_cs *engine, u32 iir, int test_shift)
if (READ_ONCE(engine->execlists.active)) {
__set_bit(ENGINE_IRQ_EXECLIST, &engine->irq_posted);
tasklet = true;
+ } else if (WARN_ON(!engine->i915->gt.awake)) {
+ struct drm_printer p = drm_info_printer(engine->i915->drm.dev);
+ intel_engine_dump(engine, &p);
}
}

--
2.15.0.rc1