drm/i915: Dump the engine state before declaring wedged from wait_for_engines()
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 11 Dec 2017 19:41:35 +0000 (19:41 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 12 Dec 2017 21:07:41 +0000 (21:07 +0000)
commit59e4b19d622ab22d138862ba287859e3aacd5478
treee73fa3f739794a69b24989781b6b3e7d2a2704a6
parentee42c00e1cb0a421fcf6d502d1ab919e6459ae48
drm/i915: Dump the engine state before declaring wedged from wait_for_engines()

If wait_for_engines() fails and we resort to declaring the HW wedged,
dump the engine state for debugging.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Cc: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20171211194135.27095-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c