* Re: MPC5200 Cache coherency with BestComm issue
2004-11-16 20:16 Lite5200 FEC Driver on linux 2.6 broken? (again) Dale Farnsworth
@ 2004-11-27 21:39 ` roger blofeld
2004-11-28 23:22 ` Sylvain Munaut
0 siblings, 1 reply; 4+ messages in thread
From: roger blofeld @ 2004-11-27 21:39 UTC (permalink / raw)
To: tnt; +Cc: linuxppc-embedded
Sylvain,
By experimenting I have found that the BestComm and FEC work without
the cache flush provided CPU_FTR_MAYBE_CAN_NAP is removed from the
cputable (nap disables snooping) and that CPU_FTR_NEED_COHERENT is
added to the cputable (turns on "M" bit in BAT/PTE so that the XLB has
a chance of seeing a global transaction).
I don't know if that will work for all G2_LE cores, but it seems
required for the 5200.
-rb
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: MPC5200 Cache coherency with BestComm issue
2004-11-27 21:39 ` MPC5200 Cache coherency with BestComm issue roger blofeld
@ 2004-11-28 23:22 ` Sylvain Munaut
0 siblings, 0 replies; 4+ messages in thread
From: Sylvain Munaut @ 2004-11-28 23:22 UTC (permalink / raw)
To: roger blofeld; +Cc: linuxppc-embedded
Hi Roger
> By experimenting I have found that the BestComm and FEC work without
>the cache flush provided CPU_FTR_MAYBE_CAN_NAP is removed from the
>cputable (nap disables snooping) and that CPU_FTR_NEED_COHERENT is
>added to the cputable (turns on "M" bit in BAT/PTE so that the XLB has
>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 the powersave_nap = 1; as an example on how to allow it to nap.
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 care
since only
the G2Core is snooping on the bus. So that should not be required ...
Sylvain
^ permalink raw reply [flat|nested] 4+ messages in thread
* MPC5200 Cache coherency with BestComm issue
@ 2004-11-29 17:48 roger blofeld
2004-11-29 18:29 ` Sylvain Munaut
0 siblings, 1 reply; 4+ messages in thread
From: roger blofeld @ 2004-11-29 17:48 UTC (permalink / raw)
To: tnt; +Cc: linuxppc-embedded
>Hi Roger
>
>> By experimenting I have found that the BestComm and FEC work without
>>the cache flush provided CPU_FTR_MAYBE_CAN_NAP is removed from the
>>cputable (nap disables snooping) and that CPU_FTR_NEED_COHERENT is
>>added to the cputable (turns on "M" bit in BAT/PTE so that the XLB
has
>>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 the powersave_nap = 1; as an example on how to allow it to
nap.
>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 care
>since only the G2Core is snooping on the bus. So that should not be
required ...
>
>
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: MPC5200 Cache coherency with BestComm issue
2004-11-29 17:48 MPC5200 Cache coherency with BestComm issue roger blofeld
@ 2004-11-29 18:29 ` Sylvain Munaut
0 siblings, 0 replies; 4+ messages in thread
From: Sylvain Munaut @ 2004-11-29 18:29 UTC (permalink / raw)
To: roger blofeld; +Cc: linuxppc-embedded
Hi Roger
>
>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.
>
>
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-11-29 18:29 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-29 17:48 MPC5200 Cache coherency with BestComm issue roger blofeld
2004-11-29 18:29 ` Sylvain Munaut
-- strict thread matches above, loose matches on Subject: below --
2004-11-16 20:16 Lite5200 FEC Driver on linux 2.6 broken? (again) Dale Farnsworth
2004-11-27 21:39 ` MPC5200 Cache coherency with BestComm issue roger blofeld
2004-11-28 23:22 ` Sylvain Munaut
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).