linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM )
@ 2007-04-24 12:52 Mohammad Sadegh Sadri
  2007-04-24 13:55 ` Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Mohammad Sadegh Sadri @ 2007-04-24 12:52 UTC (permalink / raw)
  To: Linux PPC Linux PPC


Hi all,

Just a very simple question about the 2.6 kerenl,

suppose that in my base system I have included 8kbytes of memory for DS OCM=
 and 8K for IS OCM,
I have generated the proper xparameters.h and copied it into kernel

Now I want to know if kernel will use this portion of memory during it's op=
eration?
Does this increase performance?

thanks

_________________________________________________________________
Explore the seven wonders of the world
http://search.msn.com/results.aspx?q=3D7+wonders+world&mkt=3Den-US&form=3DQ=
BRE=

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

* Re: 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM )
  2007-04-24 12:52 Mohammad Sadegh Sadri
@ 2007-04-24 13:55 ` Grant Likely
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Likely @ 2007-04-24 13:55 UTC (permalink / raw)
  To: Mohammad Sadegh Sadri; +Cc: Linux PPC Linux PPC

On 4/24/07, Mohammad Sadegh Sadri <mamsadegh@hotmail.com> wrote:
>
> suppose that in my base system I have included 8kbytes of memory for DS OCM and 8K for IS OCM,
> I have generated the proper xparameters.h and copied it into kernel
>
> Now I want to know if kernel will use this portion of memory during it's operation?
> Does this increase performance?

No, it won't use that memory as general purpose RAM.  You can make use
of it in device drivers (ie. for DMA space), but you'll need to write
the code to support it.

Cheers,
g.

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

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

* RE: 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM )
@ 2007-04-24 14:52 Mohammad Sadegh Sadri
  2007-04-24 14:59 ` Grant Likely
  0 siblings, 1 reply; 7+ messages in thread
From: Mohammad Sadegh Sadri @ 2007-04-24 14:52 UTC (permalink / raw)
  To: grant.likely; +Cc: linuxppc-embedded



what about the cache?
Does the current kernel use the cache efficiently?



----------------------------------------
> Date: Tue, 24 Apr 2007 07:55:48 -0600
> From: grant.likely@secretlab.ca
> To: mamsadegh@hotmail.com
> Subject: Re: 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory contro=
llers ( DSOCM and ISOCM )
> CC: linuxppc-embedded@ozlabs.org
>=20
> On 4/24/07, Mohammad Sadegh Sadri  wrote:
> >
> > suppose that in my base system I have included 8kbytes of memory for DS=
 OCM and 8K for IS OCM,
> > I have generated the proper xparameters.h and copied it into kernel
> >
> > Now I want to know if kernel will use this portion of memory during it'=
s operation?
> > Does this increase performance?
>=20
> No, it won't use that memory as general purpose RAM.  You can make use
> of it in device drivers (ie. for DMA space), but you'll need to write
> the code to support it.
>=20
> Cheers,
> g.
>=20
> --=20
> Grant Likely, B.Sc. P.Eng.
> Secret Lab Technologies Ltd.
> grant.likely@secretlab.ca
> (403) 399-0195

_________________________________________________________________
Connect to the next generation of MSN Messenger=A0
http://imagine-msn.com/messenger/launch80/default.aspx?locale=3Den-us&sourc=
e=3Dwlmailtagline=

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

* Re: 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM )
  2007-04-24 14:52 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM ) Mohammad Sadegh Sadri
@ 2007-04-24 14:59 ` Grant Likely
  0 siblings, 0 replies; 7+ messages in thread
From: Grant Likely @ 2007-04-24 14:59 UTC (permalink / raw)
  To: Mohammad Sadegh Sadri; +Cc: linuxppc-embedded

On 4/24/07, Mohammad Sadegh Sadri <mamsadegh@hotmail.com> wrote:
>
>
> what about the cache?
> Does the current kernel use the cache efficiently?

Yes, the caches work and are turned on by the kernel.

g.

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

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

* RE: 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM )
@ 2007-04-24 15:37 Mohammad Sadegh Sadri
  2007-04-24 17:43 ` Grant Likely
  2007-04-25 19:37 ` jozsef imrek
  0 siblings, 2 replies; 7+ messages in thread
From: Mohammad Sadegh Sadri @ 2007-04-24 15:37 UTC (permalink / raw)
  To: grant.likely; +Cc: linuxppc-embedded



Then in mailing list I saw some where that AVNET mini-modules are using a v=
ersion of FX12 FPGA which has problem with PPC caches and as the solution t=
he caches should be off.

