OSDN Git Service

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)
commit7d0aa0db4375edb0a2de66e9099fe0f9b197b80d
treedb109c5b42e02cfc1611124b828ea5daf3c5bd4c
parent65f6d12c6b0b610c92d6a2c3d964ff2943ac8fbf
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