[RFC][PATCH 0/4] Support non-default CMA regions to the dmabuf heaps interface
John Stultz
john.stultz at linaro.org
Fri May 1 07:39:45 UTC 2020
This is a much belated second stab at allowing non-default CMA
regions to be exposed via the dmabuf heaps interface.
Previous attempt was here:
https://lore.kernel.org/lkml/20191025225009.50305-2-john.stultz@linaro.org/T/
This pass tried to take Rob's earlier suggestion to use a flag
property.
Feedback would be greatly welcome!
thanks
-john
Cc: Rob Herring <robh+dt at kernel.org>
Cc: Sumit Semwal <sumit.semwal at linaro.org>
Cc: "Andrew F. Davis" <afd at ti.com>
Cc: Benjamin Gaignard <benjamin.gaignard at linaro.org>
Cc: Liam Mark <lmark at codeaurora.org>
Cc: Pratik Patel <pratikp at codeaurora.org>
Cc: Laura Abbott <labbott at redhat.com>
Cc: Brian Starkey <Brian.Starkey at arm.com>
Cc: Chenbo Feng <fengc at google.com>
Cc: Alistair Strachan <astrachan at google.com>
Cc: Sandeep Patil <sspatil at google.com>
Cc: Hridya Valsaraju <hridya at google.com>
Cc: Christoph Hellwig <hch at lst.de>
Cc: Marek Szyprowski <m.szyprowski at samsung.com>
Cc: Robin Murphy <robin.murphy at arm.com>
Cc: Andrew Morton <akpm at linux-foundation.org>
Cc: devicetree at vger.kernel.org
Cc: dri-devel at lists.freedesktop.org
Cc: linux-mm at kvack.org
John Stultz (4):
devicetree: bindings: Add linux,cma-heap tag for reserved memory
mm: cma: Add dma_heap flag to cma structure
dma-buf: cma_heap: Extend logic to export CMA regions tagged with
"linux,cma-heap"
example: dts: hi3660-hikey960: Add dts entries to test cma heap
binding
.../reserved-memory/reserved-memory.txt | 3 +++
.../boot/dts/hisilicon/hi3660-hikey960.dts | 7 +++++++
drivers/dma-buf/heaps/cma_heap.c | 18 +++++++++---------
include/linux/cma.h | 3 +++
kernel/dma/contiguous.c | 3 +++
mm/cma.c | 11 +++++++++++
mm/cma.h | 1 +
7 files changed, 37 insertions(+), 9 deletions(-)
--
2.17.1
More information about the dri-devel
mailing list