MPC5200 Cache coherency with BestComm issue
Quoted 6 lines
Hi Roger
Quoted 4 lines
By experimenting I have found that the BestComm and FEC work without the cache flush provided
CPU_FTR_MAYBE_CAN_NAPis removed from the cputable (nap disables snooping) and thatCPU_FTR_NEED_COHERENTis added to the cputable (turns on "M" bit in BAT/PTE so that the XLB
has
Quoted 8 lines
Quoted 3 lines
a chance of seeing a global transaction).
Thanks for the info.
The nap thing was indeed obvious ... The proper way to deactivate it would be in
lite5200.c
I added thepowersave_nap= 1; as an example on how to allow it to
nap.
Quoted 8 lines
I'll probably comment it out by default with a note.
For the
CPU_FTR_NEED_COHERENT, are you sure it's required ? From my understanding of the G2Core manual, the M bit must be set if you want the G2Core
to assert the global signal when it access memory. Here, we don't caresince only the G2Core is snooping on the bus. So that should not be
required ...
Quoted 3 lines
Sylvain
Sylvain,
You are correct. The CPU_FTR_NEED_COHERENT is not required. Perhaps
the solution is to only turn on powersave_nap if CONFIG_PPC_BESTCOMM is not selected.
-rb
__________________________________
Do you Yahoo!?
Meet the all-new My Yahoo! - Try it today!
http://my.yahoo.com
Hi Roger
Quoted 7 lines
Sylvain,
You are correct. TheCPU_FTR_NEED_COHERENTis not required. Perhaps the solution is to only turn onpowersave_napifCONFIG_PPC_BESTCOMMis not selected.
Pull the latest tree. I've just commented it out with a note.
I didn't rip it off so that people copying lite5200.c for their own board know how to activate it if they need to ...
It can also be controlled from userspace /proc/sys/kernel/powersave-nap
You just need to be aware of the consequences ( like USB not working either ! ) if you want to save power.
Sylvain