Closed pbrueckner closed 7 months ago
The firmware doesn't get involved in PCIe enumeration or setup so moving this to Linux repo
Is this a duplicate of this forum thread (https://forums.raspberrypi.com/viewtopic.php?t=365809) or just coincidental?
Which is itself duplicated in https://github.com/raspberrypi/linux/issues/5352
So, which two threads get closed?
I've nothing against this post in itself (or the poster), but #5352 was here first and has more invested in it.
Describe the bug A combination of CM4 with a baseboard containing Pericom Semiconductor Device b304 (Pcie-Switch) and an pcie-card behind it fails to boot. Just after loading and executing start4 (or start4cd) and before the first kernel message the system hangs often but not always.
To reproduce Connect CM4 with PCIe-Switch and an PCIe-Slave card and try to boot. We have switched on uart and debugging for firmware. enable_uart=1 start_debug=1 uart_2ndstage=1
Expected behaviour System shall start in all trys.
Actual behaviour Boots 50%- the other cases it stops just before kernel message.
System
Logs Complete Boot msg from uart:
cat /boot/firmware/config.txt
lspci -tv -[0000:00]---00.0-[01-05]----00.0-[02-05]--+-01.0-[03-04]----00.0-[04]----04.0 PLX Technology, Inc. PCI9056 32-bit 66MHz PCI <-> IOBus Bridge -02.0-[05]--
lspci -v 00:00.0 PCI bridge: Broadcom Inc. and subsidiaries BCM2711 PCIe Bridge (rev 20) (prog-if 00 [Normal decode]) Device tree node: /sys/firmware/devicetree/base/scb/pcie@7d500000/pci@0,0 Flags: bus master, fast devsel, latency 0, IRQ 30 Bus: primary=00, secondary=01, subordinate=05, sec-latency=0 Memory behind bridge: 00000000-000fffff [size=1M] [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: [48] Power Management version 3 Capabilities: [ac] Express Root Port (Slot-), MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [180] Vendor Specific Information: ID=0000 Rev=0 Len=028 <?> Capabilities: [240] L1 PM Substates Kernel driver in use: pcieport
01:00.0 PCI bridge: Pericom Semiconductor Device b304 (rev 01) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 31 Bus: primary=01, secondary=02, subordinate=05, sec-latency=0 I/O behind bridge: [disabled] [32-bit] Memory behind bridge: 00000000-000fffff [size=1M] [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: [40] Power Management version 3 Capabilities: [4c] MSI: Enable+ Count=1/4 Maskable+ 64bit+ Capabilities: [64] Vendor Specific Information: Len=34 <?> Capabilities: [b0] Subsystem: Device 0000:0000 Capabilities: [c0] Express Upstream Port, MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Virtual Channel Capabilities: [20c] Power Budgeting <?> Capabilities: [230] Latency Tolerance Reporting Capabilities: [240] L1 PM Substates Capabilities: [260] Precision Time Measurement Kernel driver in use: pcieport
02:01.0 PCI bridge: Pericom Semiconductor Device b304 (rev 01) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0 Bus: primary=02, secondary=03, subordinate=04, sec-latency=0 I/O behind bridge: [disabled] [32-bit] Memory behind bridge: 00000000-000fffff [size=1M] [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: [40] Power Management version 3 Capabilities: [4c] MSI: Enable- Count=1/4 Maskable+ 64bit+ Capabilities: [64] Vendor Specific Information: Len=34 <?> Capabilities: [b0] Subsystem: Device 0000:0000 Capabilities: [c0] Express Downstream Port (Slot+), MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Virtual Channel Capabilities: [20c] Power Budgeting <?> Capabilities: [220] Access Control Services Capabilities: [240] L1 PM Substates Capabilities: [250] Downstream Port Containment
02:02.0 PCI bridge: Pericom Semiconductor Device b304 (rev 01) (prog-if 00 [Normal decode]) Flags: fast devsel Bus: primary=02, secondary=05, subordinate=05, sec-latency=0 I/O behind bridge: [disabled] [32-bit] Memory behind bridge: [disabled] [32-bit] Prefetchable memory behind bridge: [disabled] [64-bit] Capabilities: [40] Power Management version 3 Capabilities: [4c] MSI: Enable- Count=1/4 Maskable+ 64bit+ Capabilities: [64] Vendor Specific Information: Len=34 <?> Capabilities: [b0] Subsystem: Device 0000:0000 Capabilities: [c0] Express Downstream Port (Slot+), MSI 00 Capabilities: [100] Advanced Error Reporting Capabilities: [140] Virtual Channel Capabilities: [20c] Power Budgeting <?> Capabilities: [220] Access Control Services Capabilities: [240] L1 PM Substates Capabilities: [250] Downstream Port Containment
03:00.0 PCI bridge: PLX Technology, Inc. PEX 8111 PCI Express-to-PCI Bridge (rev 21) (prog-if 00 [Normal decode]) Flags: bus master, fast devsel, latency 0, IRQ 32 Bus: primary=03, secondary=04, subordinate=04, sec-latency=0 I/O behind bridge: [disabled] [16-bit] Memory behind bridge: 00000000-000fffff [size=1M] [32-bit] Prefetchable memory behind bridge: [disabled] [32-bit] Capabilities: [40] Power Management version 2 Capabilities: [50] MSI: Enable- Count=1/1 Maskable- 64bit+ Capabilities: [60] Express PCI-Express to PCI/PCI-X Bridge, MSI 00 Capabilities: [100] Power Budgeting <?>
04:04.0 Bridge: PLX Technology, Inc. PCI9056 32-bit 66MHz PCI <-> IOBus Bridge Subsystem: DResearch Digital Media Systems GmbH PCI9056 32-bit 66MHz PCI <-> IOBus Bridge Flags: bus master, 66MHz, medium devsel, latency 64, IRQ 32 Memory at 600000000 (32-bit, non-prefetchable) [size=512] Memory at 600000200 (32-bit, non-prefetchable) [size=256] Memory at 600000300 (32-bit, non-prefetchable) [size=16] Expansion ROM at
Capabilities: [40] Power Management version 0
Capabilities: [48] CompactPCI hot-swap <?>
Capabilities: [4c] Vital Product Data
Kernel driver in use: xadio
...