[PATCH] libcamera: dma_heaps: Add support for using udmabuf to alloc DMA heaps

Maxime Ripard mripard at redhat.com
Tue May 28 13:46:24 CEST 2024


Hi Kieran,

On Tue, May 28, 2024 at 12:32:10PM GMT, Kieran Bingham wrote:
> Quoting Hans de Goede (2024-05-27 15:16:47)
> > Add support for using udmabuf to alloc DMA heaps, this is basically:
> > https://patchwork.libcamera.org/patch/18922/
> > 
> > ported from the never merged HeapAllocator class to the current DmaHeap
> > class.
> 
> True statements, but not really specific to the content of the patch?
> 
> Perhaps:
> 
> """
> The DMA heap allocator currently allocates from CMA and system heaps.
> 
> These provide contiguous device memory but require dedicated and
> reserved memory regions to be configured on the platform and may require
> elevated privilidges to access.

Only the CMA allocator (and heap) reserves memory. The system heap uses
the page allocator.

Maxime
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 273 bytes
Desc: not available
URL: <https://lists.libcamera.org/pipermail/libcamera-devel/attachments/20240528/1cdb6a26/attachment.sig>


More information about the libcamera-devel mailing list