AnsweredAssumed Answered

disabling dcache p1011

Question asked by D P SIDDHARTH on Dec 2, 2018
Latest reply on Dec 7, 2018 by Bulat Karymov

Need help on disabling data cache in U-Boot. We are using P1011. I tried flag in U-Boot CONFIG_SYS_DCACHE_OFF but this doesn't help.

 

Did following routine execution:

  1. dcache_disable
  2. flush_dcache --> dcache_disable
  3. interrupts_disable --> dcache_disable
  4. Changed source in arch/powerpc/cpu/mpc85xx/release.S and tried to modified source wherever L1CSR0_DCE bit getting set.

In all the above cases, CPU just hangs.

 

printf("\nData (writethrough) Cache is %s\n", dcache_status() ? "ON" : "OFF"); This works and Status comes as ON

flush_dcache();
dcache_disable();

 

flush_dcache also works but as soon dcache_disable is called CPU hangs.

 

Please suggest, if I am missing something here. Also Does MAS2_I need to be set to 1?

Outcomes