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 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: Andrew Morton akpm@linux-foundation.org Cc: Yue Hu huyue2@yulong.com Cc: Mike Rapoport rppt@linux.ibm.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: dri-devel@lists.freedesktop.org
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(-)