drm/i915: Mark all default contexts as uninitialised after context loss
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jun 2016 13:55:55 +0000 (14:55 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 24 Jun 2016 14:02:55 +0000 (15:02 +0100)
commita168b2d8a5195f1744205b2ad7d412eb29bd3f1f
tree04631de4c24d32a776b934d18057a176fad55a42
parentc7c3c07d16dd51faddeb6ae665d360be030b31b0
drm/i915: Mark all default contexts as uninitialised after context loss

When the GPU is reset or state lost through suspend, every default
legacy context needs to reload their state - both the golden render
state and the L3 mapping. Only context images explicitly saved to memory
(i.e. all execlists and non-default legacy contexts) will retain their
state across the reset.

v2: Rebase

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/1466776558-21516-4-git-send-email-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_context.c