OSDN Git Service

dma-buf: heaps: Add system heap to dmabuf heaps
authorJohn Stultz <john.stultz@linaro.org>
Mon, 21 Oct 2019 19:03:08 +0000 (19:03 +0000)
committerSumit Semwal <sumit.semwal@linaro.org>
Fri, 25 Oct 2019 11:31:48 +0000 (17:01 +0530)
commit47a32f9c12266d450b92089148c6039591bd9909
tree67ebf0d91086709daa01accb8c173a967da3faf1
parent7b87ea704fd9606eaafa9150116536d72f5c4b1f
dma-buf: heaps: Add system heap to dmabuf heaps

This patch adds system heap to the dma-buf heaps framework.

This allows applications to get a page-allocator backed dma-buf
for non-contiguous memory.

This code is an evolution of the Android ION implementation, so
thanks to its original authors and maintainters:
  Rebecca Schultz Zavin, Colin Cross, Laura Abbott, and others!

Cc: Laura Abbott <labbott@redhat.com>
Cc: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Cc: Sumit Semwal <sumit.semwal@linaro.org>
Cc: Liam Mark <lmark@codeaurora.org>
Cc: Pratik Patel <pratikp@codeaurora.org>
Cc: Brian Starkey <Brian.Starkey@arm.com>
Cc: Vincent Donnefort <Vincent.Donnefort@arm.com>
Cc: Sudipto Paul <Sudipto.Paul@arm.com>
Cc: Andrew F. Davis <afd@ti.com>
Cc: Christoph Hellwig <hch@infradead.org>
Cc: Chenbo Feng <fengc@google.com>
Cc: Alistair Strachan <astrachan@google.com>
Cc: Hridya Valsaraju <hridya@google.com>
Cc: Hillf Danton <hdanton@sina.com>
Cc: dri-devel@lists.freedesktop.org
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Brian Starkey <brian.starkey@arm.com>
Acked-by: Laura Abbott <labbott@redhat.com>
Tested-by: Ayan Kumar Halder <ayan.halder@arm.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Sumit Semwal <sumit.semwal@linaro.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20191021190310.85221-4-john.stultz@linaro.org
drivers/dma-buf/Kconfig
drivers/dma-buf/heaps/Kconfig [new file with mode: 0644]
drivers/dma-buf/heaps/Makefile
drivers/dma-buf/heaps/system_heap.c [new file with mode: 0644]