From: Chris Brand Date: Tue, 7 Aug 2012 12:01:14 +0000 (+0200) Subject: ARM: mm: fix MMU mapping of CMA regions X-Git-Tag: v3.6~223^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=39f78e70567a07a6fc0d7a4ca9e3331e44dd400d;p=platform%2Fkernel%2Flinux-amlogic.git ARM: mm: fix MMU mapping of CMA regions Fix dma_contiguous_remap() so that it continues through all the regions, even after encountering one that is outside lowmem. Without this change, if you have two CMA regions, the first outside lowmem and the seocnd inside lowmem, only the second one will get set up in the MMU. Data written to that region then doesn't get automatically flushed from the cache into memory. Signed-off-by: Chris Brand [extended patch subject with 'fix' word] Signed-off-by: Marek Szyprowski --- diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index c2cdf65..334dd79 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -358,7 +358,7 @@ void __init dma_contiguous_remap(void) if (end > arm_lowmem_limit) end = arm_lowmem_limit; if (start >= end) - return; + continue; map.pfn = __phys_to_pfn(start); map.virtual = __phys_to_virt(start);