Skip to contentSkip to conversation

Virtex-II Pro and Instruction Prefetching

U-Boot-Users Frank Smith 4 participants 7 messages Jun 14, 2003 – Jun 16, 2003

lore
Share & tools
lore
#0 lore raw

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.

#1 lore raw
Quoted 2 lines · Frank Smith

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

Signature · 5 lines
 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
#2 lore raw
In reply to Frank Smith
Quoted 3 lines · In message <[email protected]> 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?

Quoted 1 line

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.

Quoted 3 lines

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

Signature · 4 lines
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
#3 lore raw
Quoted 7 lines · Wolfgang Denk
Quoted 3 lines · In message <[email protected]> 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 :-)

Quoted 11 lines
Quoted 1 line

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.

Quoted 3 lines

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.

#4 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:
Quoted 3 lines

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.

Quoted 2 lines

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

Signature · 3 lines
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.
#5 lore raw
Quoted 6 lines

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

Quoted 2 lines

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

Quoted 7 lines

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

#6 lore raw

Hi!

Quoted 7 lines
Quoted 7 lines
Quoted 2 lines

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

Quoted 8 lines
Quoted 3 lines

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.