Skip to content

Commit d260d97

Browse files
James Hoganralfbaechle
authored andcommitted
MIPS: c-r4k: Drop bc_wback_inv() from icache flush
The EVA conditional bc_wback_inv() at the end of flush_icache_range() to flush the modified code all the way back to RAM was apparently there for debug purposes and to accommodate the Malta EVA configuration which makes use of a physical alias, and didn't use the CP0_EBase.WG (Write Gate) bit to put the exception vector in the same physical alias where the exception vector code is written and is being flushed. Now that CP0_EBase.WG is used, lets drop this flush. Signed-off-by: James Hogan <[email protected]> Cc: Leonid Yegoshin <[email protected]> Cc: [email protected] Patchwork: https://patchwork.linux-mips.org/patch/14151/ Signed-off-by: Ralf Baechle <[email protected]>
1 parent 4b22c69 commit d260d97

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

arch/mips/mm/c-r4k.c

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -752,17 +752,6 @@ static inline void __local_r4k_flush_icache_range(unsigned long start,
752752
break;
753753
}
754754
}
755-
#ifdef CONFIG_EVA
756-
/*
757-
* Due to all possible segment mappings, there might cache aliases
758-
* caused by the bootloader being in non-EVA mode, and the CPU switching
759-
* to EVA during early kernel init. It's best to flush the scache
760-
* to avoid having secondary cores fetching stale data and lead to
761-
* kernel crashes.
762-
*/
763-
bc_wback_inv(start, (end - start));
764-
__sync();
765-
#endif
766755
}
767756

768757
static inline void local_r4k_flush_icache_range(unsigned long start,

0 commit comments

Comments
 (0)