dri-devel.lists.freedesktop.org archive mirror
 help / color / mirror / Atom feed
* DMA-heap driver hints
@ 2023-01-23 12:37 Christian König
  2023-01-23 12:37 ` [PATCH 1/2] dma-heap: add device link and unlink functions Christian König
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Christian König @ 2023-01-23 12:37 UTC (permalink / raw)
  To: l.stach, nicolas, ppaalanen, sumit.semwal, daniel, robdclark,
	tfiga, sebastian.wick, hverkuil, dri-devel, linaro-mm-sig,
	linux-media, benjamin.gaignard, lmark, labbott, Brian.Starkey,
	jstultz, laurent.pinchart, mchehab

Hi guys,

this is just an RFC! The last time we discussed the DMA-buf coherency
problem [1] we concluded that DMA-heap first needs a better way to
communicate to userspace which heap to use for a certain device.

As far as I know userspace currently just hard codes that information
which is certainly not desirable considering that we should have this
inside the kernel as well.

So what those two patches here do is to first add some
dma_heap_create_device_link() and  dma_heap_remove_device_link()
function and then demonstrating the functionality with uvcvideo
driver.

The preferred DMA-heap is represented with a symlink in sysfs between
the device and the virtual DMA-heap device node.

What's still missing is certainly matching userspace for this since I
wanted to discuss the initial kernel approach first.

Please take a look and comment.

Thanks,
Christian.

[1] https://lore.kernel.org/all/11a6f97c-e45f-f24b-8a73-48d5a388a2cc@gmail.com/T/



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

end of thread, other threads:[~2023-01-25 23:20 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-23 12:37 DMA-heap driver hints Christian König
2023-01-23 12:37 ` [PATCH 1/2] dma-heap: add device link and unlink functions Christian König
2023-01-24  4:45   ` John Stultz
2023-01-23 12:37 ` [PATCH 2/2] media: uvcvideo: expose dma-heap hint to userspace Christian König
2023-01-23 14:00   ` Laurent Pinchart
2023-01-23 23:58   ` kernel test robot
2023-01-24  3:44   ` kernel test robot
2023-01-23 13:55 ` DMA-heap driver hints Laurent Pinchart
2023-01-23 16:29   ` Christian König
2023-01-23 16:58     ` Laurent Pinchart
2023-01-24  3:56       ` James Jones
2023-01-24  7:48         ` Christian König
2023-01-24 23:14           ` T.J. Mercier
2023-01-25 23:20             ` James Jones
2023-01-24  5:19     ` John Stultz
2023-01-24  7:15       ` Christian König
2023-01-25 18:59         ` John Stultz
2023-01-24  5:07   ` John Stultz

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).