[Bug 278990] Framework 13 USB Ethernet Card (RTL8156) only periodically detected on 15.0-CURRENT
Date: Fri, 05 Jul 2024 05:53:13 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=278990 ykla <yklaxds@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |yklaxds@gmail.com --- Comment #10 from ykla <yklaxds@gmail.com> --- 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 -- You are receiving this mail because: You are the assignee for the bug.