]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Acquire the signaler's timeline HWSP last
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 3 May 2019 14:02:39 +0000 (15:02 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 7 May 2019 10:40:38 +0000 (11:40 +0100)
commita6a38644ebc16c0b3ec19474f9c46672823d39ac
tree6df6117d3f59e1f9b92db6e8dc919f1f37f6089f
parent4daf02850e28e6b45f22421c1c385c507b92b5da
drm/i915: Acquire the signaler's timeline HWSP last

Acquiring the signaler's timeline takes an active reference to their
HWSP that we would like to avoid if possible, so take it after
performing all of our allocations required to set up the fencing. The
acquisition also provides the final check that the target has not
already signaled allowing us to avoid the semaphore at the last moment.

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