imx6 - Linux 4.1.15 - PCIe switch problem

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx6 - Linux 4.1.15 - PCIe switch problem

2,545 Views
aebischerquenti
Contributor III

Hi everyone,

We are trying to evaluate a PCIe switch 1 to 4 ports solution (based on chipset ASM1184e from ASMedia) for our next board design.

To test the switch, we are using a Phytec pbab01 board (designed with an imx6q), and the NXP linux kernel 4.1.15.

When plugging in an i210 intel PCIe ethernet card, the card is detected no problem.

When plugging in the PCIe switch, PCIe initialization fails with following logs :

imx6q-pcie 1ffc000.pcie: phy link never came up
imx6q-pcie 1ffc000.pcie: failed to initialize host
imx6q-pcie: probe of 1ffc000.pcie failed with error -22

We already added some additional delays like it was recommended in several threads dealing with PCIe initialization issue.

We tried adding RC imx6 PCIe, but it didn't do anything more.

Any hints/help is appreciated !

Thanks and regards,

Quentin

Labels (2)
Tags (3)
0 Kudos
Reply
4 Replies

1,595 Views
igorpadykov
NXP Employee
NXP Employee

Hi Quentin

for toradex boards may be useful to look at reset polarity patches

i.MX6 PCIe: Fix imx6_pcie_deassert_core_reset() polarity - Patchwork 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply

1,595 Views
aebischerquenti
Contributor III

Igor,

Thank you for your answer. I tried the patch that you linked, but it still doesn't work. Also I tried with a mainline kernel, the link still doesn't goes up but the enumeration goes a bit further :

1.368232] imx6q-pcie 1ffc000.pcie: phy link never came up
[ 1.371756] imx6q-pcie 1ffc000.pcie: PCI host bridge to bus 0000:00
[ 1.371787] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.371811] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 1.371834] pci_bus 0000:00: root bus resource [mem 0x01000000-0x01efffff]
[ 1.372945] PCI: bus0: Fast back to back transfers disabled
[ 1.373197] PCI: bus1: Fast back to back transfers enabled
[ 1.373270] pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff]
[ 1.373304] pci 0000:00:00.0: BAR 6: assigned [mem 0x01100000-0x0110ffff pref]
[ 1.373329] pci 0000:00:00.0: PCI bridge to [bus 01]

Is there a mailing list where I could find help ?


Thanks

Quentin

0 Kudos
Reply

1,595 Views
igorpadykov
NXP Employee
NXP Employee

Hi Quentin

this may be posted on meta-fsl-arm mailing list
meta-freescale Info Page 

Best regards
igor

0 Kudos
Reply

1,595 Views
启帆杨
Contributor I

Do you solve the problem?

if you have solve it,can you give me some measure.

thank.

0 Kudos
Reply