Skip to contentSkip to conversation

mmu: flush ttb in map_io_sections

PATCH New Lucas Stach 1 participant 1 message Jul 6, 2014 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mmu: flush ttb in map_io_sections

From: Lucas Stach <[email protected]>

We need to flush out the ttb in order to make the
changes observable to the page walker.

---
 arch/arm/cpu/mmu.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/cpu/mmu.c +1 -0
index bf0141b946db..e4afcc84115d 100644
@@ -188,6 +188,7 @@ void *map_io_sections(unsigned long phys, void *_start, size_t size)
 	for (sec = start; sec < start + size; sec += (1 << 20))
 		ttb[sec >> 20] = (phys++ << 20) | PMD_SECT_DEF_UNCACHED;
 
+	dma_flush_range((unsigned long)ttb, (unsigned long)ttb + 0x4000);
 	tlb_invalidate();
 	return _start;
 }
Signature · 7 lines
1.9.3


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox