Skip to content

Commit

Permalink
ARM: mm: fix MMU mapping of CMA regions
Browse files Browse the repository at this point in the history
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 <cbrand@broadcom.com>
[extended patch subject with 'fix' word]
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
  • Loading branch information
Chris Brand authored and Marek Szyprowski committed Aug 9, 2012
1 parent 0d7614f commit 39f78e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 39f78e7

Please sign in to comment.