linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* I need help with L2 cache on 440GX rev C
@ 2005-07-21 12:44 Nick Hennenfent
  2005-07-21 13:18 ` Eugene Surovegin
  0 siblings, 1 reply; 2+ messages in thread
From: Nick Hennenfent @ 2005-07-21 12:44 UTC (permalink / raw)
  To: linuxppc-embedded

[-- Attachment #1: Type: text/plain, Size: 513 bytes --]


I have an embedded 440GX rev C runnng at about 500Mhz.
I am using a 2.4.20 linux kernel.
I borrowed Matt Porter's code from the 2.6 kernels in
order to enable the L2 cache. The code compiles and
runs ok, but the cache does not seem to be enabled!!!
I ran some tests with/without the L2 cache code and 
there is no difference.
(A qsort of 1 million random integers takes 2 seconds).
Is there some other magic trick to enable that cache????
Any help is much appreciated.
Thanks,
Nick Hennenfent




[-- Attachment #2: Type: text/html, Size: 954 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: I need help with L2 cache on 440GX rev C
  2005-07-21 12:44 I need help with L2 cache on 440GX rev C Nick Hennenfent
@ 2005-07-21 13:18 ` Eugene Surovegin
  0 siblings, 0 replies; 2+ messages in thread
From: Eugene Surovegin @ 2005-07-21 13:18 UTC (permalink / raw)
  To: Nick Hennenfent; +Cc: linuxppc-embedded

On Thu, Jul 21, 2005 at 08:44:46AM -0400, Nick Hennenfent wrote:
> 
> I have an embedded 440GX rev C runnng at about 500Mhz.
> I am using a 2.4.20 linux kernel.
> I borrowed Matt Porter's code from the 2.6 kernels in
> order to enable the L2 cache. The code compiles and
> runs ok, but the cache does not seem to be enabled!!!
> I ran some tests with/without the L2 cache code and 
> there is no difference.
> (A qsort of 1 million random integers takes 2 seconds).
> Is there some other magic trick to enable that cache????

No, there is no magic involved. 2.6 code (ibm440gx_l2c_enable()) 
works just fine.

Make sure your firmware doesn't enable L2C itself, in this case kernel 
enable code isn't needed at all, and you won't see any difference if 
you remove it.

2.6 has /proc/cpuinfo has a 440GX-specific handler 
(ibm440gx_show_cpuinfo()), you can put something similar into your 2.4 
kernel to see actual L2C state.

-- 
Eugene

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-07-21 13:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-07-21 12:44 I need help with L2 cache on 440GX rev C Nick Hennenfent
2005-07-21 13:18 ` Eugene Surovegin

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).