[U-Boot] [PATCH] board: axs10x: Flush entire cache after programming reset vector
Alexey Brodkin
Alexey.Brodkin at synopsys.com
Thu Jun 9 15:00:13 CEST 2016
Now when we have support of IOC (IO-Coherency block), cache operations
on regions are tuned to be dummy stubs if IOC was found and enabled
in the core. That makes flush_dcache_range() useless for our purposes
here. And since we do need to flush modified reset vector to at least L2
cache (AKA SLC) so other cores will see it via its L1 instruction cache
we're using always functional flush_dcache_all() here.
Signed-off-by: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Marek Vasut <marex at denx.de>
---
board/synopsys/axs101/axs101.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/synopsys/axs101/axs101.c b/board/synopsys/axs101/axs101.c
index 84ee2bf..a5e774b 100644
--- a/board/synopsys/axs101/axs101.c
+++ b/board/synopsys/axs101/axs101.c
@@ -54,7 +54,7 @@ void smp_set_core_boot_addr(unsigned long addr, int corenr)
writel(addr, (void __iomem *)RESET_VECTOR_ADDR);
/* Make sure other cores see written value in memory */
- flush_dcache_range(RESET_VECTOR_ADDR, RESET_VECTOR_ADDR + sizeof(int));
+ flush_dcache_all();
}
void smp_kick_all_cpus(void)
--
2.5.5
More information about the U-Boot
mailing list