All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot-Users] Virtex-II Pro and Instruction Prefetching
@ 2003-06-14 12:27 Frank Smith
  2003-06-14 12:48 ` Robert Schwebel
  2003-06-14 13:45 ` [U-Boot-Users] " Wolfgang Denk
  0 siblings, 2 replies; 7+ messages in thread
From: Frank Smith @ 2003-06-14 12:27 UTC (permalink / raw)
  To: u-boot

Hello,

I'm working on getting PPCBoot 2.0.0 and Linux running on a custom
Virtex-II Pro development board.

I'm currently encountering problems with my DDR SDRAM controller --
it can't seem to handle instruction prefetching yet.  So to sidestep the
issue for now, I want to configure the 405 so that instructions
are not prefetched.

I've disabled instruction caching altogether (ICCR = 0x00000000) and I
have a core configuration register (CCR0) value of 0x00700000, which
according to the documentation has "prefetching for non-cachable
regions" disabled.

Even so, ChipScope is telling me that instructions are still 
being prefetched from SDRAM (sometimes 2 instructions, sometimes 4,
and sometimes 8 instructions at a time).  Is there anything else I have
to do to disable prefetching of non-cachable instructions?


Thanks,
Frank.

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

* [U-Boot-Users] Virtex-II Pro and Instruction Prefetching
  2003-06-14 12:27 [U-Boot-Users] Virtex-II Pro and Instruction Prefetching Frank Smith
@ 2003-06-14 12:48 ` Robert Schwebel
  2003-06-14 13:45 ` [U-Boot-Users] " Wolfgang Denk
  1 sibling, 0 replies; 7+ messages in thread
From: Robert Schwebel @ 2003-06-14 12:48 UTC (permalink / raw)
  To: u-boot

On Sat, Jun 14, 2003 at 09:27:14AM -0300, Frank Smith wrote:
> I'm working on getting PPCBoot 2.0.0 and Linux running on a custom
> Virtex-II Pro development board.

Forget that old version. Use U-Boot and start with the latest release or
with CVS.

Robert 
-- 
 Dipl.-Ing. Robert Schwebel | http://www.pengutronix.de
 Pengutronix - Linux Solutions for Science and Industry
   Braunschweiger Str. 79,  31134 Hildesheim, Germany
   Handelsregister:  Amtsgericht Hildesheim, HRA 2686
    Phone: +49-5121-28619-0 |  Fax: +49-5121-28619-4

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

* [U-Boot-Users] Re: Virtex-II Pro and Instruction Prefetching
  2003-06-14 12:27 [U-Boot-Users] Virtex-II Pro and Instruction Prefetching Frank Smith
  2003-06-14 12:48 ` Robert Schwebel
@ 2003-06-14 13:45 ` Wolfgang Denk
  2003-06-14 14:04   ` Frank Smith
  1 sibling, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2003-06-14 13:45 UTC (permalink / raw)
  To: u-boot

In message <03Jun14.092013adt.7305@dragon.appliedmicro.ns.ca> you wrote:
> 
> I'm working on getting PPCBoot 2.0.0 and Linux running on a custom
> Virtex-II Pro development board.

May I ask why you  use  PPCBoot  (a  dead  project)  instead  of  the
successor project U-Boot?

> I'm currently encountering problems with my DDR SDRAM controller --

This is a very common problem. Seems 99% of all people who attempt to
port U-Boot see this soner or later.

> it can't seem to handle instruction prefetching yet.  So to sidestep the
> issue for now, I want to configure the 405 so that instructions
> are not prefetched.

Don't. The problem will bit you later again. Solve problems  as  they
appear.


Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
Violence in reality is quite different from theory.
	-- Spock, "The Cloud Minders", stardate 5818.4

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

* [U-Boot-Users] Re: Virtex-II Pro and Instruction Prefetching
  2003-06-14 13:45 ` [U-Boot-Users] " Wolfgang Denk
@ 2003-06-14 14:04   ` Frank Smith
  2003-06-14 15:35     ` Wolfgang Denk
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Smith @ 2003-06-14 14:04 UTC (permalink / raw)
  To: u-boot

On Sat, 14 Jun 2003, Wolfgang Denk wrote:

> In message <03Jun14.092013adt.7305@dragon.appliedmicro.ns.ca> you wrote:
> > 
> > I'm working on getting PPCBoot 2.0.0 and Linux running on a custom
> > Virtex-II Pro development board.
> 
> May I ask why you  use  PPCBoot  (a  dead  project)  instead  of  the
> successor project U-Boot?

Just haven't gotten around to it.  I promise I will soon (although I think
there's a bug in cpu/ppc4xx/start.S I've pointed out previously that
nobody has rendered an opinion on as of yet :-)

> > I'm currently encountering problems with my DDR SDRAM controller --
> 
> This is a very common problem. Seems 99% of all people who attempt to
> port U-Boot see this soner or later.
> 
> > it can't seem to handle instruction prefetching yet.  So to sidestep the
> > issue for now, I want to configure the 405 so that instructions
> > are not prefetched.
> 
> Don't. The problem will bit you later again. Solve problems  as  they
> appear.

