Skip to content

RFC Allow DMA BUF heaps to be loaded as modules

John Stultz dri-devel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 20 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2mm: cma: Export cma symbols for cma heap as a modulekernel/dma/contiguous.c mm/cma.c+6 -06 replies
2/2dma-buf: heaps: Allow system & cma heaps to be configured as a modulesdrivers/dma-buf/dma-heap.c drivers/dma-buf/heaps/Kconfig drivers/dma-buf/heaps/heap-helpers.c+6 -23 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchSandeep Patil
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [RFC][PATCH 0/2] Allow DMA BUF heaps to be loaded as modules

Now that the DMA BUF heaps core code has been queued, I wanted to send out some of the pending changes that I've been working on.

For use with Android and their GKI effort, it is desired that DMA BUF heaps are able to be loaded as modules. This is required for migrating vendors off of ION which was also recently changed to support modules.

So this patch series simply provides the necessary exported symbols and allows the system and CMA drivers to be built as modules.

Due to the fact that dmabuf's allocated from a heap may be in use for quite some time, there isn't a way to safely unload the driver once it has been loaded. Thus these drivers do no implement module_exit() functions and will show up in lsmod as "[permanent]"

Feedback and thoughts on this would be greatly appreciated!

thanks
-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 Andrew F. Davis <[email protected]>
Cc Andrew Morton <[email protected]>
Cc Yue Hu <[email protected]>
Cc Mike Rapoport <[email protected]>
Cc Chenbo Feng <[email protected]>
Cc Alistair Strachan <[email protected]>
Cc Sandeep Patil <[email protected]>
Cc Hridya Valsaraju <[email protected]>

John Stultz (1):
dma-buf: heaps: Allow system & cma heaps to be configured as a modules

Sandeep Patil (1):
mm: cma: Export cma symbols for cma heap as a module

 drivers/dma-buf/dma-heap.c           | 2 ++
 drivers/dma-buf/heaps/Kconfig        | 4 ++--
 drivers/dma-buf/heaps/heap-helpers.c | 2 ++
 kernel/dma/contiguous.c              | 1 +
 mm/cma.c                             | 5 +++++
 5 files changed, 12 insertions(+), 2 deletions(-)
Signature · 6 lines
2.17.1

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