arm64: Align CMA sizes to PAGE_SIZE
authorLaura Abbott <lauraa@codeaurora.org>
Tue, 4 Feb 2014 23:08:57 +0000 (23:08 +0000)
committerMark Brown <broonie@linaro.org>
Mon, 5 May 2014 23:02:14 +0000 (16:02 -0700)
commit7e7f87dda0fbc095f27f3ccd97aed18c2542b93c
treea23aab18275e7df35e00b3dd75aef72fcaa9990e
parent9d93ccedc26f8591ca4e6f2b65dcbf2bdbfd6453
arm64: Align CMA sizes to PAGE_SIZE

dma_alloc_from_contiguous takes number of pages for a size.
Align up the dma size passed in to page size to avoid truncation
and allocation failures on sizes less than PAGE_SIZE.

Cc: Will Deacon <will.deacon@arm.com>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
(cherry picked from commit ccc9e244eb1b9654915634827322932cbafd8244)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/mm/dma-mapping.c