Point taken.  I've identified the problem, and someone else is working on
solving it, so I'm just looking for a way to make some progress until it
gets solved.


Thanks,
-Frank.

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

* [U-Boot-Users] Re: Virtex-II Pro and Instruction Prefetching
  2003-06-14 14:04   ` Frank Smith
@ 2003-06-14 15:35     ` Wolfgang Denk
  2003-06-14 16:05       ` [U-Boot-Users] " Frank Smith
  0 siblings, 1 reply; 7+ messages in thread
From: Wolfgang Denk @ 2003-06-14 15:35 UTC (permalink / raw)
  To: u-boot

In message <03Jun14.105725adt.7305@dragon.appliedmicro.ns.ca> you wrote:
> 
> > May I ask why you  use  PPCBoot  (a  dead  project)  instead  of  the
> > successor project U-Boot?
> 
> Just haven't gotten around to it.  I promise I will soon (although I think

Do it now. Don't waste time on old stuff.

> there's a bug in cpu/ppc4xx/start.S I've pointed out previously that
> nobody has rendered an opinion on as of yet :-)

You mean the STD_EXCEPTION vs. CRIT_EXCEPTION ?

I am waiting for Stefan to pick this up :-)


But actually it should not matter at all: your code is never supposed
to run into such an exception.  If  it's  crashing  anyway  there  is
little difference if it's crashing "correctly" or not ;-)

Best regards,

Wolfgang Denk

-- 
Software Engineering:  Embedded and Realtime Systems,  Embedded Linux
Phone: (+49)-8142-4596-87  Fax: (+49)-8142-4596-88  Email: wd at denx.de
The following statement is not true.  The previous statement is true.

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

* [U-Boot-Users] RE: Virtex-II Pro and Instruction Prefetching
  2003-06-14 15:35     ` Wolfgang Denk
@ 2003-06-14 16:05       ` Frank Smith
  2003-06-16  9:45         ` Stefan Roese
  0 siblings, 1 reply; 7+ messages in thread
From: Frank Smith @ 2003-06-14 16:05 UTC (permalink / raw)
  To: u-boot

> -----Original Message-----
> From: wd at denx.de [mailto:wd at denx.de]

> > there's a bug in cpu/ppc4xx/start.S I've pointed out previously that
> > nobody has rendered an opinion on as of yet :-)
> 
> You mean the STD_EXCEPTION vs. CRIT_EXCEPTION ?
> 
> I am waiting for Stefan to pick this up :-)
> 
> But actually it should not matter at all: your code is never supposed
> to run into such an exception.  If  it's  crashing  anyway  there  is
> little difference if it's crashing "correctly" or not ;-)

The problem with it crashing incorrectly is that the Oops message 
lies to you, as it's reporting the contents of SRR0/SRR1, not SRR2/SRR3 
as it should be for a critical exception. Makes it more difficult to
debug when you think the wrong instruction is causing the exception.

Thanks,
-Frank.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.488 / Virus Database: 287 - Release Date: 6/5/03

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

* [U-Boot-Users] RE: Virtex-II Pro and Instruction Prefetching
  2003-06-14 16:05       ` [U-Boot-Users] " Frank Smith
@ 2003-06-16  9:45         ` Stefan Roese
  0 siblings, 0 replies; 7+ messages in thread
From: Stefan Roese @ 2003-06-16  9:45 UTC (permalink / raw)
  To: u-boot

Hi!

> > > there's a bug in cpu/ppc4xx/start.S I've pointed out previously that
> > > nobody has rendered an opinion on as of yet :-)
> > 
> > You mean the STD_EXCEPTION vs. CRIT_EXCEPTION ?
> > 
> > I am waiting for Stefan to pick this up :-)
> > 
> > But actually it should not matter at all: your code is never supposed
> > to run into such an exception.  If  it's  crashing  anyway  there  is
> > little difference if it's crashing "correctly" or not ;-)
> 
> The problem with it crashing incorrectly is that the Oops message 
> lies to you, as it's reporting the contents of SRR0/SRR1, not SRR2/SRR3 
> as it should be for a critical exception. Makes it more difficult to
> debug when you think the wrong instruction is causing the exception.

OK, this seems to be correct. Let's give it a try!

Best regards,
Stefan.

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

end of thread, other threads:[~2003-06-16  9:45 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-06-14 12:27 [U-Boot-Users] Virtex-II Pro and Instruction Prefetching Frank Smith
2003-06-14 12:48 ` Robert Schwebel
2003-06-14 13:45 ` [U-Boot-Users] " Wolfgang Denk
2003-06-14 14:04   ` Frank Smith
2003-06-14 15:35     ` Wolfgang Denk
2003-06-14 16:05       ` [U-Boot-Users] " Frank Smith
2003-06-16  9:45         ` Stefan Roese

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.