Skip to content

RFC Attempt to avoid dma-fence-[chain|array] lockdep splats

Thomas Hellström dri-devel intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 28 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2dma-fence: Avoid establishing a locking order between fence classesdrivers/dma-buf/dma-fence-array.c drivers/dma-buf/dma-fence-chain.c drivers/dma-buf/dma-fence.c +1 more+69 -2927 replies
2/2dma-fence: Avoid excessive recursive fence locking from enable_signaling() callbacksdrivers/dma-buf/dma-fence-array.c drivers/dma-buf/dma-fence-chain.c include/linux/dma-fence.h+21 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] Attempt to avoid dma-fence-[chain|array] lockdep splats

Introducing more usage of dma-fence-chain and dma-fence-array in the i915 driver we start to hit lockdep splats due to the recursive fence locking in the dma-fence-chain and dma-fence-array containers. This is a humble suggestion to try to establish a dma-fence locking order (patch 1) and to avoid excessive recursive locking in these containers (patch 2)

Thomas Hellström (2):
dma-fence: Avoid establishing a locking order between fence classes
dma-fence: Avoid excessive recursive fence locking from
enable_signaling() callbacks

 drivers/dma-buf/dma-fence-array.c | 23 +++++++--
 drivers/dma-buf/dma-fence-chain.c | 12 ++++-
 drivers/dma-buf/dma-fence.c       | 79 +++++++++++++++++++++----------
 include/linux/dma-fence.h         |  4 ++
 4 files changed, 89 insertions(+), 29 deletions(-)
Signature · 1 line
2.31.1