disabling dcache p1011

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

disabling dcache p1011

444 Views
dp_siddharth
Contributor I

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?

Tags (1)
0 Kudos
1 Reply

341 Views
Bulat
NXP Employee
NXP Employee

Try to set cache-Inhibit attributes in the MMU before cache disabling.

Regards,

Bulat

0 Kudos