DORMANTno replies

[PATCH] ARM: mm: MMU mapping of CMA regions

From: chris_brand at broadcom.com <hidden>
Date: 2012-08-08 21:04:30
Subsystem: arm port, the rest · Maintainers: Russell King, Linus Torvalds

From: Chris Brand <redacted>

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 second inside lowmem, neither will get
set up in the MMU. Data written to the second region then doesn't get
automatically flushed from the cache into memory.

Signed-off-by: Chris Brand <redacted>
---
 arch/arm/mm/dma-mapping.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c
index 655878b..4a4f3f9 100644
--- a/arch/arm/mm/dma-mapping.c
+++ b/arch/arm/mm/dma-mapping.c
@@ -388,7 +388,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);
-- 
1.7.5.4
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help