Re: [PATCH] arm64: dma-mapping: check whether cma area is initialized or not

2015-09-11 Thread Will Deacon
On Fri, Sep 11, 2015 at 12:00:37PM +0100, Catalin Marinas wrote: > On Fri, Sep 11, 2015 at 03:49:47PM +0800, Jisheng Zhang wrote: > > If CMA is turned on and CMA size is set to zero, kernel should > > behave as if CMA was not enabled at compile time. > > Every dma allocation should check existence

Re: [PATCH] arm64: dma-mapping: check whether cma area is initialized or not

2015-09-11 Thread Catalin Marinas
On Fri, Sep 11, 2015 at 03:49:47PM +0800, Jisheng Zhang wrote: > If CMA is turned on and CMA size is set to zero, kernel should > behave as if CMA was not enabled at compile time. > Every dma allocation should check existence of cma area > before requesting memory. > > Arm has done this by commit

[PATCH] arm64: dma-mapping: check whether cma area is initialized or not

2015-09-11 Thread Jisheng Zhang
If CMA is turned on and CMA size is set to zero, kernel should behave as if CMA was not enabled at compile time. Every dma allocation should check existence of cma area before requesting memory. Arm has done this by commit e464ef16c4f0 ("arm: dma-mapping: add checking cma area initialized"), also