]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/blt: Remove recursive vma->lock
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 21:57:33 +0000 (22:57 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jun 2019 23:52:25 +0000 (00:52 +0100)
commit069c0b7b72335cec06b836708bd6e78a7c5e95ea
tree58633bfd2156f99948b5fcc0c3b6bdb92654c425
parent16bfefc364b1cca5742a7e10d1dea594875934d0
drm/i915/blt: Remove recursive vma->lock

As we have already plugged the w->dma into the reservation_object, and
have set ourselves up to automatically signal the request and w->dma on
completion, we do not need to export the rq->fence directly and just use
the w->dma fence.

This avoids having to take the reservation_lock inside the worker which
cross-release lockdep would complain about. :)

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190621215733.12070-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/gem/i915_gem_client_blt.c
drivers/gpu/drm/i915/gem/selftests/i915_gem_client_blt.c