]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Unbind all current vma on changing cache-level
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Dec 2019 17:43:10 +0000 (17:43 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 2 Dec 2019 21:57:22 +0000 (21:57 +0000)
commit30ca5d6177ed3d44d68de02440a6314e0a6869b9
treedb109c5b42e02cfc1611124b828ea5daf3c5bd4c
parentd348cef403173fd89274c124f414efd8e1eda34c
drm/i915/gem: Unbind all current vma on changing cache-level

Avoid dangerous race handling of destroyed vma by unbinding all vma
instead. Unfortunately, this stops us from trying to be clever and only
doing the minimal change required, so on first use of scanout we may
encounter an annoying stall as it transitions to a new cache level.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=112413
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/20191202174310.2630302-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_domain.c