]> 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)
commit6a34078fcd0ba84f83aaf2e1869282fc4acf83de
tree18379c3f1005f7c263de1e2c2b9de6829d6eb957
parentbb5eabdcb993e063a9c4bac8bbfc4d5a09706394
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