]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit824dd33252b237ba06ac99250e617dcb128b20b1
tree067a171e56f36b84faf3bec0290a304fad35f941
parent2b5f94d76edf2ccd01f863bb66fcef72da497a02
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