linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC][PATCH 0/3] Support non-default CMA regions to the dmabuf heaps interface
@ 2019-10-25 22:50 John Stultz
  2019-10-25 22:50 ` [RFC][PATCH 1/3] dt-bindings: dma-buf: heaps: Describe CMA regions to be added to " John Stultz
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: John Stultz @ 2019-10-25 22:50 UTC (permalink / raw)
  To: lkml
  Cc: John Stultz, Rob Herring, Mark Rutland, Laura Abbott,
	Benjamin Gaignard, Sumit Semwal, Liam Mark, Pratik Patel,
	Brian Starkey, Andrew F . Davis, Chenbo Feng, Alistair Strachan,
	Sandeep Patil, Hridya Valsaraju, devicetree, dri-devel

Now that the dmabuf heaps core code has been queued, I wanted to
submit for initial review some of the changes I have pending.

In previous versions, the dmabuf CMA heap added all CMA areas to
the dmabuf heaps interface. However, Andrew noted this may not
be desirable, so I've come up with a DT binding and code to
allow specified CMA regions to be added to the dmabuf heaps
interface.

This allows additional CMA regions for things like cameras, etc
to be allocated from separately from the default region.

Review and feedback would be greatly appreciated!

thanks
-john

Cc: Rob Herring <robh+dt@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
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: Andrew F. Davis <afd@ti.com>
Cc: Chenbo Feng <fengc@google.com>
Cc: Alistair Strachan <astrachan@google.com>
Cc: Sandeep Patil <sspatil@google.com>
Cc: Hridya Valsaraju <hridya@google.com>
Cc: devicetree@vger.kernel.org
Cc: dri-devel@lists.freedesktop.org

John Stultz (3):
  dt-bindings: dma-buf: heaps: Describe CMA regions to be added to
    dmabuf heaps interface.
  dma-buf: heaps: Allow adding specified non-default CMA heaps
  example: dts: hi3660-hikey960: Add dts entries to test cma heap
    binding

 .../bindings/dma/dmabuf-heap-cma.txt          | 31 +++++++++++++++
 .../boot/dts/hisilicon/hi3660-hikey960.dts    | 13 ++++++-
 drivers/dma-buf/heaps/cma_heap.c              | 38 +++++++++++++++++++
 3 files changed, 81 insertions(+), 1 deletion(-)
 create mode 100644 Documentation/devicetree/bindings/dma/dmabuf-heap-cma.txt

-- 
2.17.1


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2019-10-30 13:29 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-25 22:50 [RFC][PATCH 0/3] Support non-default CMA regions to the dmabuf heaps interface John Stultz
2019-10-25 22:50 ` [RFC][PATCH 1/3] dt-bindings: dma-buf: heaps: Describe CMA regions to be added to " John Stultz
2019-10-25 23:32   ` Rob Herring
2019-10-25 23:55     ` John Stultz
2019-10-30 13:29       ` Rob Herring
2019-10-25 22:50 ` [RFC][PATCH 2/3] dma-buf: heaps: Allow adding specified non-default CMA heaps John Stultz
2019-10-25 22:50 ` [RFC][PATCH 3/3] example: dts: hi3660-hikey960: Add dts entries to test cma heap binding John Stultz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).