Summary: | The ue0 device has an unstable network connection | ||
---|---|---|---|
Product: | Base System | Reporter: | Roman <n.diablo.n.f> |
Component: | kern | Assignee: | freebsd-usb (Nobody) <usb> |
Status: | New --- | ||
Severity: | Affects Only Me | CC: | ali.abdallah, dumbbell, freebsd, jon, kraileth, lwhsu, ml, nick.lott |
Priority: | --- | ||
Version: | 13.0-RELEASE | ||
Hardware: | Any | ||
OS: | Any | ||
Attachments: |
Description
Roman
2021-04-20 09:25:19 UTC
I guess it's mode an issue in ure(4) Created attachment 228184 [details]
dmesg.boot file when system is started with the Dell adapter attached
Created attachment 228185 [details]
dmesg.boot file when system is started with an Anker adapter attached
Created attachment 228186 [details]
Panic hit with Anker adapter
I have experienced this problem, too, on a Dell XPS laptop (manufactured late 2019) which has no ethernet socket and thus forces me to use a USB2LAN adapter. I've tried out two: The Dell one that came with the laptop and an Anker one that I've been using without problems e.g. when playing with my Pinebook and FreeBSD. Both are directly (no HUB or such) attached with traditional USB plugs (not USB-C). I've uploaded dmesgs for system starts with either adapter attached. I've observed that networking generally does work. After installing 13.0, I had trouble running freebsd-update. It started to download files but then the system would lose connection (state for ue0 changes from active to no carrier. Removing the network plug and putting it back didn't help but pulling out the USB connector and reattaching it did. However the same thing happened if I tried to run freebsd-update again. Updating briefly worked with the other (Anker) adapter, so I continued building my system. I was able to zfs send over 100GB to the laptop without the network having any issue, install a lot of packages for desktop use and so on. But when I tried to use Ansible to provision another machine from the XPS, network connection would immediately break. So I decided to clone the FreeBSD source and update to 14-CURRENT to see if it happens there, too. Unfortunately cloning a git repo triggers the same problem. Therefore I cloned it on another machine and scp'd it over. System is running 14-CURRENT now and the situation has improved (cloning seems to work now) and Ansible can do a few tasks instead of losing connection immediately, but ultimately it still fails after a moment. This is all a bit weird. I know that the Anker one works just fine with other hardware and I briefly tested the Dell one on another laptop as well without any problems. And since 14-CURRENT behavior definitely is different from 13.0, some related work seems to have been done. A former co-worker used the machine with Ubuntu installed and I don't know of any network issues. I hope this helps with identifying what the actual problem is. I'd be happy to answer questions or provide additional info. I'm also getting unstable connections with two Realtek Ethernet USB-C adapters. The first one is inside a Dell W19TB docking station. The second one is a standalone adapter. The laptop (a Dell Precision 5540) has no internal RJ45, so I'm stuck with the external ones... I also configured if_lagg on top of if_ure to use wifi when I unplug the Ethernet cable. The symptoms are losses of connections/packets. I don't see the DOWN/UP events from ue0 however. Perhaps they are "hidden" by the use of if_lagg. I enabled if_ure debugging with hw.usb.ure=1 but it doesn't log anything so far. I will try to capture USB packets using usbdump(8) as described in https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=244845 (another bug report about if_ure) and share everything I can. This is must be related to bug 252165. It is a race condition between ure_tick and ure_ifmedia_sts I'm trying to understand since some time... I'm currently using a workaround (bug 252165 comment 3) to get rid of the issue. I'm also experiencing this on FreeBSD leslie 13.1-STABLE FreeBSD 13.1-STABLE #0 stable/13-n251124-026e19496cc: Thu Jun 16 19:22:47 EDT 2022 root@leslie:/usr/obj/usr/src/amd64.amd64/sys/DEBUG amd64. Ethernet over USB-C using this (Anker PowerExpand+ 7-in-1 USB-C PD Ethernet Hub): https://www.amazon.com/gp/product/B07PPGWQ15/ref=ppx_yo_dt_b_search_asin_title?ie=UTF8&psc=1 You can see the dongle below (I believe it's ure0 (and acccessed with ue0)): uhid0 on uhub0 uhid0: <Control Interface> on usbus1 uhid1 on uhub3 uhid1: <Logitech USB Receiver, class 0/0, rev 2.00/24.11, addr 3> on usbus1 uhid2 on uhub3 uhid2: <Microsoft Microsoft 2.4GHz Transceiver v9.0, class 0/0, rev 2.00/7.97, addr 5> on usbus1 ums0 on uhub3 ums0: <Logitech USB Receiver, class 0/0, rev 2.00/24.11, addr 3> on usbus1 ums0: 16 buttons and [XYZT] coordinates ID=2 ums1 on uhub3 ums1: <Microsoft Microsoft 2.4GHz Transceiver v9.0, class 0/0, rev 2.00/7.97, addr 5> on usbus1 ums1: 5 buttons and [XYZT] coordinates ID=26 ums1: 0 buttons and [T] coordinates ID=0 ure0 on uhub3 ure0: <Realtek USB 10/100/1000 LAN, class 0/0, rev 2.10/30.00, addr 4> on usbus1 miibus0: <MII bus> on ure0 rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 0 on miibus0 rgephy0: none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto ue0: <USB Ethernet> on ure0 ue0: Ethernet address: a0:ce:c8:d3:ca:0a iichid0: <FRMW0001:01 32AC:0006 I2C HID device> at addr 0x50 on iicbus10 iichid0: Interrupt setup failed. Fallback to sampling hidbus0: <HID bus> on iichid0 iichid1: <PIXA3854:01 093A:0274 I2C HID device> at addr 0x2c on iicbus11 iichid1: Interrupt setup failed. Fallback to sampling hidbus1: <HID bus> on iichid1 Btw, this is just a GENERIC kernel with the following: include GENERIC ident DEBUG options INVARIANTS options INVARIANT_SUPPORT I believe that due to my previous faulty framework mainboard, that may have affected my network adapter. I recently got the mainboard replaced and haven't been having issues, but I'll need more time to test. |