Bug 272204 - axge(4) AX88179A not initialized on startup
Summary: axge(4) AX88179A not initialized on startup
Status: Open
Alias: None
Product: Base System
Classification: Unclassified
Component: usb (show other bugs)
Version: 13.2-STABLE
Hardware: amd64 Any
: --- Affects Some People
Assignee: freebsd-usb (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-25 10:16 UTC by rdunkle
Modified: 2023-07-26 07:04 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description rdunkle 2023-06-25 10:16:24 UTC
FreeBSD sky21 13.2-STABLE FreeBSD 13.2-STABLE stable/13-c27befba6 GENERIC amd64
# dmesg | grep ASIX
unplug then plug in asix usb adapter
# dmesg | grep ASIX
ugen1.2: <ASIX AX88179A> at usbus1

This adapter always requires me to unplug then plug in device before it is recognized.
This behavior is seen when axge is compiled into kernel or loaded as a module.
The performance is remarkably slow. Not investigated further.  Switched to different network adapter.
Comment 1 Bjoern A. Zeeb freebsd_committer freebsd_triage 2023-07-26 00:30:18 UTC
Rather than re-plugging does a usbconfig reset on the underlying controller help?


Given you are saying you moved to a different adapter, is this still relevant as an open bug or simply as a "record for history in case someone else hits this too"?
Comment 2 rdunkle 2023-07-26 07:04:43 UTC
I set the device aside for FreeBSD.  I use it on Win10.  I would use it this nic if it worked.

device:  TP Link model: UE300C(UN)

# uname -a
FreeBSD  13.2-STABLE FreeBSD 13.2-STABLE stable/13-8557b8ba1 GENERIC amd64

usbconfig reset does not bring the device to life.
It appears to only work when I re-plug the nic.


/boot/loader.conf
if_axge_load="YES"

---------------
from /etc/rc.conf
hostname="sky21"
ifconfig_ue0="DHCP"
ifconfig_ue0_ipv6="inet6 accept_rtadv 2001:470:71:3fb::154  prefixlen 64 "
rtsold_enable="YES"
----------

after boot up nothing seen in dmesg about nic
-------------
# usbconfig
ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen1.1: <(0x1b21) XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <Logitech USB Receiver> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (98mA)
ugen0.3: <vendor 0x0416 HATOR gaming keyboard> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (400mA)
--------------------
# usbconfig reset
ugen0.1: <Intel XHCI root HUB> at usbus0, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen1.1: <(0x1b21) XHCI root HUB> at usbus1, cfg=0 md=HOST spd=SUPER (5.0Gbps) pwr=SAVE (0mA)
ugen0.2: <Logitech USB Receiver> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (98mA)
ugen0.3: <vendor 0x0416 HATOR gaming keyboard> at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON (400mA)
usbconfig: could not open device: No error: 0
---------------------
# usbconfig -d ugen1.2 power_off
No device match or lack of permissions
----------------------

after re-plugging nic
/var/log/messages...

Jul 26 06:36:26 sky21 kernel: ugen1.2: <ASIX AX88179A> at usbus1
Jul 26 06:36:26 sky21 kernel: axge0 on uhub1
Jul 26 06:36:26 sky21 kernel: axge0: <NetworkInterface> on usbus1
Jul 26 06:36:27 sky21 kernel: miibus0: <MII bus> on axge0
Jul 26 06:36:27 sky21 kernel: ukphy0: <Generic IEEE 802.3u media interface> PHY 3 on miibus0
Jul 26 06:36:27 sky21 kernel: ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
Jul 26 06:36:27 sky21 kernel: ue0: <USB Ethernet> on axge0
Jul 26 06:36:27 sky21 kernel: ue0: Ethernet address: f8:e4:3b:4b:20:5c
Jul 26 06:36:27 sky21 kernel: ue0: link state changed to DOWN
Jul 26 06:36:31 sky21 kernel: ue0: link state changed to UP
Jul 26 06:36:35 sky21 dhclient[1363]: New IP Address (ue0): 192.168.2.103
Jul 26 06:36:35 sky21 dhclient[1367]: New Subnet Mask (ue0): 255.255.255.0
Jul 26 06:36:35 sky21 dhclient[1371]: New Broadcast Address (ue0): 192.168.2.255
Jul 26 06:36:35 sky21 dhclient[1375]: New Routers (ue0): 192.168.2.1
--------
dmesg (after re-plugging nic)
ugen1.2: <ASIX AX88179A> at usbus1
axge0 on uhub1
axge0: <NetworkInterface> on usbus1
miibus0: <MII bus> on axge0
ukphy0: <Generic IEEE 802.3u media interface> PHY 3 on miibus0
ukphy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, 1000baseT-FDX-master, auto, auto-flow
ue0: <USB Ethernet> on axge0
ue0: Ethernet address: f8:e4:3b:4b:20:5c
ue0: link state changed to DOWN
ue0: link state changed to UP
--------------------