<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/include/linux/dma-heap.h, branch v6.19.11</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=v6.19.11</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=v6.19.11'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2024-07-23T07:52:23+00:00</updated>
<entry>
<title>dma-buf: heaps: Deduplicate docs and adopt common format</title>
<updated>2024-07-23T07:52:23+00:00</updated>
<author>
<name>T.J. Mercier</name>
<email>tjmercier@google.com</email>
</author>
<published>2024-07-20T07:15:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=d5e79eeba3086a52593b295ac4bf6eddd64d4aad'/>
<id>urn:sha1:d5e79eeba3086a52593b295ac4bf6eddd64d4aad</id>
<content type='text'>
The docs for dma_heap_get_name were incorrect, and since they were
duplicated in the header they were wrong there too.

The docs formatting was inconsistent so I tried to make it more
consistent across functions since I'm already in here doing cleanup.

Remove multiple unused includes and alphabetize.

Signed-off-by: T.J. Mercier &lt;tjmercier@google.com&gt;
Signed-off-by: Yong Wu &lt;yong.wu@mediatek.com&gt;
[Yong: Just add a comment for "priv" to mute build warning]
Signed-off-by: Yunfei Dong &lt;yunfei.dong@mediatek.com&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20240720071606.27930-5-yunfei.dong@mediatek.com
Signed-off-by: Christian König &lt;christian.koenig@amd.com&gt;
</content>
</entry>
<entry>
<title>dma-buf/heaps: Correct the types of fd_flags and heap_flags</title>
<updated>2024-06-19T14:35:34+00:00</updated>
<author>
<name>Barry Song</name>
<email>v-songbaohua@oppo.com</email>
</author>
<published>2024-06-06T02:02:13+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=b9578c49456340ca4d3c7ddbaca054ffc2b51bc1'/>
<id>urn:sha1:b9578c49456340ca4d3c7ddbaca054ffc2b51bc1</id>
<content type='text'>
dma_heap_allocation_data defines the UAPI as follows:

 struct dma_heap_allocation_data {
        __u64 len;
        __u32 fd;
        __u32 fd_flags;
        __u64 heap_flags;
 };

But dma heaps are casting both fd_flags and heap_flags into
unsigned long. This patch makes dma heaps - cma heap and
system heap have consistent types with UAPI.

Signed-off-by: Barry Song &lt;v-songbaohua@oppo.com&gt;
Acked-by: John Stultz &lt;jstultz@google.com&gt;
Reviewed-by: Carlos Llamas &lt;cmllamas@google.com&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20240606020213.49854-1-21cnbao@gmail.com
</content>
</entry>
<entry>
<title>dma-buf: dma-heap: Provide accessor to get heap name</title>
<updated>2021-02-25T12:58:24+00:00</updated>
<author>
<name>John Stultz</name>
<email>john.stultz@linaro.org</email>
</author>
<published>2021-02-09T19:48:17+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=98cd02da467cb4a319b7041d6242de8a4a33e833'/>
<id>urn:sha1:98cd02da467cb4a319b7041d6242de8a4a33e833</id>
<content type='text'>
It can be useful to access the name for the heap,
so provide an accessor to do so.

Cc: Daniel Vetter &lt;daniel@ffwll.ch&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: Liam Mark &lt;lmark@codeaurora.org&gt;
Cc: Chris Goldsworthy &lt;cgoldswo@codeaurora.org&gt;
Cc: Laura Abbott &lt;labbott@kernel.org&gt;
Cc: Brian Starkey &lt;Brian.Starkey@arm.com&gt;
Cc: Hridya Valsaraju &lt;hridya@google.com&gt;
Cc: Suren Baghdasaryan &lt;surenb@google.com&gt;
Cc: Sandeep Patil &lt;sspatil@google.com&gt;
Cc: Daniel Mentz &lt;danielmentz@google.com&gt;
Cc: Ørjan Eide &lt;orjan.eide@arm.com&gt;
Cc: Robin Murphy &lt;robin.murphy@arm.com&gt;
Cc: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Cc: Simon Ser &lt;contact@emersion.fr&gt;
Cc: James Jones &lt;jajones@nvidia.com&gt;
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Acked-by: Daniel Vetter &lt;daniel@ffwll.ch&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20210209194818.2459062-1-john.stultz@linaro.org
</content>
</entry>
<entry>
<title>dma-buf: heaps: Rework heap allocation hooks to return struct dma_buf instead of fd</title>
<updated>2021-01-22T08:04:39+00:00</updated>
<author>
<name>John Stultz</name>
<email>john.stultz@linaro.org</email>
</author>
<published>2021-01-19T20:45:08+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c7f59e3dd60313071a989227dcb69094f499d310'/>
<id>urn:sha1:c7f59e3dd60313071a989227dcb69094f499d310</id>
<content type='text'>
Every heap needs to create a dmabuf and then export it to a fd
via dma_buf_fd(), so to consolidate things a bit, have the heaps
just return a struct dmabuf * and let the top level
dma_heap_buffer_alloc() call handle creating the fd via
dma_buf_fd().

Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: Liam Mark &lt;lmark@codeaurora.org&gt;
Cc: Laura Abbott &lt;labbott@kernel.org&gt;
Cc: Brian Starkey &lt;Brian.Starkey@arm.com&gt;
Cc: Hridya Valsaraju &lt;hridya@google.com&gt;
Cc: Suren Baghdasaryan &lt;surenb@google.com&gt;
Cc: Sandeep Patil &lt;sspatil@google.com&gt;
Cc: Daniel Mentz &lt;danielmentz@google.com&gt;
Cc: Chris Goldsworthy &lt;cgoldswo@codeaurora.org&gt;
Cc: Ørjan Eide &lt;orjan.eide@arm.com&gt;
Cc: Robin Murphy &lt;robin.murphy@arm.com&gt;
Cc: Ezequiel Garcia &lt;ezequiel@collabora.com&gt;
Cc: Simon Ser &lt;contact@emersion.fr&gt;
Cc: James Jones &lt;jajones@nvidia.com&gt;
Cc: linux-media@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
 [sumits: minor reword of commit message]

