Skip to contentSkip to conversation

cmd: cache: output information

U-Boot jk 2 participants 4 messages Jul 23, 2016 – Aug 1, 2016

lore
Share & tools
lore

jk

author
#0 lore raw

Hi guys,

I think the output of command 'dcache' is improper. It always print 'writethrough' regardless of the real policy, such as write back.

=> dcache
Data (writethrough) Cache is ON

Not only ARM but also other socs support cache, hence we can't differentiate policy by macro (i.e CONFIG_SYS_ARM_CACHE_WRITETHROUGH). Can you think of anything better?

#1 lore raw

Hi,

Quoted 5 lines · jk

Hi guys,

I think the output of command 'dcache' is improper. It always print 'writethrough' regardless of the real policy, such as write back.

Quoted 7 lines

=> dcache
Data (writethrough) Cache is ON

Not only ARM but also other socs support cache, hence we can't differentiate policy by macro (i.e CONFIG_SYS_ARM_CACHE_WRITETHROUGH).
Can you think of anything better?

I'm sure it could be improved. Perhaps it could also be done in a generic way so it works on all archs. Do you want to send a patch?

Regards,
Simon

author
#2 lore raw

Hi Simon,

I'm not very familiar with other archs except, hence I'm not able to implement it.:-(

Regards,
Ziyuan Xu

Quoted 20 lines · Simon Glass

Hi,

Quoted 5 lines · jk

Hi guys,

I think the output of command 'dcache' is improper. It always print 'writethrough' regardless of the real policy, such as write back.

Quoted 7 lines

=> dcache
Data (writethrough) Cache is ON

Not only ARM but also other socs support cache, hence we can't differentiate policy by macro (i.e CONFIG_SYS_ARM_CACHE_WRITETHROUGH).
Can you think of anything better?

I'm sure it could be improved. Perhaps it could also be done in a generic way so it works on all archs. Do you want to send a patch?

Regards,
Simon

#3 lore raw

Hi Ziyuan,

Quoted 4 lines · jk

Hi Simon,

I'm not very familiar with other archs except, hence I'm not able to implement it.:-(

Well a patch for ARM would be useful. I'm sure other people could add to it later.

Regards,
Simon

Quoted 31 lines

Regards,
Ziyuan Xu

Quoted 23 lines · Simon Glass

Hi,

Quoted 6 lines · jk

Hi guys,

I think the output of command 'dcache' is improper. It always print 'writethrough' regardless of the real policy, such as write back.

Quoted 8 lines

=> dcache
Data (writethrough) Cache is ON

Not only ARM but also other socs support cache, hence we can't differentiate
policy by macro (i.e CONFIG_SYS_ARM_CACHE_WRITETHROUGH). Can you think of anything better?

I'm sure it could be improved. Perhaps it could also be done in a generic way so it works on all archs. Do you want to send a patch?

Regards,
Simon