]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Peel dma-fence-chains for await
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Fri, 8 May 2020 18:54:48 +0000 (19:54 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Fri, 8 May 2020 19:57:56 +0000 (20:57 +0100)
commitbd71a390b14c5257e96f6e84162a171dbf5ef565
treea8bf07c5c75d53c427541f5deaa97faaa7e2e747
parent2965eafd9f42e577bafaec06c24ce95eba8f0efb
drm/i915: Peel dma-fence-chains for await

To allow faster engine to engine synchronization, peel the layer of
dma-fence-chain to expose potential i915 fences so that the
i915_request code can emit HW semaphore wait/signal operations in the
ring which is faster than waking up the host to submit unblocked
workloads after interrupt notification.

This is similar to the peeling we do for e.g. dma_fence_array.

Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20200508185448.29709-1-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_request.c