Skip to contentSkip to conversation

Problem with transparent PCI-PCI bridge on Canyonlands

U-Boot Felix Radensky 4 participants 11 messages Dec 9, 2009 – Dec 15, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

I'm running latest u-boot on 1GHz Canyonlands board and have trouble using 64-bit transparent PCI-PCI PLX 6254 bridge. With PLX evaluation board plugged into Canyonlands PCI slot u-boot hangs. With PCI support disabled u-boot works fine. The PLX board is OK, it was recognized by both u-boot and kernel on Freescale MPC8536DS board. On Canyonlands linux-2.6.32 silently resets the board when PLX is plugged in. Any ideas what could be wrong in u-boot ? I'll post a separate question to linuxppc-dev.

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU: AMCC PowerPC 460EX Rev. A at 1000 MHz (PLB=200 OPB=100 EBC=100)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52) Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache

Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DRAM:  512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND:  256 MiB
PCI:   Bus Dev VenId DevId Class Int

Thanks a lot.

Felix.

#1 lore raw

Dear Felix Radensky,

Quoted 4 lines · In message <[email protected]> you wrote:

I'm running latest u-boot on 1GHz Canyonlands board and have trouble using 64-bit transparent PCI-PCI PLX 6254 bridge. With PLX evaluation board plugged into Canyonlands PCI slot u-boot hangs. With PCI support

-----------------------------------------^^^^^^^^^^^^^

Where exactly does U-Boot hang?

What are the console messages you see? And which U-Boot version is this, and which version of the Canyonlands board?

Quoted 3 lines

disabled u-boot works fine. The PLX board is OK, it was recognized by both u-boot and kernel on Freescale MPC8536DS board. On Canyonlands linux-2.6.32 silently resets the board when PLX is plugged in. Any ideas

--^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is inconsistent: above you report U-Boot hangs, here you claim that Linux reboots?

Quoted 3 lines

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU: AMCC PowerPC 460EX Rev. A at 1000 MHz (PLB=200 OPB=100 EBC=100)

--------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Did you try running in another configuration, like 800-nor or 1066-nor?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
If I ever needed a brain transplant, I'd choose a teenager's  because
I'd want a brain that had never been used.
#2 lore raw

Hi, Wolfgang

Quoted 16 lines · Wolfgang Denk

Dear Felix Radensky,

Quoted 4 lines · In message <[email protected]> you wrote:

I'm running latest u-boot on 1GHz Canyonlands board and have trouble using 64-bit transparent PCI-PCI PLX 6254 bridge. With PLX evaluation board plugged into Canyonlands PCI slot u-boot hangs. With PCI support

-----------------------------------------^^^^^^^^^^^^^

Where exactly does U-Boot hang?

What are the console messages you see? And which U-Boot version is this, and which version of the Canyonlands board?

Quoted 10 lines
Quoted 4 lines

disabled u-boot works fine. The PLX board is OK, it was recognized by both u-boot and kernel on Freescale MPC8536DS board. On Canyonlands linux-2.6.32 silently resets the board when PLX is plugged in. Any ideas

--^^^^^^^^^^^^^^^^^^^^^^^^^^^^

This is inconsistent: above you report U-Boot hangs, here you claim that Linux reboots?

As I said, if I disable PCI support in u-boot, it runs fine and can start booting linux.

Quoted 10 lines
Quoted 4 lines

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU: AMCC PowerPC 460EX Rev. A at 1000 MHz (PLB=200 OPB=100 EBC=100)

--------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Did you try running in another configuration, like 800-nor or 1066-nor?

I did try 600-nor and 800-nor, but that didn't change anything. With 1066-nor
u-boot hangs earlier, the console messages show

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU: AMCC PowerPC 460EX Rev. A at 1066.667 MHz (PLB=266 OPB=88 EBC=88)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52) Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache

Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DRAM:  512 MB (ECC not enabled, 533 MHz, CL4)

Felix.

#3 lore raw

Hi, Wolfgang

Quoted 22 lines · Felix Radensky

Hi, Wolfgang

Quoted 7 lines

--------------------------------------^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Did you try running in another configuration, like 800-nor or 1066-nor?

I did try 600-nor and 800-nor, but that didn't change anything. With 1066-nor
u-boot hangs earlier, the console messages show

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU: AMCC PowerPC 460EX Rev. A at 1066.667 MHz (PLB=266 OPB=88 EBC=88)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52) Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache

Quoted 7 lines
Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DRAM:  512 MB (ECC not enabled, 533 MHz, CL4)

Felix.

