drm/i915/gt: Ignore stale context state upon resume
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 2 Jan 2020 13:17:05 +0000 (13:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 Jan 2020 11:26:01 +0000 (11:26 +0000)
commit49a24e71b2479064f24cea75e69020a6d480b1e5
tree067a171e56f36b84faf3bec0290a304fad35f941
parentd1813ca2bbf1e68ad0280a6b76abeb2115c4740f
drm/i915/gt: Ignore stale context state upon resume

We leave the kernel_context on the HW as we suspend (and while idle).
There is no guarantee that is complete in memory, so we try to inhibit
restoration from the kernel_context. Reinforce the inhibition by
scrubbing the context.

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/20200102131707.1463945-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_lrc.c
drivers/gpu/drm/i915/gt/intel_ring_submission.c