drm/i915: Provide a fastpath for waiting on vma bindings
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 31 Jul 2020 08:50:15 +0000 (09:50 +0100)
committerJoonas Lahtinen <joonas.lahtinen@linux.intel.com>
Mon, 7 Sep 2020 10:29:19 +0000 (13:29 +0300)
commitaf5c6fcf403288e8656143549881c3eb716cae53
tree8a12a03af03dd1becd50589b590b2dfff7123e2b
parent9ff33bbcda259a7d1d4df8c977b32cf431972387
drm/i915: Provide a fastpath for waiting on vma bindings

Before we can execute a request, we must wait for all of its vma to be
bound. This is a frequent operation for which we can optimise away a
few atomic operations (notably a cmpxchg) in lieu of the RCU protection.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Thomas Hellström <thomas.hellstrom@intel.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200731085015.32368-7-chris@chris-wilson.co.uk
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Signed-off-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
drivers/gpu/drm/i915/i915_active.h
drivers/gpu/drm/i915/i915_vma.c