Actually, 1066-nor is not different from other configurations. Switching to 1066-nor requires power-cycle, it's not enough to simply run "reset" command.
Anyway, in this configuration u-boot also hangs when PLX board is plugged in.

Felix.

#4 lore raw

Dear Felix Radensky,

Quoted 3 lines · In message <[email protected]> you wrote:

Anyway, in this configuration u-boot also hangs when PLX board is plugged in.

Are you using an ATX power supply? If not: do that!

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
e-credibility: the non-guaranteeable likelihood that  the  electronic
data you're seeing is genuine rather than somebody's made-up crap.
- Karl Lehenbauer
#5 lore raw
Quoted 10 lines · Wolfgang Denk

Dear Felix Radensky,

Quoted 3 lines · In message <[email protected]> you wrote:

Anyway, in this configuration u-boot also hangs when PLX board is plugged in.

Are you using an ATX power supply? If not: do that!

I do use ATX power supply, but it only has 20 pins, while Canyonlands connector has 24 pins. Could that be a problem ?

Felix.

#6 lore raw
In reply to Felix Radensky

Can you turn on the additional debug information. That will give a better
Clue as to what part is hanging.

Feng Kan
AMCC Software

-----Original Message-----
From: [email protected] [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Felix Radensky
Sent: Wednesday, December 09, 2009 10:02 AM
To: u-boot at lists.denx.de; Stefan Roese
Subject: [U-Boot] Problem with transparent PCI-PCI bridge on Canyonlands

Hi,

I'm running latest u-boot on 1GHz Canyonlands board and have trouble using 64-bit transparent PCI-PCI PLX 6254 bridge. With PLX evaluation board plugged into Canyonlands PCI slot u-boot hangs. With PCI support disabled u-boot works fine. The PLX board is OK, it was recognized by both u-boot and kernel on Freescale MPC8536DS board. On Canyonlands linux-2.6.32 silently resets the board when PLX is plugged in. Any ideas what could be wrong in u-boot ? I'll post a separate question to linuxppc-dev.

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU: AMCC PowerPC 460EX Rev. A at 1000 MHz (PLB=200 OPB=100 EBC=100)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52) Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache

Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DRAM:  512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND:  256 MiB
PCI:   Bus Dev VenId DevId Class Int

Thanks a lot.

Felix.

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#7 lore raw

Hi,

Quoted 4 lines · Feng Kan

Can you turn on the additional debug information. That will give a better
Clue as to what part is hanging.

I've enabled debugging in drivers/pci/pci.c. I'm seeing an infinite flow of messages

PCI: Bus Dev VenId DevId Class Int
PCI Scan: Found Bus 0, Device 6, Function 0 PCI Scan: Found Bus 1, Device 6, Function 0
...
PCI Scan: Found Bus 255, Device 6, Function 0 PCI Scan: Found Bus 0, Device 6, Function 0 PCI Scan: Found Bus 1, Device 6, Function 0
...

Felix.

Quoted 45 lines

Feng Kan
AMCC Software

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Felix Radensky
Sent: Wednesday, December 09, 2009 10:02 AM
To: u-boot at lists.denx.de; Stefan Roese
Subject: [U-Boot] Problem with transparent PCI-PCI bridge on Canyonlands

Hi,

I'm running latest u-boot on 1GHz Canyonlands board and have trouble using 64-bit transparent PCI-PCI PLX 6254 bridge. With PLX evaluation board plugged into Canyonlands PCI slot u-boot hangs. With PCI support disabled u-boot works fine. The PLX board is OK, it was recognized by both u-boot and kernel on Freescale MPC8536DS board. On Canyonlands linux-2.6.32 silently resets the board when PLX is plugged in. Any ideas what could be wrong in u-boot ? I'll post a separate question to linuxppc-dev.

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU: AMCC PowerPC 460EX Rev. A at 1000 MHz (PLB=200 OPB=100 EBC=100)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52) Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache

Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DRAM:  512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND:  256 MiB
PCI:   Bus Dev VenId DevId Class Int

Thanks a lot.

Felix.

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#8 lore raw

Feng, Stefan

Can I do anything else to help you identify the problem ?

Thanks.

Felix.

Quoted 76 lines · Felix Radensky

Hi,

Quoted 5 lines · Feng Kan

Can you turn on the additional debug information. That will give a better
Clue as to what part is hanging.

I've enabled debugging in drivers/pci/pci.c. I'm seeing an infinite flow of messages

PCI: Bus Dev VenId DevId Class Int
PCI Scan: Found Bus 0, Device 6, Function 0 PCI Scan: Found Bus 1, Device 6, Function 0
...
PCI Scan: Found Bus 255, Device 6, Function 0 PCI Scan: Found Bus 0, Device 6, Function 0 PCI Scan: Found Bus 1, Device 6, Function 0
...

