issue about PCIE on board s32v234sbc:pcie can not work,"phy link never came up"

cancel
Showing results for 
Search instead for 
Did you mean: 

issue about PCIE on board s32v234sbc:pcie can not work,"phy link never came up"

353 Views
Contributor I

I'm trying to enable pcie support on s32v234sbc board, "Enable PCIE support" in menuconfig, details just list as follows,

run make menuconfig:

/@/-ThinkPad-E470:~$ make ARCH=arm64 CROSS_COMPILE=/path/to/your/toolchain/dir/bin/aarch64-linux-gnu- menuconfig

select orderly:

 Bus support->Designware PCI Core Supprt->Platform bus based Designware PCIe Controller;

 Bus support->Freescale S32v234 PCIe Host Controller

                    ->Ignore Freescale S32v234 erratum ERR009852

                    ->Freescale S32v234 PCIe DW DMA

saved and exist.

/@/-ThinkPad-E470:~$ make ARCH=arm64 CROSS_COMPILE=aarch64-linux-gnu-

build successfully.

When the system boots I saw such log:

[    0.037523] s32v234-siul2-pinctrl 4006c240.siul2-pinctrl: initialized s32 pinctrl driver
[    0.039865] s32v234-pcie 72ffc000.pcie: Configuring as RC
[    0.039950] s32v234-pcie 72ffc000.pcie: Allocated line 0 for interrupt 77
[    0.039961] OF: PCI: host bridge /pcie@0x72000000 ranges:
[    0.039974] OF: PCI:    IO 0x72f80000..0x72f8ffff -> 0x00000000
[    0.039983] OF: PCI:   MEM 0x72000000..0x72efffff -> 0x72000000
[    0.090620] s32v234-pcie 72ffc000.pcie: SOC revision: 0x10
[    1.090777] s32v234-pcie 72ffc000.pcie: phy link never came up
[    1.090809] s32v234-pcie 72ffc000.pcie: phy link never came up
[    1.090818] s32v234-pcie 72ffc000.pcie: DEBUG_R0: 0x005d5401, DEBUG_R1: 0x08600000
[    1.091024] s32v234-pcie 72ffc000.pcie: Failed to bring link up!
[    1.091148] s32v234-pcie 72ffc000.pcie: PCI host bridge to bus 0000:00
[    1.091159] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.091166] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    1.091173] pci_bus 0000:00: root bus resource [mem 0x72000000-0x72efffff]
[    1.091450] pci 0000:00:00.0: BAR 0: assigned [mem 0x72000000-0x720fffff 64bit]
[    1.091463] pci 0000:00:00.0: BAR 6: assigned [mem 0x72100000-0x7210ffff pref]
[    1.091471] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    1.091705] pcieport 0000:00:00.0: Signaling PME with IRQ 83
[    1.091796] pcieport 0000:00:00.0: AER enabled with IRQ 83

root@s32v234evb:~# dmesg|grep pci
[    0.039865] s32v234-pcie 72ffc000.pcie: Configuring as RC
[    0.039950] s32v234-pcie 72ffc000.pcie: Allocated line 0 for interrupt 77
[    0.039961] OF: PCI: host bridge /pcie@0x72000000 ranges:
[    0.090620] s32v234-pcie 72ffc000.pcie: SOC revision: 0x10
[    1.090777] s32v234-pcie 72ffc000.pcie: phy link never came up
[    1.090809] s32v234-pcie 72ffc000.pcie: phy link never came up
[    1.090818] s32v234-pcie 72ffc000.pcie: DEBUG_R0: 0x005d5401, DEBUG_R1: 0x08600000
[    1.091024] s32v234-pcie 72ffc000.pcie: Failed to bring link up!
[    1.091148] s32v234-pcie 72ffc000.pcie: PCI host bridge to bus 0000:00
[    1.091159] pci_bus 0000:00: root bus resource [bus 00-ff]
[    1.091166] pci_bus 0000:00: root bus resource [io  0x0000-0xffff]
[    1.091173] pci_bus 0000:00: root bus resource [mem 0x72000000-0x72efffff]
[    1.091198] pci 0000:00:00.0: [1957:4001] type 01 class 0x060400
[    1.091216] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x000fffff 64bit]
[    1.091224] pci 0000:00:00.0: reg 0x38: [mem 0x00000000-0x0000ffff pref]
[    1.091255] pci 0000:00:00.0: supports D1
[    1.091260] pci 0000:00:00.0: PME# supported from D0 D1 D3hot D3cold
[    1.091450] pci 0000:00:00.0: BAR 0: assigned [mem 0x72000000-0x720fffff 64bit]
[    1.091463] pci 0000:00:00.0: BAR 6: assigned [mem 0x72100000-0x7210ffff pref]
[    1.091471] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[    1.091705] pcieport 0000:00:00.0: Signaling PME with IRQ 83
[    1.091796] pcieport 0000:00:00.0: AER enabled with IRQ 83
[    2.017899] ehci-pci: EHCI PCI platform driver
[    2.034151] ohci-pci: OHCI PCI platform driver

This bsp version is 18.0 hf1. 

Could you give me a favour whether I had lost/failed in some config or not.

Thanks!

The attachment is .config file of my BSP kernel.

Labels (1)
0 Kudos
2 Replies

104 Views
Contributor I

Hello, I made the same mistake as you. Have you solved it?

0 Kudos

104 Views
NXP Employee
NXP Employee

Hi kun.jia@imotion.ai‌,

This community is for NXP Matlab based design toolbox for Vision.

For S32V234 related question we offer support via a ticketing system. Please create a support request for this question at www.nxp.com/support using Support Requests option.

0 Kudos