mirror of
https://github.com/torvalds/linux.git
synced 2026-11-25 07:52:34 +00:00
This adds a CMA heap, which allows userspace to allocate a dma-buf of contiguous memory out of a CMA region. This code is an evolution of the Android ION implementation, so thanks to its original author and maintainters: Benjamin Gaignard, Laura Abbott, and others! NOTE: This patch only adds the default CMA heap. We will enable selectively adding other CMA memory regions to the dmabuf heaps interface with a later patch (which requires a dt binding) Cc: Laura Abbott <[email protected]> Cc: Benjamin Gaignard <[email protected]> Cc: Sumit Semwal <[email protected]> Cc: Liam Mark <[email protected]> Cc: Pratik Patel <[email protected]> Cc: Brian Starkey <[email protected]> Cc: Vincent Donnefort <[email protected]> Cc: Sudipto Paul <[email protected]> Cc: Andrew F. Davis <[email protected]> Cc: Christoph Hellwig <[email protected]> Cc: Chenbo Feng <[email protected]> Cc: Alistair Strachan <[email protected]> Cc: Hridya Valsaraju <[email protected]> Cc: Sandeep Patil <[email protected]> Cc: Hillf Danton <[email protected]> Cc: Dave Airlie <[email protected]> Cc: [email protected] Reviewed-by: Benjamin Gaignard <[email protected]> Reviewed-by: Brian Starkey <[email protected]> Acked-by: Sandeep Patil <[email protected]> Acked-by: Laura Abbott <[email protected]> Tested-by: Ayan Kumar Halder <[email protected]> Signed-off-by: John Stultz <[email protected]> Signed-off-by: Sumit Semwal <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
15 lines
493 B
Plaintext
15 lines
493 B
Plaintext
config DMABUF_HEAPS_SYSTEM
|
|
bool "DMA-BUF System Heap"
|
|
depends on DMABUF_HEAPS
|
|
help
|
|
Choose this option to enable the system dmabuf heap. The system heap
|
|
is backed by pages from the buddy allocator. If in doubt, say Y.
|
|
|
|
config DMABUF_HEAPS_CMA
|
|
bool "DMA-BUF CMA Heap"
|
|
depends on DMABUF_HEAPS && DMA_CMA
|
|
help
|
|
Choose this option to enable dma-buf CMA heap. This heap is backed
|
|
by the Contiguous Memory Allocator (CMA). If your system has these
|
|
regions, you should say Y here.
|