]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite103bab5a7e9248ffb3ab963aafd57ed2eec45f5
tree5a617aaeb2c16cd8ab30300fac9d815075af2f19
parent8c5265a15d27eac81cf570e3036c83b8467cc94f
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