[Bug 277605] FreeBSD 14-Release crashes on the RPI CM4 with PCIE to PCI bridge
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277605] FreeBSD 14-Release crashes on the RPI CM4 with PCIE to PCI bridge"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 277605] FreeBSD 14-Release crashes on the RPI CM4 with PCIE to PCI bridge"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sat, 09 Mar 2024 22:11:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=277605 Bug ID: 277605 Summary: FreeBSD 14-Release crashes on the RPI CM4 with PCIE to PCI bridge Product: Base System Version: 14.0-RELEASE Hardware: arm64 OS: Any Status: New Severity: Affects Some People Priority: --- Component: kern Assignee: bugs@FreeBSD.org Reporter: hp@tmm.cx Created attachment 249060 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=249060&action=edit Screenshot of the crash (captured over HDMI, slightly difficult to read) Hello, I have the following setup: * Raspberry Pi I/O board with a Compute Module 4 * The PCIe Slot has a PCIe to PCI bridge (ASMedia ASM1083) * PCI card in a slot connected to the bridge At first I just wrote FreeBSD 14-Release (aarch64-RPI) to the internal eMMC but this didn't boot at all. I then replaced the dtb files with the ones from the Raspberry Pi foundation, then I managed to boot into FreeBSD14, but got a crash. I got around this crash by adding devmatch_enable="NO" to rc.conf. I made some further edits to the config.txt to enable USB to work, enabling otg_mode=1. At this point the RPI CM4 boots into FreeBSD 14 and everything appears to work. I then added a PCI card to the bridge, at which point u-boot failed. I then rebuilt u-boot from git master, and installed that. Which allowed FreeBSD itself to boot. However, with the ASM1083 connected to the PCIe bus, even with no PCI card attached, the system crashes with the following: pcib0: <BCM2838-compatible PCI-express controller> mem 0x7d500000-0x7d50930f irq 00.01 on simplebus2 pcib0: hardware identifies as revision 0x384. pci0: <OFW PCI bus> on pcib0 pcib1: <PCI-PCI bridge> irq 91 at device 0.0 in pci0 pci1: <OFW PCI bus> on pcib1 x0: 0x000000000000dead x1: 0xffff000000f24840 x2: 0x0000000000000000 .... panic: Unhandled System Error cpuid = 0 time = 1 KDB: stack backtrace: #0 0xffff00000058d4b4 at kdb_backtrace+0x58 #1 0xffff0000004b8fcc at vpanic+0x19c #2 0xffff0000004b8e2c at panic+0x44 #3 0xffff000000896e8c at do_serror+0x3c #4 0xffff0000008742f8 at handle_serror+0x3c #5 0xffff000000a5826e at console_pausestr+0xa72 #6 0xffff0000009f47f3 at digits+0x4385 Uptime: 1s Resetting system... FWIW: I tried the same thing with Linux, and there it works. I'm also able to load a driver for a PCI card (an Adaptec 7980 based adapter in this case) and have it work. So in theory it at least could work? Thanks! -- You are receiving this mail because: You are the assignee for the bug.