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)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Tue, 7 Jan 2020 12:35:16 +0000 (14:35 +0200)
commit103309977589fe6be0f4314de4925737cdfc146f
tree9f25bc25f73f9b335933569fe7291f32a31e6d89
parentf4b18892dca8e629e0ce192b233579505f8ed343
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
(cherry picked from commit ecfcd2da335816516dc27434a65899a77886d80a)
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/gt/intel_ring_submission.c