disabling dcache p1011

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

disabling dcache p1011

1,232件の閲覧回数
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?

タグ(1)
0 件の賞賛
返信
1 返信

1,129件の閲覧回数
Bulat
NXP Employee
NXP Employee

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

Regards,

Bulat

0 件の賞賛
返信