Open berndbenner opened 1 week ago
0000:01:00.0 PCI bridge: ASMedia Technology Inc. ASM1184e 4-Port PCIe x1 Gen2 Packet Switch (prog-if 00 [Normal decode])
[...]
Capabilities: [200 v1] Advanced Error Reporting
UESta: DLP- SDES- TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UEMsk: DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
CESta: RxErr+ BadTLP+ BadDLLP+ Rollover- Timeout- AdvNonFatalErr-
CEMsk: RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
AERCap: First Error Pointer: 0d, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
HeaderLog: 05000001 0000000f 02280010 00000000
[...]
If I interpreted the HeaderLog bits correctly, HeaderLog indicates an issue with a 4DW memory transaction initiated by a device on Bus 0, Device 0, Function 1 (address in bytes 3 & 4).
Did you already tried the pcie quirks provided by overlays like pciex1-compat-pi5
? Most of the PCIe switches I know require at least some special treatment ...
Describe the bug
I am using a PCIe switch PCIe x1 to 4 x PCIe x1 successfully on the cm4 to access more than one PCIe board. Now I try to migrate to RPI-5 with a M2-HAT and a DELOCK 62584 Adapter M.2 NGFF Key M -> PCIe x4 Slot.
If I insert a PCIe board with a M2 SSD or a PCIe Networkadapter directly into the PCIe Slot on the DELOCK board, all is working fine.
But if I insert the PCIe x1 to 4 x PCIe x1 bridge with ASM1184e switch. lspci will report the 4 ASM1184e Switch Ports, but I cannot "see" any PCIe resources behind the Switch Ports.
detailed lspci -vv output
Im using the latest stable kernel ( 6.6.51+rpt-rpi-2712 ) - stable_20241008. If I setup the Kernel for RPI4/CM4 and run the kernel on a CM4 with the same PCIe x1 to 4 x PCIe x1 bridge, it works fine. I have also tried with cmdline parameter "pcie_aspm=off", but the kernel will not start and the raspi is switched off on start with this parameter.
I have seen HAT-Boards with the ASM switch and 2 M2-slots and I have read that the RPI5 is able to boot from a NVME ssd behind a ASM switch, so I cannot unterstand why I cannot see the PCIe-devices behind the ASM-switch.
Steps to reproduce the behaviour
Insert a ASM1184e (1 ->4 PCIe) switch on the RPI-5 PCIe-Port.
Device (s)
Raspberry Pi 5
System
Debian GNU/Linux 12
Logs
output of journalctl -b -k
boot.log
Additional context
No response