mpc5121 cache coherency

Kenneth Johansson kenneth at
Thu Jun 19 05:29:51 EST 2008

I have  tried to speed up u-boot by turning on I/D cache during boot. 

It sort of works and gives quite a boost but I'm having problems with
the ethernet driver that no longer works. 

What I'm seeing is that the cpu do not notice the ethernet hardwares
updates that is located in DRAM. Basically what is expected from a cache
incoherent system. 

Now my question is should not the e300 core detect writes to the DRAM
and reload the cached data ?? 

To get cache working I'm turning on the MMU and program some BAT
registers to a 1-1 mapping where only DRAM has cache on and all other
memory regions like the IMMR, flash ... has cache off. 

More information about the Linuxppc-embedded mailing list