radxa-build / radxa-cm5-rpi-cm4-io

Radxa CM5 with Raspberry Pi Compute Module 4 IO Board
https://radxa-build.github.io/radxa-cm5-rpi-cm4-io/
0 stars 0 forks source link

Issue booting with PCIE SATA switches (ASMedia ASM1184e) #2

Open Archfx opened 1 week ago

Archfx commented 1 week ago

Is the latest image tested with PCIe switches?

My CM5 boots with no issues on the RPI-CM4 carrier board. However, does not boot on a NAS board that has "ASMedia ASM1184e" PCIE SATA switch. The blue LED is always stuck in weak solid mode.

These are the DMSEG when the board is booted on RPI-CM4 board.

[    4.188914] reg-fixed-voltage vcc3v3-pcie2x1l0: Looking up vin-supply from device tree

[    4.188917] vcc3v3_pcie2x1l0: supplied by vcc5v0_sys

[    4.246665] vcc3v3_pcie2x1l0: 3300 mV, enabled

[    4.246733] reg-fixed-voltage vcc3v3-pcie2x1l0: vcc3v3_pcie2x1l0 supplying 3300000uV

[    4.821900] rk-pcie fe190000.pcie: invalid prsnt-gpios property in node

[    4.821911] rk-pcie fe190000.pcie: Looking up vpcie3v3-supply from device tree

[    4.822445] rk-pcie fe190000.pcie: missing legacy IRQ resource

[    4.822461] rk-pcie fe190000.pcie: IRQ msi not found

[    4.822496] rk-pcie fe190000.pcie: use outband MSI support

[    4.822503] rk-pcie fe190000.pcie: Missing *config* reg space

[    4.822528] rk-pcie fe190000.pcie: host bridge /pcie@fe190000 ranges:

[    4.822552] rk-pcie fe190000.pcie:      err 0x00f4000000..0x00f40fffff -> 0x00f4000000

[    4.822576] rk-pcie fe190000.pcie:       IO 0x00f4100000..0x00f41fffff -> 0x00f4100000

[    4.822597] rk-pcie fe190000.pcie:      MEM 0x00f4200000..0x00f4ffffff -> 0x00f4200000

[    4.822610] rk-pcie fe190000.pcie:      MEM 0x0a00000000..0x0a3fffffff -> 0x0a00000000

[    4.822639] rk-pcie fe190000.pcie: Missing *config* reg space

[    4.822679] rk-pcie fe190000.pcie: invalid resource

[    5.027583] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.047417] ehci-pci: EHCI PCI platform driver

[    5.053116] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.079780] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.106441] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.133098] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.159790] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.186550] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.197037] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up pcie-supply from device tree

[    5.197046] rockchip-pm-domain fd8d8000.power-management:power-controller: Looking up pcie-supply property in node /power-management@fd8d8000/power-controller failed

[    5.213287] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.239947] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    5.266600] rk-pcie fe190000.pcie: PCIe Linking... LTSSM is 0x3

[    7.753096] rk-pcie fe190000.pcie: PCIe Link Fail

[    7.753122] rk-pcie fe190000.pcie: failed to initialize host

This issue was there in the RPI kernel as well. Adding a delay into the BCM2711 driver fixed the RPI CM4 issue.

However, I tried compiling my kernel with the above changes using bsp, but stil the issue is there.

Any pointer?

Archfx commented 5 days ago

If it helps, the schematic of the NAS Board can be found here