mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] mmu: flush ttb in map_io_sections
@ 2014-07-06 21:43 Lucas Stach
  0 siblings, 0 replies; only message in thread
From: Lucas Stach @ 2014-07-06 21:43 UTC (permalink / raw)
  To: barebox

From: Lucas Stach <l.stach@pengutronix.de>

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

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
---
 arch/arm/cpu/mmu.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm/cpu/mmu.c b/arch/arm/cpu/mmu.c
index bf0141b946db..e4afcc84115d 100644
--- a/arch/arm/cpu/mmu.c
+++ b/arch/arm/cpu/mmu.c
@@ -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;
 }
-- 
1.9.3


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-07-06 21:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-07-06 21:43 [PATCH] mmu: flush ttb in map_io_sections Lucas Stach

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox