LWN: Comments on "DMA buffer sharing in 3.3" https://lwn.net/Articles/474819/ This is a special feed containing comments posted to the individual LWN article titled "DMA buffer sharing in 3.3". en-us Fri, 31 Oct 2025 07:25:13 +0000 Fri, 31 Oct 2025 07:25:13 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net DMA buffer sharing in 3.3 https://lwn.net/Articles/840418/ https://lwn.net/Articles/840418/ RErrabolu <div class="FormattedComment"> One question that is not very clear to me is what is considered DMA buffer. Could some one clarify which scheme is operational upon using DMA-BUF Api&#x27;s.<br> <p> Scheme 1:<br> device-mem -&gt; Camera -&gt; buffer-one-sysmem<br> buffer-one-sysmem -&gt; CPU -&gt; buffer-two-sysmem<br> buffer-two-sysmem -&gt; Render -&gt; device-mem<br> <p> Scheme 2:<br> device-mem -&gt; Camera -&gt; buffer-common-sysmem<br> buffer-common-sysmem -&gt; Render -&gt; device-mem<br> <p> Scheme 3:<br> device-mem -&gt; Camera -&gt; Render -&gt; device-mem<br> <p> I suspect scheme 2. Can someone comment.<br> <p> </div> Wed, 16 Dec 2020 18:12:20 +0000 Changing usernames https://lwn.net/Articles/475334/ https://lwn.net/Articles/475334/ corbet Send us a note at lwn@lwn.net if you would like to change your account name; we can make that happen. Fri, 13 Jan 2012 03:01:44 +0000 DMA buffer sharing in 3.3 https://lwn.net/Articles/475332/ https://lwn.net/Articles/475332/ robclark <div class="FormattedComment"> TI very kindly provides LWN subscription to employees, but I've no idea how to change my username to something other than my AID ;-)<br> <p> </div> Fri, 13 Jan 2012 02:55:25 +0000 DMA buffer sharing in 3.3 https://lwn.net/Articles/475310/ https://lwn.net/Articles/475310/ jzbiciak <div class="FormattedComment"> Not related to the article really... I think this is the first time I've noticed an AID here on LWN. :-)<br> <p> (I'm also a TIer, but I'm here out of personal interest.)<br> </div> Fri, 13 Jan 2012 00:06:48 +0000 DMA buffer sharing in 3.3 https://lwn.net/Articles/475207/ https://lwn.net/Articles/475207/ robclark <div class="FormattedComment"> just a very minor correction: attach()/detach() are not really for reference counting, that is handled with dma_buf_get()/dma_buf_put() (under the hood it is using 'struct file *' refcnting). Driver writers adding support for dmabuf should be sure to do a dma_buf_get() in their ioctl for importing the dmabuf, and keep the 'struct dma_buf *' ptr, rather than holding on to the file descriptor (int).<br> <p> The attach()/detach() is really just advisory to the exporting driver to help it know the constraints of potentially multiple different devices that would be sharing the buffer. For example, a camera and encoder might share a single buffer w/ display/gpu.<br> <p> <p> </div> Thu, 12 Jan 2012 16:48:30 +0000