Re: [PATCH] mpc83xx: Fix dcache setup in lock_ram_in_cache

2020-11-13 Thread Joakim Tjernlund
You can disregard this patch, unless you think this is a good idea in general. The patch caused the same problem on another 83xx of very similar design. ATM, it looks like disabling the icache while executing in flash(turn of once in RAM) works for all boards. Seems like something goes terribly w

[PATCH] mpc83xx: Fix dcache setup in lock_ram_in_cache

2020-11-11 Thread Joakim Tjernlund
Lock dcache before clearing INIT_RAM. More importantly, invalidate dcache contents before using it as RAM. Signed-off-by: Joakim Tjernlund --- Something odd happend, on a stable mpc8321 board, small unrelated code changes made the board unbootable. Debugging with an emulator it looked like so