86xx: Move the clear_tlbs before MMU turn on
PATCH 1/5 86xx: Move the clear_tlbs before MMU turn on
We must invalidate TLBs before MMU turn on, but currently the code is not, if there are some stale TLB entry valid in the TLBs, it will cause strange issue.
Signed-off-by Dave Liu <[email protected]>
--- cpu/mpc86xx/start.S | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
cpu/mpc86xx/start.S +4 -1
@@ -202,8 +202,12 @@ boot_warm: mtmsr 0 #endif + /* Invalidate BATs */ bl invalidate_bats sync + /* Invalidate all of TLB before MMU turn on */ + bl clear_tlbs + sync #ifdef CONFIG_SYS_L2 /* init the L2 cache */
@@ -275,7 +279,6 @@ in_flash: /* setup the rest of the bats */ bl setup_bats - bl clear_tlbs sync #if (CONFIG_SYS_CCSRBAR_DEFAULT != CONFIG_SYS_CCSRBAR)
Signature · 1 line
1.5.4
PATCH 1/5 86xx: Move the clear_tlbs before MMU turn on
Quoted 6 lines · Dave Liu
We must invalidate TLBs before MMU turn on, but currently the code is not, if there are some stale TLB entry valid in the TLBs, it will cause strange issue.
Signed-off-by Dave Liu <[email protected]>
Acked-by Becky Bruce <[email protected]>
PATCH 1/5 86xx: Move the clear_tlbs before MMU turn on
In reply to Dave LiuQuoted 7 lines · Dave Liu
We must invalidate TLBs before MMU turn on, but currently the code is not, if there are some stale TLB entry valid in the TLBs, it will cause strange issue.
Signed-off-by Dave Liu <[email protected]>---
Applied all 5 of these patches.
Thanks,
jdl