Hey All - Having issues with the last few builds of CURRENT on my Framework 13 laptop. Most of the builds have been working quite well (including the latest iwlwifi driver). But I'm having this issue with the wired ethernet usb expansion card that Framework ships. It only periodically works. It doesn't look like the if_cdce module has changed in about 9 months, so at-a-loss as to what's causing ue0 to be unavailable. Anyone else experiencing this with this card? # uname -a FreeBSD *** 15.0-CURRENT FreeBSD 15.0-CURRENT #6 main-n270152-305db91d4b92: Tue May 14 10:11:13 MDT 2024 root@kyle-laptop-a:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 # kldstat Id Refs Address Size Name 1 90 0xffffffff80200000 1f5d300 kernel 2 1 0xffffffff8215e000 77d8 cryptodev.ko 3 1 0xffffffff82166000 5ea018 zfs.ko 4 1 0xffffffff82751000 36c8 coretemp.ko 5 1 0xffffffff82755000 37d378 vmm.ko 6 1 0xffffffff82ad4000 7720 if_cdce.ko 7 2 0xffffffff82adc000 5d68 uether.ko 8 1 0xffffffff84102000 93260 if_iwlwifi.ko 9 1 0xffffffff84196000 1e1228 i915kms.ko 10 2 0xffffffff84378000 85090 drm.ko 11 1 0xffffffff843fe000 22b8 iic.ko 12 2 0xffffffff84401000 4120 linuxkpi_video.ko 13 3 0xffffffff84406000 7358 dmabuf.ko 14 3 0xffffffff8440e000 3378 lindebugfs.ko 15 1 0xffffffff84412000 c338 ttm.ko 16 1 0xffffffff8441f000 3390 acpi_wmi.ko 17 1 0xffffffff84423000 4250 ichsmb.ko 18 1 0xffffffff84428000 2178 smbus.ko 19 1 0xffffffff8442b000 5f90 ig4.ko 20 1 0xffffffff84431000 2260 pflog.ko 21 1 0xffffffff84434000 52500 pf.ko 22 1 0xffffffff84487000 21dc nmdm.ko 23 1 0xffffffff8448a000 7798 if_bridge.ko 24 1 0xffffffff84492000 60e0 bridgestp.ko # usbconfig (working boot -- 0.2 is the framework card) ugen1.1: <Intel XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: <SMI Corporation USB DISK> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (126mA) ugen1.2: <Generic Laptop Camera> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (300mA) ugen1.3: <Goodix Technology Co., Ltd. Goodix USB2.0 MISC> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen1.4: <AX210 Bluetooth Intel Corp.> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) # usbconfig (not working boot -- 1.2 is the framework card) ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.1: <Intel XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.2: <SMI Corporation USB DISK> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (500mA) ugen1.3: <Generic Laptop Camera> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (300mA) ugen1.4: <Goodix Technology Co., Ltd. Goodix USB2.0 MISC> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen1.5: <AX210 Bluetooth Intel Corp.> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) # dmesg | grep cdce # (from working boot) cdce0 on uhub1 cdce0: <Realtek USB 10/100/1G/2.5G LAN, class 0/0, rev 3.20/31.04, addr 1> on usbus0 ue0: <USB Ethernet> on cdce0 # ifconfig (not working boot) lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=0 ether f8:b5:4d:d6:f6:5f groups: wlan ssid "" channel 1 (2412 MHz 11b) regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7 scanvalid 60 wme bintval 0 parent interface: iwlwifi0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> pflog0: flags=1000141<UP,RUNNING,PROMISC,LOWER_UP> metric 0 mtu 33152 options=0 groups: pflog tailscale0: flags=1008003<UP,BROADCAST,MULTICAST,LOWER_UP> metric 0 mtu 1280 options=80000<LINKSTATE> groups: tun nd6 options=109<PERFORMNUD,IFDISABLED,NO_DAD> Opened by PID 39659 vm-public: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=0 ether f6:2e:0b:4c:78:87 id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 groups: bridge vm-switch viid-4c918@ nd6 options=9<PERFORMNUD,IFDISABLED> # usbdump -d 0.2 dump_curr_config_desc dump_device_desc # (not working boot) 15:23:31.302158 usbus0.2 SUBM-BULK-EP=00000001,SPD=SUPER,NFR=1,SLEN=32,IVAL=0 15:23:31.302178 usbus0.2 DONE-BULK-EP=00000001,SPD=SUPER,NFR=1,SLEN=0,IVAL=0,ERR=0 15:23:31.302180 usbus0.2 SUBM-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=0,IVAL=0 15:23:31.302298 usbus0.2 DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=16,IVAL=0,ERR=0 15:23:34.304126 usbus0.2 SUBM-BULK-EP=00000001,SPD=SUPER,NFR=1,SLEN=32,IVAL=0 15:23:34.304161 usbus0.2 DONE-BULK-EP=00000001,SPD=SUPER,NFR=1,SLEN=0,IVAL=0,ERR=0 15:23:34.304163 usbus0.2 SUBM-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=0,IVAL=0 15:23:34.304263 usbus0.2 DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=16,IVAL=0,ERR=0 15:23:37.327146 usbus0.2 SUBM-BULK-EP=00000001,SPD=SUPER,NFR=1,SLEN=32,IVAL=0 15:23:37.327165 usbus0.2 DONE-BULK-EP=00000001,SPD=SUPER,NFR=1,SLEN=0,IVAL=0,ERR=0 15:23:37.327166 usbus0.2 SUBM-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=0,IVAL=0 15:23:37.327286 usbus0.2 DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=16,IVAL=0,ERR=0 15:23:40.328142 usbus0.2 SUBM-BULK-EP=00000001,SPD=SUPER,NFR=1,SLEN=32,IVAL=0 15:23:40.328158 usbus0.2 DONE-BULK-EP=00000001,SPD=SUPER,NFR=1,SLEN=0,IVAL=0,ERR=0 15:23:40.328160 usbus0.2 SUBM-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=0,IVAL=0 15:23:40.328278 usbus0.2 DONE-BULK-EP=00000082,SPD=SUPER,NFR=1,SLEN=16,IVAL=0,ERR=0 16 packets captured 16 packets received by filter 0 packets dropped by kernel
I also tested some 8156 (and 8156B) USB dangles (but not Framework's), one of them also has this kind of issue. After some cross check, I highly suspect that it's specified due to the hardware issue of that one. Cause it has the same symptom on all my machines and the working ones are also good on all the machines. Another thing, but not really related to this is that 8156 is actually supported with ure(4), with minor patch: https://reviews.freebsd.org/D45088 BTW, in your usbconfig output, the 0.2 and 1.2 is shown as "SMI Corporation USB DISK"?
(In reply to Li-Wen Hsu from comment #1) Sorry, end-of-the-day post. That's a SD card reader. The usbus0 is what the ethernet card is attached to: ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
After leaving it powered-off for the night and booting up the latest kernel build (yesterday), it works just fine. Maybe it only happens if you leave the machine booted and the card running for a few days? The card gets too hot or the bus gets tired. # uname -a FreeBSD kyle-laptop-a 15.0-CURRENT FreeBSD 15.0-CURRENT #6 main-n270152-305db91d4b92: Tue May 14 10:11:13 MDT 2024 root@kyle-laptop-a:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 # usbconfig ugen1.1: <Intel XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) **ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen1.2: <Generic Laptop Camera> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON (300mA) ugen0.2: <SMI Corporation USB DISK> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=ON (126mA) ugen1.3: <Goodix Technology Co., Ltd. Goodix USB2.0 MISC> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) ugen0.3: <Realtek USB 10/100/1G/2.5G LAN> at usbus0, cfg=2 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA) ugen1.4: <AX210 Bluetooth Intel Corp.> at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (100mA) #ifconfig lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> ue0: flags=1008943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=80008<VLAN_MTU,LINKSTATE> ether 9c:bf:0d:*:*:* inet 192.168.*.* netmask 0xffffff00 broadcast 192.168.*.* media: Ethernet autoselect status: active nd6 options=2b<PERFORMNUD,ACCEPT_RTADV,IFDISABLED,AUTO_LINKLOCAL> wlan0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=0 ether f8:b5:4d:d6:f6:5f groups: wlan ssid "" channel 1 (2412 MHz 11b) regdomain FCC country US authmode OPEN privacy OFF txpower 30 bmiss 7 scanvalid 60 wme bintval 0 parent interface: iwlwifi0 media: IEEE 802.11 Wireless Ethernet autoselect (autoselect) status: no carrier nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> pflog0: flags=1000141<UP,RUNNING,PROMISC,LOWER_UP> metric 0 mtu 33152 options=0 groups: pflog tailscale0: flags=1008043<UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 1280 options=80000<LINKSTATE> inet 100.*.*.* netmask 0xffffffff broadcast 100.*.*.* inet6 fd7a:115c:*:*:* prefixlen 48 groups: tun nd6 options=101<PERFORMNUD,NO_DAD> Opened by PID 71634 vm-public: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=0 ether ee:a4:cc:fb:62:4b id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 member: ue0 flags=143<LEARNING,DISCOVER,AUTOEDGE,AUTOPTP> ifmaxaddr 0 port 2 priority 128 path cost 20000 groups: bridge vm-switch viid-4c918@ nd6 options=9<PERFORMNUD,IFDISABLED> # lsusb Bus /dev/usb Device /dev/ugen1.4: ID 8087:0032 Intel Corp. AX210 Bluetooth Bus /dev/usb Device /dev/ugen1.3: ID 27c6:609c Shenzhen Goodix Technology Co.,Ltd. Bus /dev/usb Device /dev/ugen0.3: ID 0bda:8156 Realtek Semiconductor Corp. Bus /dev/usb Device /dev/ugen1.2: ID 0bda:5634 Realtek Semiconductor Corp. Bus /dev/usb Device /dev/ugen0.2: ID 090c:3350 Silicon Motion, Inc. - Taiwan (formerly Feiya Technology Corp.) Bus /dev/usb Device /dev/ugen0.1: ID 0000:0000 Bus /dev/usb Device /dev/ugen1.1: ID 0000:0000
(In reply to Kyle Taylor from comment #3) I'm not sure and I somehow still feel this is hardware issue. In the mean time, if possible, please help me to test that patch so we can use more proper driver for 8156. It still needs some fixes but should be fine to test.
(In reply to Li-Wen Hsu from comment #4) Didn't work for me. wget -O /root/patch.diff https://reviews.freebsd.org/D45088?download=true cd /usr/src && git pull --force && git apply --reject /root/patch.diff; echo if_ure_load="YES" >> /boot/loader.conf # and remove if_cdce_load="YES" make buildkernel CONFIG=GENERIC && make installkernel CONFIG=GENERIC && reboot # ifconfig lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> wlan0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=0 ether f8:b5:4d:d6:f6:5f inet 192.168.*.* netmask 0xffffff00 broadcast 192.168.*.* groups: wlan ssid **** channel 153 (5765 MHz 11a) bssid 08:9b:*:*:* regdomain FCC country US authmode WPA2/802.11i privacy ON deftxkey UNDEF AES-CCM 3:128-bit txpower 23 bmiss 7 mcastrate 6 mgmtrate 6 scanvalid 60 wme roaming MANUAL parent interface: iwlwifi0 media: IEEE 802.11 Wireless Ethernet OFDM/54Mbps mode 11a status: associated nd6 options=29<PERFORMNUD,IFDISABLED,AUTO_LINKLOCAL> pflog0: flags=1000141<UP,RUNNING,PROMISC,LOWER_UP> metric 0 mtu 33152 options=0 groups: pflog tailscale0: flags=1008043<UP,BROADCAST,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 1280 options=80000<LINKSTATE> inet 100.*.*.* netmask 0xffffffff broadcast 100.84.109.115 inet6 fd7a:115c:a1e0::5d01:6d73 prefixlen 48 groups: tun nd6 options=101<PERFORMNUD,NO_DAD> Opened by PID 68864 vm-public: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=0 ether 8a:68:a1:*:*:* id 00:00:00:00:00:00 priority 32768 hellotime 2 fwddelay 15 maxage 20 holdcnt 6 proto rstp maxaddr 2000 timeout 1200 root id 00:00:00:00:00:00 priority 32768 ifcost 0 port 0 groups: bridge vm-switch viid-4c918@ nd6 options=9<PERFORMNUD,IFDISABLED>
(In reply to Kyle Taylor from comment #5) Wait, sorry! The patch did work. # uname -a FreeBSD kyle-laptop-a 15.0-CURRENT FreeBSD 15.0-CURRENT #8 main-n270169-d7adf3b47a05-dirty: Wed May 15 12:19:47 MDT 2024 root@kyle-laptop-a:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG amd64 # dmesg | grep re0 ure0 on uhub0 ure0: <Realtek USB 10/100/1G/2.5G LAN, class 0/0, rev 3.20/31.04, addr 2> on usbus0 ue0: <USB Ethernet> on ure0 # dmesg | grep ue0 ue0: <USB Ethernet> on ure0 ue0: Ethernet address: 9c:bf:0d:00:39:9e ue0: link state changed to DOWN ue0: promiscuous mode enabled ue0: link state changed to UP But it only works if I cold reboot the system and start without the USB-C charger attached. I can then plug the charger in after booting and it works just fine. If I boot the kernel with the charger attached, I get nothing.
Can you add hw.bus.devctl_nomatch_enabled=1 to /boot/loader.conf and see if the problem goes away?
(In reply to Warner Losh from comment #7) Hi Warner - Didn't do it for me. The machine will boot but the ue0 interface never shows up after boot. There's nothing informative in dmesg when booting with verbose messaging enabled, either. It still only sporadically shows up after boot when using the if_ure module that Li-Wen Hsu is testing. Card just seems glitchy. Like, when I use if_ure for a few hours, my switch will stop working for all machines connected until I physically disconnect my framework from the switch. This wasn't happening with the if_cdce module. It would still only periodically show up after boot, but at least the switch would still work.
(In reply to Kyle Taylor from comment #8) TBH, I don't think this is FreeBSD issue. This appears to be a Framework issue. This same behavior is reported by Linux users as well on their community forums : https://community.frame.work/t/responded-expansion-cards-and-usb-devices-cant-be-detected-and-disable-usb-ports-under-windows-and-linux/30697
I tested this bug by using an RTL8156B USB NIC on a Raspberry Pi 5 for nearly 24 hours. I didn't find any faults. The RTL8156B or RTL8156 had issues with disconnection in the past, but it seems that this problem no longer occurs. The AX88179A also had this issue ( https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=267514 ), but it seems to be fixed. The driver hasn't changed, so the fix might be due to other kernel modifications or an x86 issue. I don't have an x86 platform to test on, but the AX88179A and RTL8156B work normally on the Raspberry Pi 5. ----------------------------------------------- root@ykla:~ # uname -a FreeBSD ykla 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n270986-14fee5324a9b: Thu Jun 27 22:55:34 UTC 2024 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 ------------------------------------------ root@ykla:~ # dmesg ---<<BOOT>>--- GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2024 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 15.0-CURRENT #0 main-n270986-14fee5324a9b: Thu Jun 27 22:55:34 UTC 2024 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67) WARNING: WITNESS option enabled, expect reduced performance. VT(efifb): resolution 1920x1080 module scmi already present! real memory = 8569733120 (8172 MB) avail memory = 8318590976 (7933 MB) Starting CPU 1 (100) Starting CPU 2 (200) Starting CPU 3 (300) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface kbd0 at kbdmux0 acpi0: <RPIFDN RPI5> acpi0: Power Button (fixed) acpi0: Could not update all GPEs: AE_NOT_CONFIGURED psci0: <ARM Power State Co-ordination Interface Driver> on acpi0 gic0: <ARM Generic Interrupt Controller> iomem 0x107fff9000-0x107fff9fff,0x107fffa000-0x107fffafff on acpi0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 320 generic_timer0: <ARM Generic Timer> irq 5,6,7,8 on acpi0 Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality 1000 efirtc0: <EFI Realtime Clock> efirtc0: registered as a time-of-day clock, resolution 1.000000s pmu0: <Performance Monitoring Unit> on acpi0 cpu0: <ACPI CPU> on acpi0 acpi_syscontainer0: <System Container> on acpi0 pcib0: <ARM PCI Firmware config space host controller> on acpi0 pci0: <PCI bus> on pcib0 pcib1: <PCI-PCI bridge> at device 0.0 on pci0 pci1: <PCI bus> on pcib1 nvme0: <Generic NVMe Device> mem 0xc0000000-0xc0003fff at device 0.0 on pci1 nvme0: unable to allocate MSI-X nvme0: unable to allocate MSI acpi_syscontainer1: <System Container> on acpi0 sdhci_acpi0: <Intel Bay Trail/Braswell SDXC Controller> iomem 0x1000fff000-0x1000fff25f irq 3 on acpi0 mmc0: <MMC/SD bus> on sdhci_acpi0 sdhci_acpi1: <Intel Bay Trail/Braswell SDXC Controller> iomem 0x1001100000-0x100110025f irq 4 on acpi0 mmc1: <MMC/SD bus> on sdhci_acpi1 uart0: <PrimeCell UART (PL011)> iomem 0x107d001000-0x107d0011ff irq 0 on acpi0 xhci0: <Generic USB 3.0 controller> iomem 0x1f00200000-0x1f002fffff irq 1 on acpi0 xhci0: 64 bytes context size, 64-bit DMA usbus0 on xhci0 xhci1: <Generic USB 3.0 controller> iomem 0x1f00300000-0x1f003fffff irq 2 on acpi0 xhci1: 64 bytes context size, 64-bit DMA usbus1 on xhci1 armv8crypto0: <AES-CBC,AES-XTS,AES-GCM> Timecounters tick every 1.000 msec usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 5.0Gbps Super Speed USB v3.0 ugen1.1: <Generic XHCI root HUB> at usbus1 uhub0 on usbus1 uhub0: <Generic XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1 ugen0.1: <Generic XHCI root HUB> at usbus0 uhub1 on usbus0 uhub1: <Generic XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) nvme0: Allocated 16MB host memory buffer mmcsd0: 126GB <SDHC LX128 1.0 SN 41A84716 MFG 05/2023 by 173 LS> at mmc0 50.0MHz/4bit/65535-block mmc1: No compatible cards found on bus Trying to mount root from zfs:zroot/ROOT/default []... CPU 0: ARM Cortex-A76 r4p1 affinity: 0 0 Cache Type = <64 byte D-cacheline,64 byte I-cacheline,PIPT ICache,64 byte ERG,64 byte CWG,IDC> Instruction Set Attributes 0 = <DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL> Instruction Set Attributes 1 = <RCPC-8.3,DCPoP> Instruction Set Attributes 2 = <> Processor Features 0 = <CSV3,CSV2,RAS,AdvSIMD+HP,FP+HP,EL3,EL2,EL1,EL0 32> Processor Features 1 = <PSTATE.SSBS> Processor Features 2 = <> Memory Model Features 0 = <TGran4,TGran64,TGran16,SNSMem,BigEnd,16bit ASID,1TB PA> Memory Model Features 1 = <XNX,PAN+ATS1E1,LO,HPD+TTPBHA,VH,16bit VMID,HAF+DS> Memory Model Features 2 = <32bit CCIDX,48bit VA,IESB,UAO,CnP> Memory Model Features 3 = <> Memory Model Features 4 = <> Debug Features 0 = <DoubleLock,2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3p1,Debugv8p2> Debug Features 1 = <> Auxiliary Features 0 = <> Auxiliary Features 1 = <> AArch32 Instruction Set Attributes 5 = <RDM,CRC32,SHA2,SHA1,AES+VMULL,SEVL> AArch32 Media and VFP Features 0 = <FPRound,FPSqrt,FPDivide,DP VFPv3+v4,SP VFPv3+v4,AdvSIMD> AArch32 Media and VFP Features 1 = <SIMDFMAC,FPHP Arith,SIMDHP Arith,SIMDSP,SIMDInt,SIMDLS,FPDNaN,FPFtZ> CPU 1: ARM Cortex-A76 r4p1 affinity: 1 0 CPU 2: ARM Cortex-A76 r4p1 affinity: 2 0 CPU 3: ARM Cortex-A76 r4p1 affinity: 3 0 gic0: using for IPIs Release APs...done nda0 at nvme0 bus 0 scbus0 target 0 lun 1 nda0: <Fanxiang S542Pro 256GB SN12517 FX240440260> nda0: Serial Number FX240440260 nda0: nvme version 1.4 nda0: 244198MB (500118192 512 byte sectors) TCP_ratelimit: Is now initialized WARNING: WITNESS option enabled, expect reduced performance. uhub0: 3 ports with 3 removable, self powered uhub1: 3 ports with 3 removable, self powered ugen0.2: <Realtek USB 10/100/1G/2.5G LAN> at usbus0 lo0: link state changed to UP cdce0 on uhub1 cdce0: <Realtek USB 10/100/1G/2.5G LAN, class 0/0, rev 3.20/31.04, addr 1> on usbus0 ue0: <USB Ethernet> on cdce0 ue0: Ethernet address: c8:4d:44:29:99:91 ue0: link state changed to DOWN ue0: link state changed to UP Security policy loaded: MAC/ntpd (mac_ntpd) root@ykla:~ # uptime 1:37PM up 18:18, 1 user, load averages: 0.35, 0.17, 0.10 root@ykla:~ # dmesg | grep ue0 ue0: <USB Ethernet> on cdce0 ue0: Ethernet address: c8:4d:44:29:99:91 ue0: link state changed to DOWN ue0: link state changed to UP root@ykla:~ # dmesg | grep cdce0 cdce0 on uhub1 cdce0: <Realtek USB 10/100/1G/2.5G LAN, class 0/0, rev 3.20/31.04, addr 1> on usbus0 ue0: <USB Ethernet> on cdce0 root@ykla:~ # uname -a FreeBSD ykla 15.0-CURRENT FreeBSD 15.0-CURRENT #0 main-n270986-14fee5324a9b: Thu Jun 27 22:55:34 UTC 2024 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 root@ykla:~ # root@ykla:~ # uptime 1:48PM up 18:30, 1 user, load averages: 0.12, 0.13, 0.09 root@ykla:~ # dmesg ---<<BOOT>>--- GDB: no debug ports present KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2024 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD is a registered trademark of The FreeBSD Foundation. FreeBSD 15.0-CURRENT #0 main-n270986-14fee5324a9b: Thu Jun 27 22:55:34 UTC 2024 root@releng3.nyi.freebsd.org:/usr/obj/usr/src/arm64.aarch64/sys/GENERIC arm64 FreeBSD clang version 18.1.6 (https://github.com/llvm/llvm-project.git llvmorg-18.1.6-0-g1118c2e05e67) WARNING: WITNESS option enabled, expect reduced performance. VT(efifb): resolution 1920x1080 module scmi already present! real memory = 8569733120 (8172 MB) avail memory = 8318590976 (7933 MB) Starting CPU 1 (100) Starting CPU 2 (200) Starting CPU 3 (300) FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs random: unblocking device. random: entropy device external interface kbd0 at kbdmux0 acpi0: <RPIFDN RPI5> acpi0: Power Button (fixed) acpi0: Could not update all GPEs: AE_NOT_CONFIGURED psci0: <ARM Power State Co-ordination Interface Driver> on acpi0 gic0: <ARM Generic Interrupt Controller> iomem 0x107fff9000-0x107fff9fff,0x107fffa000-0x107fffafff on acpi0 gic0: pn 0x2, arch 0x2, rev 0x1, implementer 0x43b irqs 320 generic_timer0: <ARM Generic Timer> irq 5,6,7,8 on acpi0 Timecounter "ARM MPCore Timecounter" frequency 54000000 Hz quality 1000 Event timer "ARM MPCore Eventtimer" frequency 54000000 Hz quality 1000 efirtc0: <EFI Realtime Clock> efirtc0: registered as a time-of-day clock, resolution 1.000000s pmu0: <Performance Monitoring Unit> on acpi0 cpu0: <ACPI CPU> on acpi0 acpi_syscontainer0: <System Container> on acpi0 pcib0: <ARM PCI Firmware config space host controller> on acpi0 pci0: <PCI bus> on pcib0 pcib1: <PCI-PCI bridge> at device 0.0 on pci0 pci1: <PCI bus> on pcib1 nvme0: <Generic NVMe Device> mem 0xc0000000-0xc0003fff at device 0.0 on pci1 nvme0: unable to allocate MSI-X nvme0: unable to allocate MSI acpi_syscontainer1: <System Container> on acpi0 sdhci_acpi0: <Intel Bay Trail/Braswell SDXC Controller> iomem 0x1000fff000-0x1000fff25f irq 3 on acpi0 mmc0: <MMC/SD bus> on sdhci_acpi0 sdhci_acpi1: <Intel Bay Trail/Braswell SDXC Controller> iomem 0x1001100000-0x100110025f irq 4 on acpi0 mmc1: <MMC/SD bus> on sdhci_acpi1 uart0: <PrimeCell UART (PL011)> iomem 0x107d001000-0x107d0011ff irq 0 on acpi0 xhci0: <Generic USB 3.0 controller> iomem 0x1f00200000-0x1f002fffff irq 1 on acpi0 xhci0: 64 bytes context size, 64-bit DMA usbus0 on xhci0 xhci1: <Generic USB 3.0 controller> iomem 0x1f00300000-0x1f003fffff irq 2 on acpi0 xhci1: 64 bytes context size, 64-bit DMA usbus1 on xhci1 armv8crypto0: <AES-CBC,AES-XTS,AES-GCM> Timecounters tick every 1.000 msec usbus0: 5.0Gbps Super Speed USB v3.0 usbus1: 5.0Gbps Super Speed USB v3.0 ugen1.1: <Generic XHCI root HUB> at usbus1 uhub0 on usbus1 uhub0: <Generic XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus1 ugen0.1: <Generic XHCI root HUB> at usbus0 uhub1 on usbus0 uhub1: <Generic XHCI root HUB, class 9/0, rev 3.00/1.00, addr 1> on usbus0 ZFS filesystem version: 5 ZFS storage pool version: features support (5000) nvme0: Allocated 16MB host memory buffer mmcsd0: 126GB <SDHC LX128 1.0 SN 41A84716 MFG 05/2023 by 173 LS> at mmc0 50.0MHz/4bit/65535-block mmc1: No compatible cards found on bus Trying to mount root from zfs:zroot/ROOT/default []... CPU 0: ARM Cortex-A76 r4p1 affinity: 0 0 Cache Type = <64 byte D-cacheline,64 byte I-cacheline,PIPT ICache,64 byte ERG,64 byte CWG,IDC> Instruction Set Attributes 0 = <DP,RDM,Atomic,CRC32,SHA2,SHA1,AES+PMULL> Instruction Set Attributes 1 = <RCPC-8.3,DCPoP> Instruction Set Attributes 2 = <> Processor Features 0 = <CSV3,CSV2,RAS,AdvSIMD+HP,FP+HP,EL3,EL2,EL1,EL0 32> Processor Features 1 = <PSTATE.SSBS> Processor Features 2 = <> Memory Model Features 0 = <TGran4,TGran64,TGran16,SNSMem,BigEnd,16bit ASID,1TB PA> Memory Model Features 1 = <XNX,PAN+ATS1E1,LO,HPD+TTPBHA,VH,16bit VMID,HAF+DS> Memory Model Features 2 = <32bit CCIDX,48bit VA,IESB,UAO,CnP> Memory Model Features 3 = <> Memory Model Features 4 = <> Debug Features 0 = <DoubleLock,2 CTX BKPTs,4 Watchpoints,6 Breakpoints,PMUv3p1,Debugv8p2> Debug Features 1 = <> Auxiliary Features 0 = <> Auxiliary Features 1 = <> AArch32 Instruction Set Attributes 5 = <RDM,CRC32,SHA2,SHA1,AES+VMULL,SEVL> AArch32 Media and VFP Features 0 = <FPRound,FPSqrt,FPDivide,DP VFPv3+v4,SP VFPv3+v4,AdvSIMD> AArch32 Media and VFP Features 1 = <SIMDFMAC,FPHP Arith,SIMDHP Arith,SIMDSP,SIMDInt,SIMDLS,FPDNaN,FPFtZ> CPU 1: ARM Cortex-A76 r4p1 affinity: 1 0 CPU 2: ARM Cortex-A76 r4p1 affinity: 2 0 CPU 3: ARM Cortex-A76 r4p1 affinity: 3 0 gic0: using for IPIs Release APs...done nda0 at nvme0 bus 0 scbus0 target 0 lun 1 nda0: <Fanxiang S542Pro 256GB SN12517 FX240440260> nda0: Serial Number FX240440260 nda0: nvme version 1.4 nda0: 244198MB (500118192 512 byte sectors) TCP_ratelimit: Is now initialized WARNING: WITNESS option enabled, expect reduced performance. uhub0: 3 ports with 3 removable, self powered uhub1: 3 ports with 3 removable, self powered ugen0.2: <Realtek USB 10/100/1G/2.5G LAN> at usbus0 lo0: link state changed to UP cdce0 on uhub1 cdce0: <Realtek USB 10/100/1G/2.5G LAN, class 0/0, rev 3.20/31.04, addr 1> on usbus0 ue0: <USB Ethernet> on cdce0 ue0: Ethernet address: c8:4d:44:29:99:91 ue0: link state changed to DOWN ue0: link state changed to UP Security policy loaded: MAC/ntpd (mac_ntpd) ------------------------------------------------------- root@ykla:~ # usbconfig ugen1.1: <Generic XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.1: <Generic XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA) ugen0.2: <Realtek USB 10/100/1G/2.5G LAN> at usbus0, cfg=2 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA) root@ykla:~ # --------------------------------------------- root@ykla:~ # ifconfig lo0: flags=1008049<UP,LOOPBACK,RUNNING,MULTICAST,LOWER_UP> metric 0 mtu 16384 options=680003<RXCSUM,TXCSUM,LINKSTATE,RXCSUM_IPV6,TXCSUM_IPV6> inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1 groups: lo nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> ue0: flags=1008843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST,LOWER_UP> metric 0 mtu 1500 options=80008<VLAN_MTU,LINKSTATE> ether c8:4d:44:29:99:91 inet 192.168.31.187 netmask 0xffffff00 broadcast 192.168.31.255 inet6 fe80::ca4d:44ff:fe29:9991%ue0 prefixlen 64 scopeid 0x2 media: Ethernet autoselect status: active nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL> root@ykla:~ # ----------------------------------------------- root@ykla:~ # usbconfig -v ugen0.2: <Realtek USB 10/100/1G/2.5G LAN> at usbus0, cfg=2 md=HOST spd=SUPER (5.0Gbps) pwr=ON (64mA) ugen0.2.0: cdce0: <Realtek USB 10/100/1G/2.5G LAN, class 0/0, rev 3.20/31.04, addr 1> bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0320 bDeviceClass = 0x0000 <Probed by interface class> bDeviceSubClass = 0x0000 bDeviceProtocol = 0x0000 bMaxPacketSize0 = 0x0009 idVendor = 0x0bda idProduct = 0x8156 bcdDevice = 0x3104 iManufacturer = 0x0001 <Realtek> iProduct = 0x0002 <USB 10/100/1G/2.5G LAN> iSerialNumber = 0x0006 <4013000001> bNumConfigurations = 0x0003 Configuration index 2 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0062 bNumInterfaces = 0x0002 bConfigurationValue = 0x0003 iConfiguration = 0x0000 <no string> bmAttributes = 0x00a0 bMaxPower = 0x0020 Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0000 bAlternateSetting = 0x0000 bNumEndpoints = 0x0001 bInterfaceClass = 0x0002 <Communication device> bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0000 iInterface = 0x0005 <CDC Communications Control> Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x00 RAW dump: 0x00 | 0x05, 0x24, 0x00, 0x10, 0x01 Additional Descriptor bLength = 0x05 bDescriptorType = 0x24 bDescriptorSubType = 0x06 RAW dump: 0x00 | 0x05, 0x24, 0x06, 0x00, 0x01 Additional Descriptor bLength = 0x0d bDescriptorType = 0x24 bDescriptorSubType = 0x0f RAW dump: 0x00 | 0x0d, 0x24, 0x0f, 0x03, 0x1f, 0x50, 0x31, 0x00, 0x08 | 0xee, 0x05, 0x00, 0x80, 0x00 Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0083 <IN> bmAttributes = 0x0003 <INTERRUPT> wMaxPacketSize = 0x0010 bInterval = 0x000b bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x06 bDescriptorType = 0x30 bDescriptorSubType = 0x00 RAW dump: 0x00 | 0x06, 0x30, 0x00, 0x00, 0x08, 0x00 Interface 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0000 bNumEndpoints = 0x0000 bInterfaceClass = 0x000a <CDC-data> bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0000 <no string> Interface 1 Alt 1 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x0001 bAlternateSetting = 0x0001 bNumEndpoints = 0x0002 bInterfaceClass = 0x000a <CDC-data> bInterfaceSubClass = 0x0000 bInterfaceProtocol = 0x0000 iInterface = 0x0004 <Ethernet Data> Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0081 <IN> bmAttributes = 0x0002 <BULK> wMaxPacketSize = 0x0400 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x06 bDescriptorType = 0x30 bDescriptorSubType = 0x03 RAW dump: 0x00 | 0x06, 0x30, 0x03, 0x00, 0x00, 0x00 Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0002 <OUT> bmAttributes = 0x0002 <BULK> wMaxPacketSize = 0x0400 bInterval = 0x0000 bRefresh = 0x0000 bSynchAddress = 0x0000 Additional Descriptor bLength = 0x06 bDescriptorType = 0x30 bDescriptorSubType = 0x03 RAW dump: 0x00 | 0x06, 0x30, 0x03, 0x00, 0x00, 0x00
see also https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=166724