Skip to contentSkip to conversation

440SPe/Katmai PCIe problems

DISCUSSION Benjamin Herrenschmidt 2 participants 3 messages May 12, 2010

lore
Share & tools
lore
#0 lore raw

Hi Stefan !

(Or somebody from AMCC)

I noticed we still have this old problem on PCIe where some cards don't seem to work. The link trains but they don't respond on config space. This is the case for example of that Sunix quad USB card. It seems to be related to the kind of TI PCIe <-> PCI bridge on these though.

Have anybody tracked down the root cause of the problem ? Some say that it could be that the bridge doesn't cope with the double reset (uboot then kernel). Would it be possible to tell uboot to avoid touching the PCIe interface completely so the kernel is the first one to get in ?

Cheers,
Ben.

#1 lore raw
Quoted 9 lines · Benjamin Herrenschmidt

Hi Stefan !

(Or somebody from AMCC)

I noticed we still have this old problem on PCIe where some cards don't seem to work. The link trains but they don't respond on config space. This is the case for example of that Sunix quad USB card. It seems to be related to the kind of TI PCIe <-> PCI bridge on these though.

Quoted 4 lines

Have anybody tracked down the root cause of the problem ? Some say that it could be that the bridge doesn't cope with the double reset (uboot then kernel). Would it be possible to tell uboot to avoid touching the PCIe interface completely so the kernel is the first one to get in ?

Actually... the card works in the Canyonlands using the latest u-boot from ftp.denx.de (u-boot-nand.bin-2009.11.1), though interestingly enough, this u-boot fails to detect an XGI Z11 video card that I have, whichever slot I put it in.

in fact, the kernel itself detects the card and times out trying to get a link. It works with whatever u-boot I used to have in there (and no longer do ... oops :-)

Cheers,
Ben.

#2 lore raw

DQo+IC0tLS0tT3JpZ2luYWwgTWVzc2FnZS0tLS0tDQo+IEZyb206IEJlbmphbWluIEhlcnJlbnNj aG1pZHQgW21haWx0bzpiZW5oQGtlcm5lbC5jcmFzaGluZy5vcmddDQo+IFNlbnQ6IFR1ZXNkYXks IE1heSAxMSwgMjAxMCA4OjAzIFBNDQo+IFRvOiBTdGVmYW4gUm9lc2UNCj4gQ2M6IGxpbnV4cHBj LWRldjsgUHJhdmluIEJhdGhpamENCj4gU3ViamVjdDogUmU6IDQ0MFNQZS9LYXRtYWkgUENJZSBw cm9ibGVtcw0KPiAN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