]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gt: Clear LOCAL_BIND from shared GGTT on resume
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 26 May 2020 15:07:39 +0000 (16:07 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 27 May 2020 09:51:57 +0000 (10:51 +0100)
commit72573dc701618695953b9c869c875c718e9eac4d
tree6f58e0a5daab9d7a7c8d2ccdee456902aa889966
parent68e8918946c6a3aca11d196ea2f35e40fa766a66
drm/i915/gt: Clear LOCAL_BIND from shared GGTT on resume

We only restore GLOBAL binds upon resume as we expect these to be pinned
for use by HW, whereas the LOCAL binds can be recreated on demand once
userspace is resumed. For the LOCAL bind to be recreated in the global
GTT (for old systems without ppgtt), we need to clear its presence flag
on deciding not to restore the mapping upon 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/20200526150739.26147-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gt/intel_ggtt.c