Felix.

Quoted 36 lines

Feng Kan
AMCC Software

-----Original Message-----
From: u-boot-bounces at lists.denx.de [mailto:u-boot-bounces at lists.denx.de] On Behalf Of Felix Radensky
Sent: Wednesday, December 09, 2009 10:02 AM
To: u-boot at lists.denx.de; Stefan Roese
Subject: [U-Boot] Problem with transparent PCI-PCI bridge on Canyonlands

Hi,

I'm running latest u-boot on 1GHz Canyonlands board and have trouble using 64-bit transparent PCI-PCI PLX 6254 bridge. With PLX evaluation board plugged into Canyonlands PCI slot u-boot hangs. With PCI support disabled u-boot works fine. The PLX board is OK, it was recognized by both u-boot and kernel on Freescale MPC8536DS board. On Canyonlands linux-2.6.32 silently resets the board when PLX is plugged in. Any ideas what could be wrong in u-boot ? I'll post a separate question to linuxppc-dev.

U-Boot 2009.11-rc2-00002-g386118a (Dec 09 2009 - 18:48:44)

CPU: AMCC PowerPC 460EX Rev. A at 1000 MHz (PLB=200 OPB=100 EBC=100)
Security/Kasumi support
Bootstrap Option H - Boot ROM Location I2C (Addr 0x52) Internal PCI arbiter enabled
32 kB I-Cache 32 kB D-Cache

Board: Canyonlands - AMCC PPC460EX Evaluation Board, 2*PCIe, Rev. 14
I2C:   ready
DRAM:  512 MB (ECC not enabled, 400 MHz, CL3)
FLASH: 64 MB
NAND:  256 MiB
PCI:   Bus Dev VenId DevId Class Int
Quoted 10 lines

Thanks a lot.

Felix.

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

_______________________________________________
U-Boot mailing list
U-Boot at lists.denx.de
http://lists.denx.de/mailman/listinfo/u-boot

#9 lore raw

Felix,

Quoted 1 line · On Tuesday 15 December 2009 08:30:26 Felix Radensky wrote:

Can I do anything else to help you identify the problem ?

Do you have other PPC4xx boards, in which you could test this PCI-PCI bridge board?

Some other comments below.

Quoted 23 lines

Thanks.

Felix.

Quoted 18 lines · Felix Radensky

Hi,

Quoted 3 lines · Feng Kan

Can you turn on the additional debug information. That will give a better
Clue as to what part is hanging.

I've enabled debugging in drivers/pci/pci.c. I'm seeing an infinite flow of messages

PCI: Bus Dev VenId DevId Class Int
PCI Scan: Found Bus 0, Device 6, Function 0 PCI Scan: Found Bus 1, Device 6, Function 0
...
PCI Scan: Found Bus 255, Device 6, Function 0 PCI Scan: Found Bus 0, Device 6, Function 0 PCI Scan: Found Bus 1, Device 6, Function 0
...

Strange to see an infinite loop here. I suggest you debug, why pci_hose_scan_bus() is called endlessly. Hard to guess without access to such a board.

Cheers,
Stefan

--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de

#10 lore raw

Hi, Stefan

Quoted 10 lines · Stefan Roese

Felix,

Quoted 2 lines · On Tuesday 15 December 2009 08:30:26 Felix Radensky wrote:

Can I do anything else to help you identify the problem ?

Do you have other PPC4xx boards, in which you could test this PCI-PCI bridge board?

No, I don't.

Quoted 30 lines

Some other comments below.

Quoted 26 lines

Thanks.

Felix.

Quoted 20 lines · Felix Radensky

Hi,

Quoted 4 lines · Feng Kan

Can you turn on the additional debug information. That will give a better
Clue as to what part is hanging.

I've enabled debugging in drivers/pci/pci.c. I'm seeing an infinite flow of messages

PCI: Bus Dev VenId DevId Class Int
PCI Scan: Found Bus 0, Device 6, Function 0 PCI Scan: Found Bus 1, Device 6, Function 0
...
PCI Scan: Found Bus 255, Device 6, Function 0 PCI Scan: Found Bus 0, Device 6, Function 0 PCI Scan: Found Bus 1, Device 6, Function 0
...

Quoted 4 lines

Strange to see an infinite loop here. I suggest you debug, why pci_hose_scan_bus() is called endlessly. Hard to guess without access to such a board.

OK, thanks. I'll look into it.

Felix.