[RFC][PATCH 2/2] dma-buf: heaps: Allow system & cma heaps to be configured as a modules

John Stultz john.stultz at linaro.org
Mon Nov 4 19:00:08 UTC 2019


On Mon, Nov 4, 2019 at 2:24 AM Daniel Vetter <daniel at ffwll.ch> wrote:
> On Fri, Oct 25, 2019 at 11:48:34PM +0000, John Stultz wrote:
> > Allow loading system and cma heap as a module instead of just as
> > a statically built in heap.
> >
> > Since there isn't a good mechanism for dmabuf lifetime tracking
> > it isn't safe to allow the heap drivers to be unloaded, so these
> > drivers do not implement any module unloading functionality and
> > will show up in lsmod as "[permanent]".
>
> dma-buf itself has all the try_module_get we'll need ... why is this not
> possible?

Let me look into that.  Thanks for the pointer.

thanks
-john


More information about the dri-devel mailing list