Re: main [so: 15] context, 7950X3D and RTL8251/8153 based Ethernet dongle: loss of state, example log information

From: Mark Millard <marklmi_at_yahoo.com>
Date: Mon, 04 Mar 2024 18:05:10 UTC
On Mar 3, 2024, at 23:25, Jakob Alvermark <jakob@alvermark.net> wrote:

> On 12/4/23 09:16, Mark Millard wrote:
>> The following sort of thing is happening a lot:
>> 
>> Ryzen 9 7950X3D using a USB Ethernet dongle that I've historically
>> used on occasion, sometimes for long periods . . .
>> 
>> Example contexts for the issue have been:
>> 
>> FreeBSD 15.0-CURRENT #126 main-n266130-d521abdff236-dirty: Tue Oct 24 18:17:40 PDT 2023
>> and:
>> FreeBSD 15.0-CURRENT #131 main-n266749-ed31b3f4a146-dirty: Wed Nov 29 16:53:33 PST 2023
>> 
>> Both UFS and ZFS boot media, here part of a ed31b3f4a146 UFS example is shown
>> 
>> Nov 29 18:26:27 7950X3D-UFS kernel: miibus0: <MII bus> on ure0
>> Nov 29 18:26:27 7950X3D-UFS kernel: rgephy0: <RTL8251/8153 1000BASE-T media interface> PHY 0 on miibus0
>> Nov 29 18:26:27 7950X3D-UFS kernel: rgephy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
>> Nov 29 18:26:27 7950X3D-UFS kernel: ue0: <USB Ethernet> on ure0
>> Nov 29 18:26:27 7950X3D-UFS kernel: ue0: Ethernet address: REDACTED
>> Nov 29 18:26:27 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> . . .
>> Nov 29 18:26:27 7950X3D-UFS kernel: ue0: link state changed to UP
>> . . . (no ue0: messages, then) . . .
>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:18 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:19 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:19 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:19 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:19 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:19 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:19 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:19 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:19 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:20 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:20 7950X3D-UFS kernel: ue0: 2 link states coalesced
>> Nov 30 03:23:20 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:20 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:20 7950X3D-UFS dhclient[53725]: New IP Address (ue0): 192.168.1.157
>> Nov 30 03:23:20 7950X3D-UFS dhclient[53730]: New Subnet Mask (ue0): 255.255.255.0
>> Nov 30 03:23:20 7950X3D-UFS dhclient[53734]: New Broadcast Address (ue0): 192.168.1.255
>> Nov 30 03:23:20 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:20 7950X3D-UFS kernel: ue0: 3 link states coalesced
>> Nov 30 03:23:20 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:20 7950X3D-UFS dhclient[53771]: New Routers (ue0): 192.168.1.1
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: link state changed to DOWN
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: 3 link states coalesced
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: link state changed to UP
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: 2 link states coalesced
>> Nov 30 03:23:21 7950X3D-UFS kernel: ue0: link state changed to UP
>> . . . (lots more) . . .
>> 
>> Other FreeBSD system on the Ethernet are not getting such but none
>> of them are currently using such a dongle.
>> 
>> Note: The ASUS X670-P WiFi board's built in Ethernet is not
>> supported.
>> 
>> ===
>> Mark Millard
>> marklmi at yahoo.com
>> 
> I see the same with my Lenovo dongle:
> 
> ugen1.12: <Lenovo Thinkpad USB LAN> at usbus1
> ure0 on uhub6
> ure0: <Lenovo Thinkpad USB LAN, class 0/0, rev 3.00/30.00, addr 11> on usbus1
> miibus1: <MII bus> on ure0
> rgephy1: <RTL8251/8153 1000BASE-T media interface> PHY 0 on miibus1
> rgephy1:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto
> ue0: <USB Ethernet> on ure0

I've no had the problem since somewhat after my earlier
list submittal. The timing would suggest that the change
was tied to my moving things around and reconnecting the
ethernet cabling afterwards.


===
Mark Millard
marklmi at yahoo.com