]> 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)
commit63d9209544dd0ac53d139601754cf1a6fe3965a2
treedb109c5b42e02cfc1611124b828ea5daf3c5bd4c
parentc573bd8b6c9f89d17d38859bbcb7888bc809a630
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