Skip to content

DMA-BUF Heaps (destaging ION)

John Stultz dri-devel lkml 18 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v16 Latest posting 2/25 patches 4 repliesIn review
  2. v16 posting 1/25 patches 1 replySuperseded
  3. v155 patches 4 repliesSuperseded
Earlier versions · 15
VersionPostedPatchesRepliesStatus
v145 patches16 repliesSuperseded
v135 patches7 repliesSuperseded
v125 patches9 repliesSuperseded
v115 patches0 repliesSuperseded
v105 patches2 repliesSuperseded
v95 patches2 repliesSuperseded
v8 posting 2/25 patches36 repliesSuperseded
v8 posting 1/25 patches0 repliesSuperseded
v75 patches4 repliesSuperseded
v65 patches33 repliesSuperseded
v55 patches5 repliesSuperseded
v4 RFC5 patches4 repliesSuperseded
v3 RFC6 patches9 repliesSuperseded
v2 RFC5 patches63 repliesSuperseded
v1 RFC4 patches6 repliesSuperseded

Patches in v16 posting 2/2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5dma-buf: Add dma-buf heaps frameworkMAINTAINERS drivers/dma-buf/Kconfig drivers/dma-buf/Makefile +3 more+437 -02 replies
2/5dma-buf: heaps: Add heap helpersdrivers/dma-buf/Makefile drivers/dma-buf/heaps/Makefile drivers/dma-buf/heaps/heap-helpers.c +1 more+327 -00 replies
3/5dma-buf: heaps: Add system heap to dmabuf heapsdrivers/dma-buf/Kconfig drivers/dma-buf/heaps/Kconfig drivers/dma-buf/heaps/Makefile +1 more+132 -02 replies
4/5dma-buf: heaps: Add CMA heap to dmabuf heapsdrivers/dma-buf/heaps/Kconfig drivers/dma-buf/heaps/Makefile drivers/dma-buf/heaps/cma_heap.c+186 -00 replies
5/5kselftests: Add dma-heap testtools/testing/selftests/dmabuf-heaps/Makefile tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c+402 -00 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchBrian StarkeySandeep PatilBenjamin GaignardLaura AbbottAyan Kumar Halder
1/5R-b A-b
2/5R-b A-b R-b A-b T-b
3/5R-b A-b R-b A-b T-b
4/5R-b A-b R-b A-b T-b
5/5R-b A-b R-b A-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 5 reviewers.

Read the v16 thread

Cover letter [RESEND][PATCH v16 0/5] DMA-BUF Heaps (destaging ION)

Just wanted to resend v16.

This patchset implements per-heap devices which can be opened directly and then an ioctl is used to allocate a dmabuf from the heap.

The interface is similar, but much simpler then IONs, only providing an ALLOC ioctl.

Also, I've provided relatively simple system and cma heaps.

I've booted and tested these patches with AOSP on the HiKey960 using the kernel tree here:
https://git.linaro.org/people/john.stultz/android-dev.git/log/?h=dev/dma-buf-heap

And the reviewed (+2'ed) userspace changes here:
https://android-review.googlesource.com/c/device/linaro/hikey/+/909436

Compared to ION, this patchset is missing the system-contig, carveout and chunk heaps, as I don't have a device that uses those, so I'm unable to do much useful validation there. Additionally we have no upstream users of chunk or carveout, and the system-contig has been deprecated in the common/andoid-* kernels, so this should be ok.

I've also removed the stats accounting, since any such accounting should be implemented by dma-buf core or the heaps themselves.

New in v16:
* Typo fix suggested by Hridya Valsaraju <[email protected]>
* Add extra error and ioctl compatibility testing suggested by Daniel Vetter to the kselftest test

Thanks again for all the reviews and feedback!
-john

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]>

Andrew F. Davis (1):
dma-buf: Add dma-buf heaps framework

John Stultz (4):
dma-buf: heaps: Add heap helpers
dma-buf: heaps: Add system heap to dmabuf heaps
dma-buf: heaps: Add CMA heap to dmabuf heaps
kselftests: Add dma-heap test

 MAINTAINERS                                   |  18 +
 drivers/dma-buf/Kconfig                       |  11 +
 drivers/dma-buf/Makefile                      |   2 +
 drivers/dma-buf/dma-heap.c                    | 297 +++++++++++++
 drivers/dma-buf/heaps/Kconfig                 |  14 +
 drivers/dma-buf/heaps/Makefile                |   4 +
 drivers/dma-buf/heaps/cma_heap.c              | 177 ++++++++
 drivers/dma-buf/heaps/heap-helpers.c          | 271 ++++++++++++
 drivers/dma-buf/heaps/heap-helpers.h          |  53 +++
 drivers/dma-buf/heaps/system_heap.c           | 123 ++++++
 include/linux/dma-heap.h                      |  59 +++
 include/uapi/linux/dma-heap.h                 |  53 +++
 tools/testing/selftests/dmabuf-heaps/Makefile |   6 +
 .../selftests/dmabuf-heaps/dmabuf-heap.c      | 396 ++++++++++++++++++
 14 files changed, 1484 insertions(+)
 create mode 100644 drivers/dma-buf/dma-heap.c
 create mode 100644 drivers/dma-buf/heaps/Kconfig
 create mode 100644 drivers/dma-buf/heaps/Makefile
 create mode 100644 drivers/dma-buf/heaps/cma_heap.c
 create mode 100644 drivers/dma-buf/heaps/heap-helpers.c
 create mode 100644 drivers/dma-buf/heaps/heap-helpers.h
 create mode 100644 drivers/dma-buf/heaps/system_heap.c
 create mode 100644 include/linux/dma-heap.h
 create mode 100644 include/uapi/linux/dma-heap.h
 create mode 100644 tools/testing/selftests/dmabuf-heaps/Makefile
 create mode 100644 tools/testing/selftests/dmabuf-heaps/dmabuf-heap.c
Signature · 6 lines
2.17.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel