]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/gem: Avoid parking the vma as we unbind
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Dec 2019 15:50:32 +0000 (15:50 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 3 Dec 2019 20:41:34 +0000 (20:41 +0000)
commit061577be9b2266ebedccc6119fafd4261d157830
tree42ab52825638e968ae5d95415070a65c465d7a23
parent77af78c4b82d279a2b28acd74a5cdf412da8b805
drm/i915/gem: Avoid parking the vma as we unbind

In order to avoid keeping a reference on the i915_vma (which is long
overdue!) we have to coordinate all the possible lifetimes and only use
the vma while we know it is alive. In this episode, we are reminded that
while idle, the closed vma are destroyed. So if the GT idles while we are
working with the vma, the vma itself becomes invalid.

First class i915_vma here we come, but in the meantime keep piling on
the straw.

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/20191203155032.3137263-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem.c