drm/i915: Print the batchbuffer offset next to BBADDR in error state
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Aug 2016 09:49:09 +0000 (10:49 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Aug 2016 10:01:16 +0000 (11:01 +0100)
commit03382dfb633c1c1ac85b3d81ddd2256dcbc8f353
tree6f86deb6583d1597a36c202becba0161ceff928a
parentc84455b4baccce89384e45c53198c3c948bd97b6
drm/i915: Print the batchbuffer offset next to BBADDR in error state

It is useful when looking at captured error states to check the recorded
BBADDR register (the address of the last batchbuffer instruction loaded)
against the expected offset of the batch buffer, and so do a quick check
that (a) the capture is true or (b) HEAD hasn't wandered off into the
badlands.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471254551-25805-30-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.h
drivers/gpu/drm/i915/i915_gpu_error.c