drm/i915: Store the active context object on all engines upon error
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Aug 2016 09:48:42 +0000 (10:48 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 15 Aug 2016 10:00:50 +0000 (11:00 +0100)
commit546b1b6a40999b6fb23cb45aaffa72d02076306c
tree5a617aaeb2c16cd8ab30300fac9d815075af2f19
parentc0ce4663611e09182fdb81b980f6eaa5560b5b1d
drm/i915: Store the active context object on all engines upon error

With execlists, we have context objects everywhere, not just RCS. So
store them for post-mortem debugging. This also has a secondary effect
of removing one more unsafe list iteration with using preserved state
from the hanging request. And now we can cross-reference the request's
context state with that loaded by the GPU.

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-3-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gpu_error.c