imx8qxp pcie issue

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

imx8qxp pcie issue

1,261件の閲覧回数
zhengguang_yang
Contributor II

Hi 

We are using imx8qxp, Yocto3.0.

Kernel Version:5.4.70

We are not able to getdevice in lspci. Below are the dmesg log related to PCI:

[ 1.477884] ehci-pci: EHCI PCI platform driver
[ 1.494635] ohci-pci: OHCI PCI platform driver
[ 3.749329] imx6q-pcie 5f010000.pcie: No cache used with register defaults set!
[ 3.869797] imx6q-pcie 5f010000.pcie: PCIe PLL locked after 0 us.
[ 3.875982] imx6q-pcie 5f010000.pcie: host bridge /bus@5f000000/pcie@0x5f010000 ranges:
[ 3.887738] imx6q-pcie 5f010000.pcie: IO 0x7ff80000..0x7ff8ffff -> 0x00000000
[ 3.899055] imx6q-pcie 5f010000.pcie: MEM 0x70000000..0x7fefffff -> 0x70000000
[ 23.822092] imx6q-pcie 5f010000.pcie: Phy link never came up
[ 23.827793] imx6q-pcie 5f010000.pcie: PHY DEBUG_R0=0x00004e00 DEBUG_R1=0x08200000
[ 23.827892] imx6q-pcie 5f010000.pcie: failed to initialize host
[ 23.833856] imx6q-pcie 5f010000.pcie: unable to add pcie port.

However, it is normal to use Yocto 2.5, kernel version 4.14

Below are the dmesg log related to PCI:

[ 1.029212] OF: PCI: host bridge /pcie@0x5f010000 ranges:
[ 1.034310] OF: PCI: No bus range found for /pcie@0x5f010000, using [bus 00-ff]
[ 1.055065] imx6q-pcie 5f010000.pcie: pcie phy pll is locked.
[ 1.195066] imx6q-pcie 5f010000.pcie: Link up, Gen2
[ 1.201223] imx6q-pcie 5f010000.pcie: PCI host bridge to bus 0000:00
[ 1.207278] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 1.212732] pci_bus 0000:00: root bus resource [io 0x0000-0xffff]
[ 1.218893] pci_bus 0000:00: root bus resource [mem 0x70000000-0x7fefffff]
[ 1.225783] pci 0000:00:00.0: [1957:0000] type 01 class 0x060400
[ 1.225810] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00ffffff 64bit]
[ 1.225819] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x00ffffff pref]
[ 1.225865] pci 0000:00:00.0: supports D1 D2
[ 1.225871] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
[ 1.226213] pci 0000:01:00.0: [1b21:1806] type 01 class 0x060400
[ 1.226464] pci 0000:01:00.0: enabling Extended Tags
[ 1.231415] pci 0000:01:00.0: PME# supported from D0 D3hot D3cold
[ 1.231785] pci 0000:01:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.239754] pci 0000:02:00.0: [1b21:1806] type 01 class 0x060400
[ 1.240023] pci 0000:02:00.0: enabling Extended Tags
[ 1.244968] pci 0000:02:00.0: PME# supported from D0 D3hot D3cold
[ 1.245380] pci 0000:02:02.0: [1b21:1806] type 01 class 0x060400
[ 1.245641] pci 0000:02:02.0: enabling Extended Tags
[ 1.250579] pci 0000:02:02.0: PME# supported from D0 D3hot D3cold
[ 1.250967] pci 0000:02:06.0: [1b21:1806] type 01 class 0x060400
[ 1.251230] pci 0000:02:06.0: enabling Extended Tags
[ 1.256159] pci 0000:02:06.0: PME# supported from D0 D3hot D3cold
[ 1.256571] pci 0000:02:0e.0: [1b21:1806] type 01 class 0x060400
[ 1.256837] pci 0000:02:0e.0: enabling Extended Tags
[ 1.261776] pci 0000:02:0e.0: PME# supported from D0 D3hot D3cold
[ 1.262183] pci 0000:02:00.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.269891] pci 0000:02:02.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.277879] pci 0000:02:06.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.285868] pci 0000:02:0e.0: bridge configuration invalid ([bus 00-00]), reconfiguring
[ 1.294084] pci_bus 0000:03: busn_res: [bus 03-ff] end is updated to 03
[ 1.294309] pci_bus 0000:04: busn_res: [bus 04-ff] end is updated to 04
[ 1.294534] pci_bus 0000:05: busn_res: [bus 05-ff] end is updated to 05
[ 1.294757] pci_bus 0000:06: busn_res: [bus 06-ff] end is updated to 06
[ 1.294777] pci_bus 0000:02: busn_res: [bus 02-ff] end is updated to 06
[ 1.295021] pci 0000:00:00.0: BAR 0: assigned [mem 0x70000000-0x70ffffff 64bit]
[ 1.302006] pci 0000:00:00.0: BAR 6: assigned [mem 0x71000000-0x71ffffff pref]
[ 1.309215] pci 0000:02:00.0: PCI bridge to [bus 03]
[ 1.314218] pci 0000:02:02.0: PCI bridge to [bus 04]
[ 1.319162] pci 0000:02:06.0: PCI bridge to [bus 05]
[ 1.324115] pci 0000:02:0e.0: PCI bridge to [bus 06]
[ 1.329065] pci 0000:01:00.0: PCI bridge to [bus 02-06]
[ 1.334275] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 1.340358] pcieport 0000:00:00.0: Signaling PME with IRQ 411
[ 1.345982] pcieport 0000:00:00.0: AER enabled with IRQ 412
[ 4.729176] ehci-pci: EHCI PCI platform driver
[ 4.763901] ohci-pci: OHCI PCI platform driver

 

lspci log:

00:00.0 PCI bridge: Freescale Semiconductor Inc Device 0000 (rev 01)
01:00.0 PCI bridge: ASMedia Technology Inc. Device 1806 (rev 01)
02:00.0 PCI bridge: ASMedia Technology Inc. Device 1806 (rev 01)
02:02.0 PCI bridge: ASMedia Technology Inc. Device 1806 (rev 01)
02:06.0 PCI bridge: ASMedia Technology Inc. Device 1806 (rev 01)
02:0e.0 PCI bridge: ASMedia Technology Inc. Device 1806 (rev 01)

 

The DTS configuration of yocto 3.0 is as follows:

&pcieb{
compatible = "fsl,imx8qxp-pcie","snps,dw-pcie";
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_pcieb>;
reset-gpio = <&lsio_gpio4 0 GPIO_ACTIVE_LOW>;
ext_osc = <1>;
reset-time = <100>;
status = "okay";
};

 

0 件の賞賛
返信
2 返答(返信)

1,259件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

Hi Zhengguang

 

for this case may be recommended to use latest Linux 5.10.35_2.0.0 and try
with several pcie cards.

https://source.codeaurora.org/external/imx/linux-imx/tree/?h=lf-5.10.y

 

Best regards
igor

0 件の賞賛
返信

1,253件の閲覧回数
zhengguang_yang
Contributor II

Hi igorpadykov:

Thank you for your reply.

Yocto 3.0 is the system specified by the customer, so the system cannot be upgraded now.

 

 

0 件の賞賛
返信