commit | bccd63d17a9c1814a649d4bbba4bcaeeadf8458f | [log] [tgz] |
---|---|---|
author | Laura Abbott <lauraa@codeaurora.org> | Tue Feb 04 23:08:57 2014 +0000 |
committer | Alex Shi <alex.shi@linaro.org> | Mon Apr 21 21:08:32 2014 +0800 |
tree | 27da2b331e3244945c12455560f6ef142af9bcc0 | |
parent | 54a9256c2ecaa741bfe469a89ebfe4399af16be6 [diff] |
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>