drm/i915: stop using seqcount for fence pruning
authorChristian König <christian.koenig@amd.com>
Mon, 5 Aug 2019 11:18:43 +0000 (13:18 +0200)
committerChristian König <christian.koenig@amd.com>
Wed, 7 Aug 2019 11:12:01 +0000 (13:12 +0200)
commit4c2488cfaa997e396aeb9d6496db94c25b97c671
tree18379c3f1005f7c263de1e2c2b9de6829d6eb957
parent96e95496b02dbf1b19a2d4ce238810572e149606
drm/i915: stop using seqcount for fence pruning

After waiting for a reservation object use reservation_object_test_signaled_rcu
to opportunistically prune the fences on the object.

This allows removal of the seqcount handling in the reservation object.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/322032/?series=64786&rev=1
drivers/gpu/drm/i915/gem/i915_gem_wait.c