Re: [PATCH] kernel/dma: export dma_alloc_from_contiguous to modules

2019-07-11 Thread Miles Chen
On Thu, 2019-07-11 at 09:50 +0100, Robin Murphy wrote: > On 11/07/2019 06:33, miles.c...@mediatek.com wrote: > > From: Miles Chen > > > > This change exports dma_alloc_from_contiguous and > > dma_release_from_contiguous to modules. > > > > Currently, we can add a reserve a memory node in dts fil

Re: [PATCH] kernel/dma: export dma_alloc_from_contiguous to modules

2019-07-11 Thread Christoph Hellwig
On Thu, Jul 11, 2019 at 09:50:58AM +0100, Robin Murphy wrote: > On 11/07/2019 06:33, miles.c...@mediatek.com wrote: >> From: Miles Chen >> >> This change exports dma_alloc_from_contiguous and >> dma_release_from_contiguous to modules. >> >> Currently, we can add a reserve a memory node in dts file

Re: [PATCH] kernel/dma: export dma_alloc_from_contiguous to modules

2019-07-11 Thread Robin Murphy
On 11/07/2019 06:33, miles.c...@mediatek.com wrote: From: Miles Chen This change exports dma_alloc_from_contiguous and dma_release_from_contiguous to modules. Currently, we can add a reserve a memory node in dts files, make it a CMA memory by setting compatible = "shared-dma-pool", and setup t

[PATCH] kernel/dma: export dma_alloc_from_contiguous to modules

2019-07-10 Thread miles.chen
From: Miles Chen This change exports dma_alloc_from_contiguous and dma_release_from_contiguous to modules. Currently, we can add a reserve a memory node in dts files, make it a CMA memory by setting compatible = "shared-dma-pool", and setup the dev->cma_area by using of_reserved_mem_device_init_