From nobody Sat Mar 9 22:11:15 2024 X-Original-To: bugs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Tscgm5JRmz5CYy2 for ; Sat, 9 Mar 2024 22:11:16 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Tscgl6YdNz4dyT for ; Sat, 9 Mar 2024 22:11:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1710022275; a=rsa-sha256; cv=none; b=Ig3HtMWiFWoHLzkrr2JkEwRzicyaIBbSuPoy1WiS7XQ3AfQH6RcnRYU2wSEC45xbcPJaXv jnKHS7eLv6ilMUQKUK3MRT9Y4I5bO94nkIIjwT68FXzZWDMLiFRDrQQY0gTjMahp1n/9Pe UVhizz3oMNsreYE2Brxa6pRn4Jguz9dwsECqOdSR42I2M4Mf0DthBfdQkkLuuXO9r+XiKP /M0i+oSoDRbgUmyfU8AyPFLzthqOMZS8oc4DWhV8yxKC3z+cnDHCiJzt1E++z4WVAKJlw+ 5OORuuJGAeT5vCLRWPUL8luqOewFfafW2n7iNWOIfxB/uMXh4shNlAyaB6+feg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1710022275; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=GXg01fXJ/zmN8x3WtxNGeH1a7FP2x89lbvSE5+VRJO0=; b=VUYqa6xFDE0/DX/Ek2XaF+7BGDBJJ1AQ6uOafVE7K3gS/FEgDhFO05Gsql653SpNYNIkYo zh6zUp2s3yg4NWNggUYXrcyMvdWG4ktYrLptwOPkoH9BOMmt3oZYN8SwLl7QwoA4BX5/Qi HG3oIQUNlsv3Py1dNcdt10MXoiHqzQtLCpyZad/ps5ioXZpP/NmwFgCRhRm1fdrLJnwB6p FeCA2dTuzwGx0twiRdDsPIj7sp5XLnR+wjcwYqV+MVWaj1VeOfw/qvbKPRTPJI74S8k+ef jeliJCGvmT615k8hySmdZirliZ7/hwCWhuY+M67TpCMXRWoan1cV0I/Q5Mlu5A== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Tscgl69pNzKfD for ; Sat, 9 Mar 2024 22:11:15 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 429MBFVf005132 for ; Sat, 9 Mar 2024 22:11:15 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 429MBFRO005107 for bugs@FreeBSD.org; Sat, 9 Mar 2024 22:11:15 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 277605] FreeBSD 14-Release crashes on the RPI CM4 with PCIE to PCI bridge Date: Sat, 09 Mar 2024 22:11:15 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 14.0-RELEASE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: hp@tmm.cx X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@freebsd.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D277605 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=3D249060&action= =3Dedit 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 t= he Raspberry Pi foundation, then I managed to boot into FreeBSD14, but got a crash. I got around this crash by adding devmatch_enable=3D"NO" to rc.conf. I made some further edits to the config.txt to enable USB to work, enabling otg_mode=3D1. 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: mem 0x7d500000-0x7d50930f irq 00.01 on simplebus2 pcib0: hardware identifies as revision 0x384. pci0: on pcib0 pcib1: irq 91 at device 0.0 in pci0 pci1: on pcib1 x0: 0x000000000000dead x1: 0xffff000000f24840 x2: 0x0000000000000000 .... panic: Unhandled System Error cpuid =3D 0 time =3D 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) a= nd have it work. So in theory it at least could work? Thanks! --=20 You are receiving this mail because: You are the assignee for the bug.=