Link: https://patchwork.freedesktop.org/patch/msgid/20210119204508.9256-3-john.stultz@linaro.org
</content>
</entry>
<entry>
<title>dma-buf: Add dma-buf heaps framework</title>
<updated>2019-12-11T05:43:33+00:00</updated>
<author>
<name>Andrew F. Davis</name>
<email>afd@ti.com</email>
</author>
<published>2019-12-03T17:26:37+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=c02a81fba74fe3488ad6b08bfb5a1329005418f8'/>
<id>urn:sha1:c02a81fba74fe3488ad6b08bfb5a1329005418f8</id>
<content type='text'>
This framework allows a unified userspace interface for dma-buf
exporters, allowing userland to allocate specific types of memory
for use in dma-buf sharing.

Each heap is given its own device node, which a user can allocate
a dma-buf fd from using the DMA_HEAP_IOC_ALLOC.

This code is an evoluiton of the Android ION implementation,
and a big thanks is due to its authors/maintainers over time
for their effort:
  Rebecca Schultz Zavin, Colin Cross, Benjamin Gaignard,
  Laura Abbott, and many other contributors!

Cc: Laura Abbott &lt;labbott@redhat.com&gt;
Cc: Benjamin Gaignard &lt;benjamin.gaignard@linaro.org&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: Liam Mark &lt;lmark@codeaurora.org&gt;
Cc: Pratik Patel &lt;pratikp@codeaurora.org&gt;
Cc: Brian Starkey &lt;Brian.Starkey@arm.com&gt;
Cc: Vincent Donnefort &lt;Vincent.Donnefort@arm.com&gt;
Cc: Sudipto Paul &lt;Sudipto.Paul@arm.com&gt;
Cc: Andrew F. Davis &lt;afd@ti.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Chenbo Feng &lt;fengc@google.com&gt;
Cc: Alistair Strachan &lt;astrachan@google.com&gt;
Cc: Hridya Valsaraju &lt;hridya@google.com&gt;
Cc: Sandeep Patil &lt;sspatil@google.com&gt;
Cc: Hillf Danton &lt;hdanton@sina.com&gt;
Cc: Dave Airlie &lt;airlied@gmail.com&gt;
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Brian Starkey &lt;brian.starkey@arm.com&gt;
Acked-by: Sandeep Patil &lt;sspatil@android.com&gt;
Signed-off-by: Andrew F. Davis &lt;afd@ti.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20191203172641.66642-2-john.stultz@linaro.org
</content>
</entry>
<entry>
<title>Revert "dma-buf: Add dma-buf heaps framework"</title>
<updated>2019-10-30T20:41:49+00:00</updated>
<author>
<name>Sean Paul</name>
<email>seanpaul@chromium.org</email>
</author>
<published>2019-10-30T20:29:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=fae7d7d5f374eadbb0b5dd31b39162e7176e9c3d'/>
<id>urn:sha1:fae7d7d5f374eadbb0b5dd31b39162e7176e9c3d</id>
<content type='text'>
This reverts commit a69b0e855d3fd278ff6f09a23e1edf929538e304.

This patchset doesn't meet the UAPI requirements set out in [1] for the DRM
subsystem. Once the userspace component is reviewed and ready for merge
we can try again.

[1]- https://01.org/linuxgraphics/gfx-docs/drm/gpu/drm-uapi.html#open-source-userspace-requirements

