dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* First step towards unpinned DMA-buf operation.
@ 2018-06-22 14:10 Christian König
  2018-06-22 14:11 ` [PATCH 1/4] dma-buf: add dma_buf_(un)map_attachment_locked variants v2 Christian König
                   ` (3 more replies)
  0 siblings, 4 replies; 19+ messages in thread
From: Christian König @ 2018-06-22 14:10 UTC (permalink / raw)
  To: daniel, sumit.semwal, dri-devel, linux-media, linaro-mm-sig,
	intel-gfx

[As requested by Daniel cross posting to intel-gfx as well].

This set is the first step towards allowing to use a DMA-buf without actually pinning the underlying resources. This in turn the the ground work for PCIe P2P operations as well as quite a bunch of other use cases.

The idea is that we build the support for unpinned operation around the already present reservation lock in the DMA-buf object. For this we now grab the reservation object lock while mapping and unmapping DMA-bufs.

The down side is that all implementations as well as users of DMA-buf needs to be audited to make sure that we don't run into double locking or lock inversions.

So please test and/or comment and report back how badly lockdep complains :)

Thanks,
Christian.

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2018-07-03 13:31 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-06-22 14:10 First step towards unpinned DMA-buf operation Christian König
2018-06-22 14:11 ` [PATCH 1/4] dma-buf: add dma_buf_(un)map_attachment_locked variants v2 Christian König
2018-06-25  8:15   ` Daniel Vetter
2018-06-28  9:44   ` Zhang, Jerry (Junwei)
2018-06-28  9:53   ` Zhang, Jerry (Junwei)
2018-07-03 11:37     ` Christian König
2018-06-22 14:11 ` [PATCH 2/4] dma-buf: lock the reservation object during (un)map_dma_buf v2 Christian König
2018-06-25  8:22   ` Daniel Vetter
2018-06-25  9:12     ` Daniel Vetter
2018-07-03 11:46       ` Christian König
2018-07-03 12:52         ` Daniel Vetter
2018-07-03 13:02           ` Christian König
2018-07-03 13:11             ` Daniel Vetter
2018-07-03 13:31               ` Christian König
2018-06-28  9:53   ` Zhang, Jerry (Junwei)
2018-06-22 14:11 ` [PATCH 3/4] drm/amdgpu: add independent DMA-buf export v3 Christian König
2018-06-28  9:58   ` Zhang, Jerry (Junwei)
2018-07-03 11:35     ` Christian König
2018-06-22 14:11 ` [PATCH 4/4] drm/amdgpu: add independent DMA-buf import v4 Christian König

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).