]> asedeno.scripts.mit.edu Git - linux.git/commit
drm/i915: Mark up address spaces that may need to allocate
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 13:39:57 +0000 (14:39 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 4 Oct 2019 14:39:02 +0000 (15:39 +0100)
commit11331125e1480ff786be9d2051301401b652bbe1
tree5ff29568699ff42139eb21e87cd22fd82b2206d3
parent5e053450c1c3af316aef9a96dc88f52cd803d1ee
drm/i915: Mark up address spaces that may need to allocate

Since we cannot allocate underneath the vm->mutex (it is used in the
direct-reclaim paths), we need to shift the allocations off into a
mutexless worker with fence recursion prevention. To know when we need
this protection, we mark up the address spaces that do allocate before
insertion. In the future, we may wish to extend the async bind scheme to
more than just allocations.

v2: s/vm->bind_alloc/vm->bind_async_flags/

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191004134015.13204-3-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_gem_gtt.c
drivers/gpu/drm/i915/i915_gem_gtt.h