arm64: Align CMA sizes to PAGE_SIZE
authorLaura Abbott <lauraa@codeaurora.org>
Tue, 4 Feb 2014 23:08:57 +0000 (23:08 +0000)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 5 Feb 2014 10:28:27 +0000 (10:28 +0000)
commitccc9e244eb1b9654915634827322932cbafd8244
treeccd48e88d9ecc6d28266669e9fa8ad9a083ff741
parent5044bad43ee573d0b6d90e3ccb7a40c2c7d25eb4
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>
arch/arm64/mm/dma-mapping.c