drm/i915: Drop i915_request.lock serialisation around await_start
authorChris Wilson <chris@chris-wilson.co.uk>
Thu, 14 Jan 2021 13:56:09 +0000 (13:56 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 15 Jan 2021 08:00:03 +0000 (08:00 +0000)
commitb2fe00bbb2b6bf06929dc300a4e3e91d9c12a3c9
treea4947eed4857aca73e654ce3097c5b38fb8b4849
parent163433e5c50afd8276f7dfdead4bf35f1bdafd05
drm/i915: Drop i915_request.lock serialisation around await_start

Originally, we used the signal->lock as a means of following the
previous link in its timeline and peeking at the previous fence.
However, we have replaced the explicit serialisation with a series of
very careful probes that anticipate the links being deleted and the
fences recycled before we are able to acquire a strong reference to it.
We do not need the signal->lock crutch anymore, nor want the contention.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reviewed-by: Andi Shyti <andi.shyti@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210114135612.13210-2-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c