Fixes: a69b0e855d3f ("dma-buf: Add dma-buf heaps framework")
Cc: Laura Abbott &lt;labbott@redhat.com&gt;
Cc: Benjamin Gaignard &lt;benjamin.gaignard@linaro.org&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: Liam Mark &lt;lmark@codeaurora.org&gt;
Cc: Pratik Patel &lt;pratikp@codeaurora.org&gt;
Cc: Brian Starkey &lt;Brian.Starkey@arm.com&gt;
Cc: Vincent Donnefort &lt;Vincent.Donnefort@arm.com&gt;
Cc: Sudipto Paul &lt;Sudipto.Paul@arm.com&gt;
Cc: Andrew F. Davis &lt;afd@ti.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Chenbo Feng &lt;fengc@google.com&gt;
Cc: Alistair Strachan &lt;astrachan@google.com&gt;
Cc: Hridya Valsaraju &lt;hridya@google.com&gt;
Cc: Hillf Danton &lt;hdanton@sina.com&gt;
Cc: dri-devel@lists.freedesktop.org
Cc: Brian Starkey &lt;brian.starkey@arm.com&gt;
Cc: John Stultz &lt;john.stultz@linaro.org&gt;
Cc: Mauro Carvalho Chehab &lt;mchehab+samsung@kernel.org&gt;
Cc: "David S. Miller" &lt;davem@davemloft.net&gt;
Cc: Greg Kroah-Hartman &lt;gregkh@linuxfoundation.org&gt;
Cc: Rob Herring &lt;robh@kernel.org&gt;
Cc: Jonathan Cameron &lt;Jonathan.Cameron@huawei.com&gt;
Cc: "Paul E. McKenney" &lt;paulmck@linux.ibm.com&gt;
Cc: Sean Paul &lt;seanpaul@chromium.org&gt;
Cc: "Andrew F. Davis" &lt;afd@ti.com&gt;
Cc: linux-media@vger.kernel.org
Cc: linaro-mm-sig@lists.linaro.org
Acked-by: David Airlie &lt;airlied@linux.ie&gt;
Signed-off-by: Sean Paul &lt;sean@poorly.run&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20191030203003.101156-6-sean@poorly.run
</content>
</entry>
<entry>
<title>dma-buf: Add dma-buf heaps framework</title>
<updated>2019-10-25T11:31:45+00:00</updated>
<author>
<name>Andrew F. Davis</name>
<email>afd@ti.com</email>
</author>
<published>2019-10-21T19:03:06+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=a69b0e855d3fd278ff6f09a23e1edf929538e304'/>
<id>urn:sha1:a69b0e855d3fd278ff6f09a23e1edf929538e304</id>
<content type='text'>
This framework allows a unified userspace interface for dma-buf
exporters, allowing userland to allocate specific types of memory
for use in dma-buf sharing.

Each heap is given its own device node, which a user can allocate
a dma-buf fd from using the DMA_HEAP_IOC_ALLOC.

This code is an evoluiton of the Android ION implementation,
and a big thanks is due to its authors/maintainers over time
for their effort:
  Rebecca Schultz Zavin, Colin Cross, Benjamin Gaignard,
  Laura Abbott, and many other contributors!

Cc: Laura Abbott &lt;labbott@redhat.com&gt;
Cc: Benjamin Gaignard &lt;benjamin.gaignard@linaro.org&gt;
Cc: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Cc: Liam Mark &lt;lmark@codeaurora.org&gt;
Cc: Pratik Patel &lt;pratikp@codeaurora.org&gt;
Cc: Brian Starkey &lt;Brian.Starkey@arm.com&gt;
Cc: Vincent Donnefort &lt;Vincent.Donnefort@arm.com&gt;
Cc: Sudipto Paul &lt;Sudipto.Paul@arm.com&gt;
Cc: Andrew F. Davis &lt;afd@ti.com&gt;
Cc: Christoph Hellwig &lt;hch@infradead.org&gt;
Cc: Chenbo Feng &lt;fengc@google.com&gt;
Cc: Alistair Strachan &lt;astrachan@google.com&gt;
Cc: Hridya Valsaraju &lt;hridya@google.com&gt;
Cc: Hillf Danton &lt;hdanton@sina.com&gt;
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Benjamin Gaignard &lt;benjamin.gaignard@linaro.org&gt;
Reviewed-by: Brian Starkey &lt;brian.starkey@arm.com&gt;
Acked-by: Laura Abbott &lt;labbott@redhat.com&gt;
Tested-by: Ayan Kumar Halder &lt;ayan.halder@arm.com&gt;
Signed-off-by: Andrew F. Davis &lt;afd@ti.com&gt;
Signed-off-by: John Stultz &lt;john.stultz@linaro.org&gt;
Signed-off-by: Sumit Semwal &lt;sumit.semwal@linaro.org&gt;
Link: https://patchwork.freedesktop.org/patch/msgid/20191021190310.85221-2-john.stultz@linaro.org
</content>
</entry>
</feed>
