]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dma-mapping: check whether cma area is initialized or not
authorJisheng Zhang <jszhang@marvell.com>
Fri, 11 Sep 2015 07:49:47 +0000 (08:49 +0100)
committerWill Deacon <will.deacon@arm.com>
Mon, 14 Sep 2015 11:28:30 +0000 (12:28 +0100)
commitba3331b8be1907564a223c27145727e0d1d71482
tree1dd9048002201177e07389f0c335c116f3052929
parent48fdd7874f07dfb3a661edca7ea1d4807bb4ccb0
arm64: dma-mapping: check whether cma area is initialized or not

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 9d0c9a4bc09f ("arm: dma-mapping: add
checking cma area initialized"), also do this for arm64.

Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/mm/dma-mapping.c