drm/i915: Dump the ringbuffer of the active request for debugging
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jun 2018 12:21:50 +0000 (13:21 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jun 2018 13:34:13 +0000 (14:34 +0100)
commit83c317832eb1862e27f872606ee1a2fed6ab638f
tree5df60e1df1a4547a0d33dcd559f23145f51be670
parent856e1b175650816dce554d2865ec258aa3b72098
drm/i915: Dump the ringbuffer of the active request for debugging

Sometimes we need to see what instructions we emitted for a request to
try and gather a glimmer of insight into what the GPU is doing when it
stops responding.

v2: Move ring dumping into its own routine

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20180614122150.17552-1-chris@chris-wilson.co.uk
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/intel_engine_cs.c