]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f9ca98779d8aa9c81e6f80b446b1d241788136e
tree18379c3f1005f7c263de1e2c2b9de6829d6eb957
parent1ced6e1045221df3d83110c5aacaeda59ad312ca
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