VAR-MX6Custom board PCIe phy does not come up

Moderators: Oren.R, Aviad.H

dkustern
Posts: 6
Joined: Thu Aug 27, 2015 7:29 am

VAR-MX6Custom board PCIe phy does not come up

Postby dkustern » Fri Sep 25, 2015 3:06 pm

Hello at all,

during some smoke testing on the iMX6 SOM eval board I ran into the following PCIe problem:

[ 0.386078] imx6q-pcie 1ffc000.pcie: phy link never came up
[ 0.386088] imx6q-pcie 1ffc000.pcie: Failed to bring link up!
[ 0.386113] imx6q-pcie 1ffc000.pcie: failed to initialize host
[ 0.386160] imx6q-pcie: probe of 1ffc000.pcie failed with error -22

I am booting from SD using the following u-boot and kernel:

root@varsomimx6:~# uname -a
Linux varsomimx6 3.14.28-1.1.0+ga675c193 #1 SMP PREEMPT Tue Aug 4 11:00:52 IDT 2015 armv7l GNU/Linux

VAR_SOM_MX6(sd) U-Boot > version
U-Boot 2013.10-00042-gae8daf7 (Jul 23 2015 - 08:23:37)
arm-poky-linux-gnueabi-gcc (GCC) 4.9.1
GNU ld (GNU Binutils) 2.24

Did anyone run into that problem and has an advice before I start digging?

BR
Daniel

Oren.R
Posts: 65
Joined: Tue Dec 16, 2014 7:47 pm

Re: VAR-MX6Custom board PCIe phy does not come up

Postby Oren.R » Thu Oct 01, 2015 11:19 am

Hello
we are running tests on the PCI successfully,
have you tried connecting your own PCI board?
we are using as a test here Intel 45N chipset board.

dkustern
Posts: 6
Joined: Thu Aug 27, 2015 7:29 am

Re: VAR-MX6Custom board PCIe phy does not come up

Postby dkustern » Mon Oct 19, 2015 8:23 am

Hello Oren,

we tried with different PCIe modules (e1000 and Marvell wi-fi) with the same result.
We found out that the following patch solved the issue.

Code: Select all

diff --git a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c
index 1c781f9..d7f1a40 100644
--- a/drivers/pci/host/pci-imx6.c
+++ b/drivers/pci/host/pci-imx6.c
@@ -442,7 +442,7 @@ static int imx6_pcie_wait_for_link(struct pcie_port *pp)
        int count = 200;

        while (!dw_pcie_link_up(pp)) {
-               udelay(100);
+               udelay(1000);
                if (--count)
                        continue;


This is kind of strange - maybe you should try to push it upstream to see what happens.

BR
Daniel


Return to “Hardware”

Who is online

Users browsing this forum: No registered users and 0 guests

cron