]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Restore both GGTT bindings on resume
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 May 2020 15:04:52 +0000 (16:04 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Thu, 28 May 2020 15:54:01 +0000 (16:54 +0100)
commit2fd5ec2462a145491ef2f207ccfeb343d375f081
tree91b80799defdc66046265c716c6edb8cf815fb11
parent02022ad8f9f658ecdc0be3b3ec78d350a8cf29c9
drm/i915/gt: Restore both GGTT bindings on resume

We should be able to skip restoring LOCAL (user) binds within the GGTT on
resume and let them be restored upon demand. However, our consistency
checks demand that the bind flags match the node state, and we cannot
simply clear the flags, we need to evict as well. For now, make sure we
restore the bind flags exactly upon resume.

Fixes: 72573dc70161 ("drm/i915/gt: Clear LOCAL_BIND from shared GGTT on resume")
Fixes: 0fcd063b3fed ("drm/i915/gt: Stop cross-polluting PIN_GLOBAL with PIN_USER with no-ppgtt")
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/20200528150452.7880-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt.c