drm/i915/gt: Do not restore invalid RS state
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 29 Dec 2019 18:31:50 +0000 (18:31 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 30 Dec 2019 15:33:12 +0000 (15:33 +0000)
commitecfcd2da335816516dc27434a65899a77886d80a
tree2079ca8afc2d40d786b2fedb96d243bf65ca90a2
parent45b152f752ea81935ff1f68d28b1914b8cfbe759
drm/i915/gt: Do not restore invalid RS state

Only restore valid resource streamer state from the context image, i.e.
avoid restoring if we know the image is invalid.

Closes: https://gitlab.freedesktop.org/drm/intel/issues/446
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191229183153.3719869-4-chris@chris-wilson.co.uk
Cc: stable@vger.kernel.org
drivers/gpu/drm/i915/gt/intel_ring_submission.c