]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Only track bound elements of the GTT
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 13:39:56 +0000 (14:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 14:39:01 +0000 (15:39 +0100)
commit5e053450c1c3af316aef9a96dc88f52cd803d1ee
tree7932ab34b3ad8e13ec31652cb1f58e11a930cae4
parentb290a78b5c3d78c337b8d9856cc0671aea0c2ef3
drm/i915: Only track bound elements of the GTT

The premise here is to simply avoiding having to acquire the vm->mutex
inside vma create/destroy to update the vm->unbound_lists, to avoid some
nasty lock recursions later.

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/20191004134015.13204-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_stolen.c
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h
drivers/gpu/drm/i915/i915_vma.c
drivers/gpu/drm/i915/selftests/i915_gem_gtt.c