]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Unbind closed vma for i915_gem_object_unbind()
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 14 Aug 2016 17:44:41 +0000 (18:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 14 Aug 2016 18:40:09 +0000 (19:40 +0100)
commit7ea22667032ef5f3fae4fb824d4593ee008ec86e
tree31133d49658b357db91f681a1c70726a81e81cfd
parent499601699e7070f12b59bc01b6acb0ab0edae491
drm/i915: Unbind closed vma for i915_gem_object_unbind()

Closed vma are removed from the obj->vma_list so that they cannot be
found by userspace. However, this means that when forcibly unbinding an
object, we have to wait upon all rendering to that object first in order
for the closed, but active, vma to be reaped and their bindings removed.

Reported-by: Matthew Auld <matthew.auld@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97343
Fixes: 1176bccc30f8 ("drm/i915: Be more careful when unbinding vma")
Fixes: 429f58517cac (" drm/i915: Convert non-blocking userptr waits...")
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471196681-30043-2-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Tested-by: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_gem.c