Does the kernel always turns on the caches? Or If I choose in the base syst=
em builder to not to use caches, the kernel will not use them?=20

Any special config parameter for this in xparameters.h?

thanks



----------------------------------------
> Date: Tue, 24 Apr 2007 08:59:37 -0600
> From: grant.likely@secretlab.ca
> To: mamsadegh@hotmail.com
> Subject: Re: 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory contro=
llers ( DSOCM and ISOCM )
> CC: linuxppc-embedded@ozlabs.org
>=20
> On 4/24/07, Mohammad Sadegh Sadri  wrote:
> >
> >
> > what about the cache?
> > Does the current kernel use the cache efficiently?
>=20
> Yes, the caches work and are turned on by the kernel.
>=20
> g.
>=20
> --=20
> Grant Likely, B.Sc. P.Eng.
> Secret Lab Technologies Ltd.
> grant.likely@secretlab.ca
> (403) 399-0195

_________________________________________________________________
News, entertainment and everything you care about at Live.com. Get it now!
http://www.live.com/getstarted.aspx=

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

* Re: 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM )
  2007-04-24 15:37 Mohammad Sadegh Sadri
@ 2007-04-24 17:43 ` Grant Likely
  2007-04-25 19:37 ` jozsef imrek
  1 sibling, 0 replies; 7+ messages in thread
From: Grant Likely @ 2007-04-24 17:43 UTC (permalink / raw)
  To: Mohammad Sadegh Sadri; +Cc: linuxppc-embedded

On 4/24/07, Mohammad Sadegh Sadri <mamsadegh@hotmail.com> wrote:
>
> Then in mailing list I saw some where that AVNET mini-modules are using a version of FX12 FPGA which has problem with PPC caches and as the solution the caches should be off.
>
> Does the kernel always turns on the caches? Or If I choose in the base system builder to not to use caches, the kernel will not use them?

I'm pretty sure that specific issue was due to a certain version of
silicon.  You'll need to check the Xilinx errata sheets.

>
> Any special config parameter for this in xparameters.h?

No.  You need to hack the startup code to turn off caches.

g.

-- 
Grant Likely, B.Sc. P.Eng.
Secret Lab Technologies Ltd.
grant.likely@secretlab.ca
(403) 399-0195

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

* RE: 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM )
  2007-04-24 15:37 Mohammad Sadegh Sadri
  2007-04-24 17:43 ` Grant Likely
@ 2007-04-25 19:37 ` jozsef imrek
  1 sibling, 0 replies; 7+ messages in thread
From: jozsef imrek @ 2007-04-25 19:37 UTC (permalink / raw)
  To: linuxppc-embedded; +Cc: Mohammad Sadegh Sadri

On Tue, 24 Apr 2007, Mohammad Sadegh Sadri wrote:

> Then in mailing list I saw some where that AVNET mini-modules are using 
> a version of FX12 FPGA which has problem with PPC caches and as the 
> solution the caches should be off.

i think the relevant errata is this:
http://www.xilinx.com/xlnx/xil_ans_display.jsp?getPagePath=20658
see solution 13.


as far as i understand the problem was caused by the plb2opb bridge
used in the design. the bridge was necessary because the plb_ddr
controller in earlier EDKs did not support the 16bit DDR memory
present on the avnet (earlier memec) minimodule, therefore you had to
use an opb_ddr controller.

however, the plb_ddr present in recent EDKs (ie plb_ddr v2.00.a)
_does_ support 16bit wide memory, therefore you do not need the
plb2opb bridge.

so as long as you are using the plb_ddr controller, and you are
disabling cache for other devices on the opb bus you should be
safe.



could someone with more authentic knowledge confirm this? anyone
from xilinx/avnet?



-- 
mazsi

----------------------------------------------------------------
strawberry fields forever!                       imrek@atomki.hu
----------------------------------------------------------------

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

end of thread, other threads:[~2007-04-25 20:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-24 14:52 2.6 Kernel , Xilinx Virtex and PPC 405 On chip memory controllers ( DSOCM and ISOCM ) Mohammad Sadegh Sadri
2007-04-24 14:59 ` Grant Likely
  -- strict thread matches above, loose matches on Subject: below --
2007-04-24 15:37 Mohammad Sadegh Sadri
2007-04-24 17:43 ` Grant Likely
2007-04-25 19:37 ` jozsef imrek
2007-04-24 12:52 Mohammad Sadegh Sadri
2007-04-24 13:55 ` Grant Likely

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