Skip to contentSkip to conversation

armv8: fsl-layerscape: Remove unnecessary flushing dcache

PATCH New Alison Wang 2 participants 2 messages Apr 22, 2016 – May 24, 2016 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 armv8: fsl-layerscape: Remove unnecessary flushing dcache

As the issue about the stack will get corrupted when switching between the early and final mmu tables is fixed by commit 70e21b06425ad6e1e90931333a704a600941cfff, the workaround to flush dcache is unnecessary and will be removed.

---
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 3 ---
 1 file changed, 3 deletions(-)
arch/arm/cpu/armv8/fsl-layerscape/cpu.c +0 -3
index d939900..9a5a6b5 100644
@@ -396,9 +396,6 @@ static inline void final_mmu_setup(void)
 	flush_dcache_range((ulong)level0_table,
 			   (ulong)level0_table + gd->arch.tlb_size);
 
-#ifdef CONFIG_SYS_DPAA_FMAN
-	flush_dcache_all();
-#endif
 	/* point TTBR to the new table */
 	set_ttbr_tcr_mair(el, (u64)level0_table, LAYERSCAPE_TCR_FINAL,
 			  MEMORY_ATTRIBUTES);
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH 1/1 armv8: fsl-layerscape: Remove unnecessary flushing dcache

Quoted 10 lines · Alison Wang

As the issue about the stack will get corrupted when switching between the early and final mmu tables is fixed by commit 70e21b06425ad6e1e90931333a704a600941cfff, the workaround to flush dcache is unnecessary and will be removed.

---
 arch/arm/cpu/armv8/fsl-layerscape/cpu.c | 3 ---
 1 file changed, 3 deletions(-)

Applied to u-boot-fsl-qoriq master, awaiting upstream.

Thanks.

York