Re: PCIe detection Issue


Re: PCIe detection Issue

795 次查看
Contributor I

Hi Team,

Kernel Version :- 

  • Linux NXP Vendor Kernel v4.14.98-phy1 (based on NXP tag rel_imx_4.14.98_2.0.1)

Device tree Syntax :-

        ext_osc = <1>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pciea>;
        clkreq-gpio = <&gpio4 27 GPIO_ACTIVE_LOW>;
        reset-gpio = <&gpio4 29 GPIO_ACTIVE_LOW>;
        epdev_on-supply = <&epdev_on>;
        status = "okay";

&pcieb {
        ext_osc = <1>;
        pinctrl-names = "default";
        pinctrl-0 = <&pinctrl_pcieb>;
        clkreq-gpio = <&gpio4 30 GPIO_ACTIVE_LOW>;
        reset-gpio = <&gpio5 0 GPIO_ACTIVE_LOW>;
        epdev_on-supply = <&epdev_on2>;
        status = "okay";

We are trying to integrate PCIe device to i.mx8qm custom board, but unfortunately it is unable to detect.

When we check with lspci command, at least the host bridge is also not detecting.

When we gone through the kernel logs, we have seen below errors. 

root@phycore-imx8-2:~# dmesg | grep pci
[    1.072338] OF: PCI: host bridge /pcie@0x5f000000 ranges:
[    1.077415] OF: PCI:   No bus range found for /pcie@0x5f000000, using [bus 00-ff]
[    1.097935] imx6q-pcie 5f000000.pcie: pcie phy pll is locked.
[    1.348502] imx6q-pcie 5f000000.pcie: phy link never came up
[    1.353831] imx6q-pcie 5f000000.pcie: failed to initialize host
[    1.359726] imx6q-pcie 5f000000.pcie: unable to add pcie port.
[    1.365929] imx6q-pcie: probe of 5f000000.pcie failed with error -110
[    1.374601] OF: PCI: host bridge /pcie@0x5f010000 ranges:
[    1.379663] OF: PCI:   No bus range found for /pcie@0x5f010000, using [bus 00-ff]
[    1.399856] imx6q-pcie 5f010000.pcie: pcie phy pll is locked.
[    1.650408] imx6q-pcie 5f010000.pcie: phy link never came up
[    1.655735] imx6q-pcie 5f010000.pcie: failed to initialize host
[    1.661634] imx6q-pcie 5f010000.pcie: unable to add pcie port.
[    1.667807] imx6q-pcie: probe of 5f010000.pcie failed with error -110
[    2.855410] ehci-pci: EHCI PCI platform driver
[    2.891536] ohci-pci: OHCI PCI platform driver

As per my understanding by default  Linux BSP configures PCIe in Root Complex(RC) Mode. So when we execute lspci command without connecting any PCIe device, at-least host bridge(0:00:0) needs to be detected , but that is also not happening. I feel like PCIe bus itself having some issue.

Can you please help me out in resolving this issue.

Best Regards,

Kishore Tamada

0 项奖励
1 回复

250 次查看
Contributor III

Hi Kishore,

I am also facing same problem.

Please help me, If this Issue is resolved by you.


0 项奖励