Bug 276242

Summary: Attaching e1000e NIC to aarch64 causes ifconfig to hang
Product: Base System Reporter: mxb1143
Component: armAssignee: freebsd-arm (Nobody) <freebsd-arm>
Status: Closed Unable to Reproduce    
Severity: Affects Only Me    
Priority: ---    
Version: 14.0-RELEASE   
Hardware: arm64   
OS: Any   

Description mxb1143 2024-01-10 16:10:51 UTC
Attaching an e1000e NIC to an aarch64 machine in QEMU causes ifconfig to hang upon trying to bring the interface up during boot, causing boot to hang indefinitely. Booting into single-user mode allows the system to boot fine, but running "ifconfig em0 up" causes the same behaviour. From my understanding ifconfig gets stuck in a syscall(?), rendering it impossible to kill. Otherwise FreeBSD seems to recognise the device fine, assigning it "em0" and chatting about it during boot. It also shows up as an adapter in ifconfig fine before any attempt is made to bring it up.

uname -a:
FreeBSD freebsd 14.0-RELEASE FreeBSD 14.0-RELEASE #0 releng/14.0-n265380-f9716eee8ab4: Fri Nov 10 05:54:07 UTC 2023     root@releng1.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64

freebsd-version -kur:
14.0-RELEASE
14.0-RELEASE
14.0-RELEASE

To reproduce:
1) Download an aarch64 release from https://download.freebsd.org/releases/VM-IMAGES/14.0-RELEASE/aarch64/Latest/
2) Run with:
qemu-system-aarch64 -m 4096M -cpu cortex-a57 -M virt -bios edk2-aarch64-code.fd -nographic -drive if=none,file=/path/to/fbsd.qcow2,id=hd0 -device virtio-blk-device,drive=hd0 -device e1000e,netdev=net0 -netdev user,id=net0
Comment 1 mxb1143 2024-01-10 16:31:08 UTC
(In reply to mxb1143 from comment #0)
On further testing this is not reproducible using a different version of QEMU, so this is likely a QEMU bug. I'll go ahead and close this.