Hi all,
I have a lx2160ardb_rev2 board, and I plugged a PCIe card to the board.
When I booted the board, I found that the board doesn't detect the PCIe card.
NOTICE: BL2: v1.5(release):LSDK-20.04
NOTICE: BL2: Built : 05:31:48, Apr 9 2020
NOTICE: UDIMM 18ADF2G72AZ-3G2E1
NOTICE: DDR4 UDIMM with 2-rank 64-bit bus (x8)
NOTICE: 32 GB DDR4, 64-bit, CL=22, ECC on, 256B, CS0+CS1
NOTICE: BL2: Booting BL31
NOTICE: BL31: v1.5(release):LSDK-20.04
NOTICE: BL31: Built : 05:32:16, Apr 9 2020
NOTICE: Welcome to LX2160 BL31 Phase
U-Boot 2019.10-g3cd9bc3993 (Apr 09 2020 - 05:30:34 +0800)
SoC: LX2160ACE Rev2.0 (0x87360020)
Clock Configuration:
CPU0(A72):2000 MHz CPU1(A72):2000 MHz CPU2(A72):2000 MHz
CPU3(A72):2000 MHz CPU4(A72):2000 MHz CPU5(A72):2000 MHz
CPU6(A72):2000 MHz CPU7(A72):2000 MHz CPU8(A72):2000 MHz
CPU9(A72):2000 MHz CPU10(A72):2000 MHz CPU11(A72):2000 MHz
CPU12(A72):2000 MHz CPU13(A72):2000 MHz CPU14(A72):2000 MHz
CPU15(A72):2000 MHz
Bus: 700 MHz DDR: 2900 MT/s
Reset Configuration Word (RCW):
00000000: 50777738 24500050 00000000 00000000
00000010: 00000000 0c010000 00000000 00000000
00000020: 02e001a0 00002580 00000000 00000096
00000030: 00000000 00000000 00000000 00000000
00000040: 00000000 00000000 00000000 00000000
00000050: 00000000 00000000 00000000 00000000
00000060: 00000000 00000000 00027000 00000000
00000070: 08b30010 00150020
Model: NXP Layerscape LX2160ARDB Board
Board: LX2160ACE Rev2.0-RDB, Board version: B, boot from SD
FPGA: v8.0
SERDES1 Reference: Clock1 = 161.13MHz Clock2 = 161.13MHz
SERDES2 Reference: Clock1 = 100MHz Clock2 = 100MHz
SERDES3 Reference: Clock1 = 100MHz Clock2 = 100MHz
VID: Core voltage after adjustment is at 851 mV
DRAM: 31.9 GiB
DDR 31.9 GiB (DDR4, 64-bit, CL=22, ECC on)
DDR Controller Interleaving Mode: 256B
DDR Chip-Select Interleaving Mode: CS0+CS1
Using SERDES1 Protocol: 19 (0x13)
Using SERDES2 Protocol: 5 (0x5)
Using SERDES3 Protocol: 2 (0x2)
MMC: FSL_SDHC: 0, FSL_SDHC: 1
Loading Environment from MMC... *** Warning - bad CRC, using default environment
EEPROM: NXID v1
In: serial_pl01x
Out: serial_pl01x
Err: serial_pl01x
Net:
CS4223: Using software initialization...
CS4223: edc/gain/equalization settings: host: CX/4dB/4dB, line: SR/4dB/4dB
FSL_MDIO1:0 is connected to DPMAC5@25g-aui. Reconnecting to DPMAC6@25g-aui
PCIe0: pcie@3400000 disabled
PCIe1: pcie@3500000 disabled
PCIe2: pcie@3600000 Root Complex: no link
PCIe3: pcie@3700000 disabled
PCIe4: pcie@3800000 Root Complex: no link
PCIe5: pcie@3900000 disabled
DPMAC2@xlaui4, DPMAC3@xgmii, DPMAC4@xgmii, DPMAC5@25g-aui, DPMAC6@25g-aui, DPMAC17@rgmii-id, DPMAC18@rgmii-id
MMC read: dev # 0, block # 20480, count 4608 ... 4608 blocks read: OK
MMC read: dev # 0, block # 28672, count 2048 ... 2048 blocks read: OK
crc32+
fsl-mc: Booting Management Complex ... SUCCESS
fsl-mc: Management Complex booted (version: 10.20.4, boot status: 0x1)
But I used pci to scan device. The device existed actually.
And I found that the link status of the PCIe device was strange. It just looked like a gen 1 card.
Link Speed: 2.5 GT/s
Link width: x1
=> pci 2
Scanning PCI devices on bus 2
BusDevFun VendorId DeviceId Device Class Sub-Class
_____________________________________________________________
02.00.00 0x1957 0x8d80 Bridge device 0x04
=> pci display.b 02.00.00
00000000: 57 19 80 8d 06 00 10 00 20 00 04 06 08 00 01 00
00000010: 00 00 00 40 00 00 00 44 00 01 01 00 01 01 00 00
00000020: 00 49 f0 48 01 10 01 00 00 00 00 00 00 00 00 00
00000030: 00 00 00 00 40 00 00 00 00 00 00 48 ff 01 00 00
=> pci display.b 02.00.00 70
00000070: 10 b0 42 00 21 80 00 00 10 29 00 00 43 f4 73 00
00000080: 08 00 11 10 00 00 00 00 c0 03 40 00 00 00 00 00
00000090: 00 00 00 00 3f 04 00 00 00 00 00 00 0e 00 00 00
000000a0: 03 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
I measured the clock generator of PCIe on the board, and there was no clock on the output.
I switched SW2_3 to 1.
SW2_3 (SW_SLOTCLK)
0 : PCIE slots clocked only when card installed.
1 : PCIE slots clocked always.
And the clock is generated, but our EE said, it can only switch to gen 2.
Now, I can detect the PCIe card, but still, the link status is "Link Speed: 2.5 GT/s and Link width: x1"
PCIe0: pcie@3400000 disabled
PCIe1: pcie@3500000 disabled
PCIe2: pcie@3600000 Root Complex: no link
PCIe3: pcie@3700000 disabled
PCIe4: pcie@3800000 Root Complex: x8 gen3
PCIe5: pcie@3900000 disabled
DPMAC2@xlaui4, DPMAC3@xgmii, DPMAC4@xgmii, DPMAC5@25g-aui, DPMAC6@25g-aui, DPMAC17@rgmii-id, DPMAC18@rgmii-id
MMC read: dev # 0, block # 20480, count 4608 ... 4608 blocks read: OK
MMC read: dev # 0, block # 28672, count 2048 ... 2048 blocks read: OK
crc32+
fsl-mc: Booting Management Complex ... SUCCESS
fsl-mc: Management Complex booted (version: 10.20.4, boot status: 0x1)
Hit any key to stop autoboot: 0
=> pci display.b 02.00.00 70
00000070: 10 b0 42 00 21 80 00 00 10 29 00 00 43 f4 73 00
00000080: 08 00 11 10 00 00 00 00 c0 03 40 00 00 00 00 00
00000090: 00 00 00 00 3f 04 00 00 00 00 00 00 0e 00 00 00
000000a0: 03 00 01 00 00 00 00 00 00 00 00 00 00 00 00 00
When the PCIe card is detected, I try to boot into userspace, but SError is occured.
=> run bootcmd_mmc0
switch to partitions #0, OK
mmc0 is current device
Scanning mmc 0:1...
Scanning mmc 0:2...
Found U-Boot script /lx2160ardb_boot.scr
980 bytes read in 19 ms (49.8 KiB/s)
## Executing script at 80000000
36745728 bytes read in 1759 ms (19.9 MiB/s)
34033 bytes read in 19 ms (1.7 MiB/s)
## Flattened Device Tree blob at 90000000
Booting using the fdt blob at 0x90000000
Loading Device Tree to 000000009fff4000, end 000000009ffff4f0 ... OK
fsl-mc: DPL not deployed, DPAA2 ethernet not work
Starting kernel ...
[ 0.000000] Booting Linux on physical CPU 0x0000000000 [0x410fd083]
[ 0.000000] Linux version 5.4.3 (root@workspace) (gcc version 7.5.0 (Ubuntu/Linaro 7.5.0-3ubuntu1~18.04)) #1 SMP PREEMPT Mon Nov 9 08:46:39 CST 2020
[ 0.000000] Machine model: NXP Layerscape LX2160ARDB
[ 0.000000] earlycon: pl11 at MMIO32 0x00000000021c0000 (options '')
[ 0.000000] printk: bootconsole [pl11] enabled
[ 0.000000] efi: Getting EFI parameters from FDT:
[ 0.000000] efi: UEFI not found.
[ 0.000000] cma: Reserved 320 MiB at 0x00000000e7c00000
[ 0.000000] NUMA: No NUMA configuration found
[ 0.000000] NUMA: Faking a node at [mem 0x0000000080000000-0x000000277fffffff]
[ 0.000000] NUMA: NODE_DATA [mem 0x277c1dc800-0x277c1ddfff]
[ 0.000000] Zone ranges:
[ 0.000000] DMA32 [mem 0x0000000080000000-0x00000000ffffffff]
[ 0.000000] Normal [mem 0x0000000100000000-0x000000277fffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000080000000-0x00000000fbdfffff]
[ 0.000000] node 0: [mem 0x0000002080000000-0x000000277fffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000080000000-0x000000277fffffff]
[ 0.000000] psci: probing for conduit method from DT.
[ 0.000000] psci: PSCIv1.1 detected in firmware.
[ 0.000000] psci: Using standard PSCI v0.2 function IDs
[ 0.000000] psci: MIGRATE_INFO_TYPE not supported.
[ 0.000000] psci: SMC Calling Convention v1.1
[ 0.000000] percpu: Embedded 24 pages/cpu s59928 r8192 d30184 u98304
[ 0.000000] Detected PIPT I-cache on CPU0
[ 0.000000] CPU features: detected: GIC system register CPU interface
[ 0.000000] CPU features: detected: EL2 vector hardening
[ 0.000000] CPU features: kernel page table isolation forced ON by KASLR
[ 0.000000] CPU features: detected: Kernel page table isolation (KPTI)
[ 0.000000] Speculative Store Bypass Disable mitigation not required
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 7724544
[ 0.000000] Policy zone: Normal
[ 0.000000] Kernel command line: console=ttyAMA0,115200 earlycon=pl011,mmio32,0x21c0000 root=PARTUUID=071d27c6-04 rw rootwait pci=pcie_bus_perf
[ 0.000000] Dentry cache hash table entries: 4194304 (order: 13, 33554432 bytes, linear)
[ 0.000000] Inode-cache hash table entries: 2097152 (order: 12, 16777216 bytes, linear)
[ 0.000000] mem auto-init: stack:off, heap alloc:off, heap free:off
[ 0.000000] software IO TLB: mapped [mem 0xe3c00000-0xe7c00000] (64MB)
[ 0.000000] Memory: 30353236K/31389696K available (18620K kernel code, 2476K rwdata, 8848K rodata, 5888K init, 993K bss, 708780K reserved, 327680K cma-reserved)
[ 0.000000] rcu: Preemptible hierarchical RCU implementation.
[ 0.000000] Tasks RCU enabled.
[ 0.000000] rcu: RCU calculated value of scheduler-enlistment delay is 25 jiffies.
[ 0.000000] NR_IRQS: 64, nr_irqs: 64, preallocated irqs: 0
[ 0.000000] GICv3: GIC: Using split EOI/Deactivate mode
[ 0.000000] GICv3: 256 SPIs implemented
[ 0.000000] GICv3: 0 Extended SPIs implemented
[ 0.000000] GICv3: Distributor has no Range Selector support
[ 0.000000] GICv3: 16 PPIs implemented
[ 0.000000] GICv3: no VLPI support, no direct LPI support
[ 0.000000] GICv3: CPU0: found redistributor 0 region 0:0x0000000006200000
[ 0.000000] ITS [mem 0x06020000-0x0603ffff]
[ 0.000000] ITS@0x0000000006020000: allocated 65536 Devices @275a880000 (flat, esz 8, psz 64K, shr 0)
[ 0.000000] ITS: using cache flushing for cmd queue
[ 0.000000] GICv3: Using preallocated redistributor tables
[ 0.000000] GICv3: using LPI property table @0x000000277fe00000
[ 0.000000] GICv3: CPU0: using reserved LPI pending table @0x000000277fe10000
[ 0.000000] random: get_random_bytes called from start_kernel+0x2b8/0x458 with crng_init=0
[ 0.000000] arch_timer: cp15 timer(s) running at 25.00MHz (phys).
[ 0.000000] clocksource: arch_sys_counter: mask: 0xffffffffffffff max_cycles: 0x5c409fb33, max_idle_ns: 440795203156 ns
[ 0.000001] sched_clock: 56 bits at 25MHz, resolution 39ns, wraps every 4398046511103ns
[ 0.008411] Console: colour dummy device 80x25
[ 0.012942] Calibrating delay loop (skipped), value calculated using timer frequency.. 50.00 BogoMIPS (lpj=100000)
[ 0.023409] pid_max: default: 32768 minimum: 301
[ 0.028151] LSM: Security Framework initializing
[ 0.032944] Mount-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.040686] Mountpoint-cache hash table entries: 65536 (order: 7, 524288 bytes, linear)
[ 0.072817] ASID allocator initialised with 32768 entries
[ 0.086283] rcu: Hierarchical SRCU implementation.
[ 0.099158] Platform MSI: gic-its@6020000 domain created
[ 0.104568] PCI/MSI: /interrupt-controller@6000000/gic-its@6020000 domain created
[ 0.112158] fsl-mc MSI: /interrupt-controller@6000000/gic-its@6020000 domain created
[ 0.120398] EFI services will not be available.
[ 0.132983] smp: Bringing up secondary CPUs ...
[ 0.169700] Detected PIPT I-cache on CPU1
[ 0.169716] GICv3: CPU1: found redistributor 1 region 0:0x0000000006220000
[ 0.169728] GICv3: CPU1: using reserved LPI pending table @0x000000277fe20000
[ 0.169846] CPU1: Booted secondary processor 0x0000000001 [0x410fd083]
[ 0.201716] Detected PIPT I-cache on CPU2
[ 0.201731] GICv3: CPU2: found redistributor 100 region 0:0x0000000006240000
[ 0.201744] GICv3: CPU2: using reserved LPI pending table @0x000000277fe30000
[ 0.201860] CPU2: Booted secondary processor 0x0000000100 [0x410fd083]
[ 0.233737] Detected PIPT I-cache on CPU3
[ 0.233748] GICv3: CPU3: found redistributor 101 region 0:0x0000000006260000
[ 0.233758] GICv3: CPU3: using reserved LPI pending table @0x000000277fe40000
[ 0.233871] CPU3: Booted secondary processor 0x0000000101 [0x410fd083]
[ 0.265769] Detected PIPT I-cache on CPU4
[ 0.265783] GICv3: CPU4: found redistributor 200 region 0:0x0000000006280000
[ 0.265795] GICv3: CPU4: using reserved LPI pending table @0x000000277fe50000
[ 0.265911] CPU4: Booted secondary processor 0x0000000200 [0x410fd083]
[ 0.297791] Detected PIPT I-cache on CPU5
[ 0.297803] GICv3: CPU5: found redistributor 201 region 0:0x00000000062a0000
[ 0.297813] GICv3: CPU5: using reserved LPI pending table @0x000000277fe60000
[ 0.297926] CPU5: Booted secondary processor 0x0000000201 [0x410fd083]
[ 0.329823] Detected PIPT I-cache on CPU6
[ 0.329839] GICv3: CPU6: found redistributor 300 region 0:0x00000000062c0000
[ 0.329852] GICv3: CPU6: using reserved LPI pending table @0x000000277fe70000
[ 0.329968] CPU6: Booted secondary processor 0x0000000300 [0x410fd083]
[ 0.361847] Detected PIPT I-cache on CPU7
[ 0.361861] GICv3: CPU7: found redistributor 301 region 0:0x00000000062e0000
[ 0.361871] GICv3: CPU7: using reserved LPI pending table @0x000000277fe80000
[ 0.361982] CPU7: Booted secondary processor 0x0000000301 [0x410fd083]
[ 0.393879] Detected PIPT I-cache on CPU8
[ 0.393897] GICv3: CPU8: found redistributor 400 region 0:0x0000000006300000
[ 0.393909] GICv3: CPU8: using reserved LPI pending table @0x000000277fe90000
[ 0.394026] CPU8: Booted secondary processor 0x0000000400 [0x410fd083]
[ 0.425902] Detected PIPT I-cache on CPU9
[ 0.425918] GICv3: CPU9: found redistributor 401 region 0:0x0000000006320000
[ 0.425928] GICv3: CPU9: using reserved LPI pending table @0x000000277fea0000
[ 0.426041] CPU9: Booted secondary processor 0x0000000401 [0x410fd083]
[ 0.457944] Detected PIPT I-cache on CPU10
[ 0.457963] GICv3: CPU10: found redistributor 500 region 0:0x0000000006340000
[ 0.457976] GICv3: CPU10: using reserved LPI pending table @0x000000277feb0000
[ 0.458093] CPU10: Booted secondary processor 0x0000000500 [0x410fd083]
[ 0.489959] Detected PIPT I-cache on CPU11
[ 0.489976] GICv3: CPU11: found redistributor 501 region 0:0x0000000006360000
[ 0.489986] GICv3: CPU11: using reserved LPI pending table @0x000000277fec0000
[ 0.490097] CPU11: Booted secondary processor 0x0000000501 [0x410fd083]
[ 0.521991] Detected PIPT I-cache on CPU12
[ 0.522012] GICv3: CPU12: found redistributor 600 region 0:0x0000000006380000
[ 0.522025] GICv3: CPU12: using reserved LPI pending table @0x000000277fed0000
[ 0.522141] CPU12: Booted secondary processor 0x0000000600 [0x410fd083]
[ 0.554014] Detected PIPT I-cache on CPU13
[ 0.554032] GICv3: CPU13: found redistributor 601 region 0:0x00000000063a0000
[ 0.554043] GICv3: CPU13: using reserved LPI pending table @0x000000277fee0000
[ 0.554157] CPU13: Booted secondary processor 0x0000000601 [0x410fd083]
[ 0.586047] Detected PIPT I-cache on CPU14
[ 0.586070] GICv3: CPU14: found redistributor 700 region 0:0x00000000063c0000
[ 0.586083] GICv3: CPU14: using reserved LPI pending table @0x000000277fef0000
[ 0.586201] CPU14: Booted secondary processor 0x0000000700 [0x410fd083]
[ 0.618069] Detected PIPT I-cache on CPU15
[ 0.618088] GICv3: CPU15: found redistributor 701 region 0:0x00000000063e0000
[ 0.618099] GICv3: CPU15: using reserved LPI pending table @0x000000277ff00000
[ 0.618210] CPU15: Booted secondary processor 0x0000000701 [0x410fd083]
[ 0.618249] smp: Brought up 1 node, 16 CPUs
[ 0.998995] SMP: Total of 16 processors activated.
[ 1.003867] CPU features: detected: 32-bit EL0 Support
[ 1.009068] CPU features: detected: CRC32 instructions
[ 1.025867] CPU: All CPU(s) started at EL2
[ 1.030033] alternatives: patching kernel code
[ 1.035240] devtmpfs: initialized
[ 1.040922] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 7645041785100000 ns
[ 1.050780] futex hash table entries: 4096 (order: 6, 262144 bytes, linear)
[ 1.060367] xor: measuring software checksum speed
[ 1.105238] 8regs : 8458.000 MB/sec
[ 1.149479] 32regs : 8633.000 MB/sec
[ 1.193721] arm64_neon: 8465.000 MB/sec
[ 1.197944] xor: using function: 32regs (8633.000 MB/sec)
[ 1.203405] pinctrl core: initialized pinctrl subsystem
[ 1.209111] DMI not present or invalid.
[ 1.213143] NET: Registered protocol family 16
[ 1.218232] DMA: preallocated 256 KiB pool for atomic allocations
[ 1.224396] audit: initializing netlink subsys (disabled)
[ 1.229925] audit: type=2000 audit(1.028:1): state=initialized audit_enabled=0 res=1
[ 1.237766] cpuidle: using governor menu
[ 1.241880] hw-breakpoint: found 6 breakpoint and 4 watchpoint registers.
[ 1.249297] Serial: AMBA PL011 UART driver
[ 1.253475] imx mu driver is registered.
[ 1.257444] imx rpmsg driver is registered.
[ 1.262523] Machine: NXP Layerscape LX2160ARDB
[ 1.267012] SoC family: QorIQ LX2160A
[ 1.270706] SoC ID: svr:0x87360020, Revision: 2.0
[ 1.276578] 21c0000.serial: ttyAMA0 at MMIO 0x21c0000 (irq = 20, base_baud = 0) is a SBSA
[ 1.284851] printk: console [ttyAMA0] enabled
[ 1.284851] printk: console [ttyAMA0] enabled
[ 1.293593] printk: bootconsole [pl11] disabled
[ 1.293593] printk: bootconsole [pl11] disabled
[ 1.302934] sbsa-uart 21d0000.serial: aliased and non-aliased serial devices found in device tree. Serial port enumeration may be unpredictable.
[ 1.315879] 21d0000.serial: ttyAMA1 at MMIO 0x21d0000 (irq = 21, base_baud = 0) is a SBSA
[ 1.333961] HugeTLB registered 1.00 GiB page size, pre-allocated 0 pages
[ 1.340659] HugeTLB registered 32.0 MiB page size, pre-allocated 0 pages
[ 1.347349] HugeTLB registered 2.00 MiB page size, pre-allocated 0 pages
[ 1.354040] HugeTLB registered 64.0 KiB page size, pre-allocated 0 pages
[ 1.362023] cryptd: max_cpu_qlen set to 1000
[ 1.434324] raid6: neonx8 gen() 4865 MB/s
[ 1.506359] raid6: neonx8 xor() 4163 MB/s
[ 1.578403] raid6: neonx4 gen() 4007 MB/s
[ 1.650425] raid6: neonx4 xor() 3865 MB/s
[ 1.722462] raid6: neonx2 gen() 3202 MB/s
[ 1.794491] raid6: neonx2 xor() 3646 MB/s
[ 1.866531] raid6: neonx1 gen() 2454 MB/s
[ 1.938556] raid6: neonx1 xor() 2744 MB/s
[ 2.010600] raid6: int64x8 gen() 2171 MB/s
[ 2.082639] raid6: int64x8 xor() 1791 MB/s
[ 2.154936] raid6: int64x4 gen() 2529 MB/s
[ 2.227238] raid6: int64x4 xor() 1809 MB/s
[ 2.299570] raid6: int64x2 gen() 1683 MB/s
[ 2.371876] raid6: int64x2 xor() 1635 MB/s
[ 2.444184] raid6: int64x1 gen() 1229 MB/s
[ 2.516494] raid6: int64x1 xor() 1105 MB/s
[ 2.520754] raid6: using algorithm neonx8 gen() 4865 MB/s
[ 2.526142] raid6: .... xor() 4163 MB/s, rmw enabled
[ 2.531095] raid6: using neon recovery algorithm
[ 2.535919] ACPI: Interpreter disabled.
[ 2.540305] iommu: Default domain type: Passthrough
[ 2.545325] vgaarb: loaded
[ 2.548163] SCSI subsystem initialized
[ 2.552058] usbcore: registered new interface driver usbfs
[ 2.557550] usbcore: registered new interface driver hub
[ 2.562896] usbcore: registered new device driver usb
[ 2.568117] imx-i2c 2000000.i2c: can't get pinctrl, bus recovery not supported
[ 2.575411] i2c i2c-0: IMX I2C adapter registered
[ 2.580179] imx-i2c 2040000.i2c: can't get pinctrl, bus recovery not supported
[ 2.587455] i2c i2c-1: IMX I2C adapter registered
[ 2.592332] mc: Linux media interface: v0.10
[ 2.596604] videodev: Linux video capture interface: v2.00
[ 2.602106] pps_core: LinuxPPS API ver. 1 registered
[ 2.607061] pps_core: Software ver. 5.3.6 - Copyright 2005-2007 Rodolfo Giometti <giometti@linux.it>
[ 2.616186] PTP clock support registered
[ 2.620134] EDAC MC: Ver: 3.0.0
[ 2.623639] No BMan portals available!
[ 2.627531] QMan: Allocated lookup table at (____ptrval____), entry count 65537
[ 2.634902] No QMan portals available!
[ 2.638735] No USDPAA memory, no 'fsl,usdpaa-mem' in device-tree
[ 2.644907] FPGA manager framework
[ 2.648332] Advanced Linux Sound Architecture Driver Initialized.
[ 2.654835] clocksource: Switched to clocksource arch_sys_counter
[ 2.661007] VFS: Disk quotas dquot_6.6.0
[ 2.664954] VFS: Dquot-cache hash table entries: 512 (order 0, 4096 bytes)
[ 2.671894] pnp: PnP ACPI: disabled
[ 2.677973] thermal_sys: Registered thermal governor 'step_wise'
[ 2.677975] thermal_sys: Registered thermal governor 'power_allocator'
[ 2.684391] NET: Registered protocol family 2
[ 2.695459] tcp_listen_portaddr_hash hash table entries: 16384 (order: 6, 262144 bytes, linear)
[ 2.704315] TCP established hash table entries: 262144 (order: 9, 2097152 bytes, linear)
[ 2.713191] TCP bind hash table entries: 65536 (order: 8, 1048576 bytes, linear)
[ 2.720978] TCP: Hash tables configured (established 262144 bind 65536)
[ 2.727660] UDP hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 2.734835] UDP-Lite hash table entries: 16384 (order: 7, 524288 bytes, linear)
[ 2.742567] NET: Registered protocol family 1
[ 2.747111] RPC: Registered named UNIX socket transport module.
[ 2.753025] RPC: Registered udp transport module.
[ 2.757719] RPC: Registered tcp transport module.
[ 2.762412] RPC: Registered tcp NFSv4.1 backchannel transport module.
[ 2.768845] PCI: CLS 0 bytes, default 64
[ 2.773498] hw perfevents: enabled with armv8_cortex_a72 PMU driver, 7 counters available
[ 2.781768] kvm [1]: IPA Size Limit: 44bits
[ 2.786297] kvm [1]: vgic-v2@c0e0000
[ 2.789876] kvm [1]: GIC system register CPU interface enabled
[ 2.795863] kvm [1]: vgic interrupt IRQ1
[ 2.799946] kvm [1]: Hyp mode initialized successfully
[ 2.808581] Initialise system trusted keyrings
[ 2.813081] workingset: timestamp_bits=44 max_order=23 bucket_order=0
[ 2.819959] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 2.825946] NFS: Registering the id_resolver key type
[ 2.831000] Key type id_resolver registered
[ 2.835174] Key type id_legacy registered
[ 2.839177] nfs4filelayout_init: NFSv4 File Layout Driver Registering...
[ 2.845877] jffs2: version 2.2. (NAND) c 2001-2006 Red Hat, Inc.
[ 2.852059] fuse: init (API version 7.31)
[ 2.856150] 9p: Installing v9fs 9p2000 file system support
[ 2.868634] Key type asymmetric registered
[ 2.872724] Asymmetric key parser 'x509' registered
[ 2.877603] Block layer SCSI generic (bsg) driver version 0.4 loaded (major 243)
[ 2.885055] io scheduler mq-deadline registered
[ 2.889579] io scheduler kyber registered
[ 2.896741] layerscape-pcie 3600000.pcie: host bridge /soc/pcie@3600000 ranges:
[ 2.904052] layerscape-pcie 3600000.pcie: MEM 0x9040000000..0x907fffffff -> 0x40000000
[ 2.912211] layerscape-pcie 3600000.pcie: PCI host bridge to bus 0000:00
[ 2.918905] pci_bus 0000:00: root bus resource [bus 00-ff]
[ 2.924382] pci_bus 0000:00: root bus resource [mem 0x9040000000-0x907fffffff] (bus address [0x40000000-0x7fffffff])
[ 2.934905] pci 0000:00:00.0: [1957:8d80] type 01 class 0x060400
[ 2.940918] pci 0000:00:00.0: reg 0x10: [mem 0x00000000-0x00ffffff]
[ 2.947180] pci 0000:00:00.0: reg 0x14: [mem 0x00000000-0x03ffffff]
[ 2.953441] pci 0000:00:00.0: reg 0x38: [mem 0x9048000000-0x9048ffffff pref]
[ 2.960525] pci 0000:00:00.0: supports D1 D2
[ 2.964786] pci 0000:00:00.0: PME# supported from D0 D1 D2 D3hot
[ 2.971881] pci 0000:00:00.0: BAR 1: assigned [mem 0x9040000000-0x9043ffffff]
[ 2.979010] pci 0000:00:00.0: BAR 0: assigned [mem 0x9044000000-0x9044ffffff]
[ 2.986137] pci 0000:00:00.0: BAR 6: assigned [mem 0x9045000000-0x9045ffffff pref]
[ 2.993697] pci 0000:00:00.0: PCI bridge to [bus 01-ff]
[ 2.998926] pci 0000:00:00.0: Max Payload Size set to 256/ 256 (was 128), Max Read Rq 256
[ 3.007430] layerscape-pcie 3800000.pcie: host bridge /soc/pcie@3800000 ranges:
[ 3.014737] layerscape-pcie 3800000.pcie: MEM 0xa040000000..0xa07fffffff -> 0x40000000
[ 3.022897] layerscape-pcie 3800000.pcie: PCI host bridge to bus 0001:00
[ 3.029590] pci_bus 0001:00: root bus resource [bus 00-ff]
[ 3.035067] pci_bus 0001:00: root bus resource [mem 0xa040000000-0xa07fffffff] (bus address [0x40000000-0x7fffffff])
[ 3.045588] pci 0001:00:00.0: [1957:8d80] type 01 class 0x060400
[ 3.051598] pci 0001:00:00.0: reg 0x10: [mem 0x00000000-0x00ffffff]
[ 3.057860] pci 0001:00:00.0: reg 0x14: [mem 0x00000000-0x03ffffff]
[ 3.064121] pci 0001:00:00.0: reg 0x38: [mem 0xa048000000-0xa048ffffff pref]
[ 3.071205] pci 0001:00:00.0: supports D1 D2
[ 3.075466] pci 0001:00:00.0: PME# supported from D0 D1 D2 D3hot
[ 3.082170] pci 0001:01:00.0: [10b5:8724] type 01 class 0x060400
[ 3.088488] pci 0001:01:00.0: reg 0x10: [mem 0xa049000000-0xa04903ffff]
[ 3.096352] pci 0001:01:00.0: PME# supported from D0 D3hot D3cold
[ 3.104185] SError Interrupt on CPU0, code 0xbf000002 -- SError
[ 3.104186] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.3 #1
[ 3.104187] Hardware name: NXP Layerscape LX2160ARDB (DT)
[ 3.104188] pstate: 60000085 (nZCv daIf -PAN -UAO)
[ 3.104189] pc : dw_pcie_read+0x80/0xa0
[ 3.104189] lr : dw_pcie_access_other_conf.isra.16+0xd0/0xe8
[ 3.104190] sp : ffff80001009b660
[ 3.104190] x29: ffff80001009b660 x28: ffff80001009b954
[ 3.104192] x27: ffff0026d9121800 x26: 0000000000000000
[ 3.104194] x25: ffff80001003d800 x24: 0000000000000000
[ 3.104195] x23: ffff80001009b754 x22: 0000000000000004
[ 3.104197] x21: ffff0026d9111480 x20: 0000000000000000
[ 3.104198] x19: ffff0026d91114a8 x18: ffffffffffffffff
[ 3.104200] x17: 000000006d32ea7b x16: 00000000f9c7e68a
[ 3.104201] x15: ffffd65d7d729908 x14: ffff0026d912491c
[ 3.104203] x13: ffff0026d91241a4 x12: 0000000000000038
[ 3.104204] x11: 0000000000000004 x10: 0101010101010101
[ 3.104206] x9 : 00000000872410b5 x8 : 0000000000000908
[ 3.104207] x7 : 0000000000000908 x6 : ffff800010f00000
[ 3.104208] x5 : 0000000000000000 x4 : ffff0026d9111480
[ 3.104210] x3 : 0000000000000003 x2 : ffff80001009b754
[ 3.104211] x1 : 0000000000000000 x0 : ffff80001003d800
[ 3.104213] Kernel panic - not syncing: Asynchronous SError Interrupt
[ 3.104214] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 5.4.3 #1
[ 3.104214] Hardware name: NXP Layerscape LX2160ARDB (DT)
[ 3.104215] Call trace:
[ 3.104216] dump_backtrace+0x0/0x150
[ 3.104216] show_stack+0x14/0x20
[ 3.104217] dump_stack+0xbc/0x100
[ 3.104217] panic+0x16c/0x37c
[ 3.104218] __stack_chk_fail+0x0/0x18
[ 3.104219] arm64_serror_panic+0x74/0x88
[ 3.104219] do_serror+0x70/0x138
[ 3.104220] el1_error+0x84/0xf8
[ 3.104220] dw_pcie_read+0x80/0xa0
[ 3.104221] dw_pcie_rd_conf+0x120/0x128
[ 3.104222] pci_bus_read_config_dword+0x84/0xe0
[ 3.104222] pci_bus_generic_read_dev_vendor_id+0x2c/0x1a0
[ 3.104223] pci_bus_read_dev_vendor_id+0x48/0x68
[ 3.104223] pci_scan_single_device+0x78/0xf8
[ 3.104224] pci_scan_slot+0x34/0x128
[ 3.104225] pci_scan_child_bus_extend+0x50/0x290
[ 3.104225] pci_scan_child_bus+0x10/0x18
[ 3.104226] pci_scan_bridge_extend+0x228/0x560
[ 3.104227] pci_scan_child_bus_extend+0x12c/0x290
[ 3.104227] pci_scan_child_bus+0x10/0x18
[ 3.104228] pci_scan_bridge_extend+0x228/0x560
[ 3.104228] pci_scan_child_bus_extend+0x12c/0x290
[ 3.104229] pci_scan_root_bus_bridge+0x58/0xe8
[ 3.104230] dw_pcie_host_init+0x2fc/0x5e8
[ 3.104230] ls_pcie_probe+0x100/0x134
[ 3.104231] platform_drv_probe+0x50/0xa0
[ 3.104231] really_probe+0x108/0x348
[ 3.104232] driver_probe_device+0x58/0x100
[ 3.104232] device_driver_attach+0x6c/0x90
[ 3.104233] __driver_attach+0x84/0xc8
[ 3.104233] bus_for_each_dev+0x74/0xc8
[ 3.104234] driver_attach+0x20/0x28
[ 3.104235] bus_add_driver+0x148/0x1f0
[ 3.104235] driver_register+0x60/0x110
[ 3.104236] __platform_driver_probe+0x74/0x130
[ 3.104236] ls_pcie_driver_init+0x20/0x28
[ 3.104237] do_one_initcall+0x5c/0x1b0
[ 3.104237] kernel_init_freeable+0x1a4/0x24c
[ 3.104238] kernel_init+0x10/0x108
[ 3.104238] ret_from_fork+0x10/0x18
[ 3.104260] SMP: stopping secondary CPUs
[ 3.104261] Kernel Offset: 0x565d6b600000 from 0xffff800010000000
[ 3.104262] PHYS_OFFSET: 0xffff938f40000000
[ 3.104262] CPU features: 0x0002,21806008
[ 3.104263] Memory Limit: none
I can't boot into userspace when the PCIe card is detected. (Both link speed and link width are incorrect)
Is there any advise? Thanks.