USB3 to ethernet adapter stops working (ax88179)

Bug #2012520 reported by Sergio Callegari
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
linux-signed-hwe-5.19 (Ubuntu)
New
Undecided
Unassigned

Bug Description

On a machine with the ax88179 USB3 ethernet adapter, the adapter works poorly.

As long as there is a moderate usage of the ethernet connection everything seems to work fine.

As soon as the usage pattern changes and a continuous throughput is required (typical case teleconferencing via teams, skype, etc) the adapter stops working and the following line gets repeated many many times in the system logs:

ax88179_178a 4-1.4:2.0 eth1: Failed to write reg index 0x0001: -32

ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-image-5.19.0-35-generic 5.19.0-35.36~22.04.1
ProcVersionSignature: Ubuntu 5.19.0-35.36~22.04.1-generic 5.19.17
Uname: Linux 5.19.0-35-generic x86_64
NonfreeKernelModules: zfs zunicode zavl icp zcommon znvpair
ApportVersion: 2.20.11-0ubuntu82.3
Architecture: amd64
CasperMD5CheckResult: unknown
CurrentDesktop: KDE
Date: Wed Mar 22 15:35:38 2023
EcryptfsInUse: Yes
InstallationDate: Installed on 2020-02-16 (1130 days ago)
InstallationMedia: Kubuntu 19.10 "Eoan Ermine" - Release amd64 (20191017)
SourcePackage: linux-signed-hwe-5.19
UpgradeStatus: Upgraded to jammy on 2022-06-03 (292 days ago)

Revision history for this message
Sergio Callegari (callegar) wrote :
Revision history for this message
Sergio Callegari (callegar) wrote :
Download full text (5.2 KiB)

Following trace is also obtained:

[18818.672366] ------------[ cut here ]------------
[18818.672374] NETDEV WATCHDOG: enxf8e43b7bdd6c (ax88179_178a): transmit queue 0 timed out
[18818.672422] WARNING: CPU: 3 PID: 38259 at net/sched/sch_generic.c:529 dev_watchdog+0x21f/0x230
[18818.672437] Modules linked in: cdc_mbim cdc_wdm cdc_ncm cdc_ether tls snd_seq_dummy ccm nft_masq nft_chain_nat nf_nat nvme_fabrics bridge stp llc zfs(PO) zunicode(PO) zzstd(O) zlua(O) zavl(PO) icp(PO) zcommon(PO) znvpair(PO) spl(O) vhost_vsock vmw_vsock_virtio_transport_common vhost vhost_iotlb vsock rfcomm vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) ip6t_REJECT nf_reject_ipv6 xt_hl ip6_tables ip6t_rt cmac algif_hash algif_skcipher af_alg bnep ipt_REJECT nf_reject_ipv4 xt_LOG nf_log_syslog xt_comment xt_recent xt_multiport nft_limit xt_limit xt_addrtype xt_tcpudp xt_conntrack nf_conntrack snd_hda_codec_hdmi nf_defrag_ipv6 snd_sof_pci_intel_cnl nf_defrag_ipv4 snd_sof_intel_hda_common nft_compat soundwire_intel soundwire_generic_allocation soundwire_cadence snd_sof_intel_hda snd_sof_pci snd_sof_xtensa_dsp snd_sof snd_sof_utils snd_soc_hdac_hda snd_hda_ext_core snd_soc_acpi_intel_match snd_hda_codec_realtek snd_soc_acpi soundwire_bus snd_hda_codec_generic ledtrig_audio snd_soc_core
[18818.672556] snd_compress ac97_bus snd_pcm_dmaengine snd_hda_intel snd_intel_dspcfg intel_rapl_msr snd_intel_sdw_acpi intel_rapl_common snd_hda_codec intel_tcc_cooling nf_tables snd_hda_core x86_pkg_temp_thermal intel_powerclamp btusb coretemp nfnetlink binfmt_misc snd_hwdep btrtl snd_pcm btbcm iwlmvm uvcvideo btintel kvm_intel snd_seq_midi btmtk mei_hdcp mei_pxp snd_seq_midi_event mac80211 videobuf2_vmalloc kvm libarc4 snd_rawmidi videobuf2_memops bluetooth videobuf2_v4l2 snd_seq videobuf2_common rapl snd_seq_device videodev ecdh_generic intel_cstate nls_iso8859_1 snd_timer input_leds mc joydev ecc iwlwifi snd cmdlinepart serio_raw intel_wmi_thunderbolt spi_nor mei_me mtd cfg80211 soundcore mei intel_pch_thermal intel_hid mac_hid sparse_keymap acpi_pad sch_fq_codel msr parport_pc ppdev lp parport ramoops reed_solomon pstore_blk pstore_zone efi_pstore ip_tables x_tables autofs4 btrfs blake2b_generic xor raid6_pq libcrc32c hid_generic usbhid hid ax88179_178a usbnet mii i915 drm_buddy
[18818.672677] i2c_algo_bit ttm drm_display_helper cec rc_core drm_kms_helper syscopyarea sysfillrect sysimgblt rtsx_pci_sdmmc nvme i2c_i801 spi_intel_pci fb_sys_fops crct10dif_pclmul crc32_pclmul ghash_clmulni_intel aesni_intel crypto_simd cryptd xhci_pci psmouse nvme_core r8169 i2c_smbus spi_intel realtek thunderbolt rtsx_pci drm ahci libahci xhci_pci_renesas wmi video
[18818.672720] CPU: 3 PID: 38259 Comm: skypeforlinux Tainted: P OE 5.19.0-35-generic #36~22.04.1-Ubuntu
[18818.672726] Hardware name: SCHENKER SCHENKER_SLIM14_SSL14L19/N141CU , BIOS 1.07.04RTR1 10/02/2019
[18818.672729] RIP: 0010:dev_watchdog+0x21f/0x230
[18818.672738] Code: 00 e9 31 ff ff ff 4c 89 e7 c6 05 ef ac 70 01 01 e8 c6 9d f8 ff 44 89 f1 4c 89 e6 48 c7 c7 a8 da d0 b0 48 89 c2 e8 89 e3 1b 00 <0f> 0b e9 22 ff ff ff 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00
[18818.672741] RSP: 0000:ffffa020869bbdb0 EF...

Read more...

Revision history for this message
B Tasker (z-ubunts-0) wrote :

I encountered the same issue with an Anker USB-C hub+ethernet using the same chipset:

root@ratchett:~# ethtool -i enxa0cec86958e9
driver: ax88179_178a
version: 5.19.0-35-generic
firmware-version:
expansion-rom-version:
bus-info: 2-1.4:1.0
supports-statistics: no
supports-test: no
supports-eeprom-access: yes
supports-register-dump: no
supports-priv-flags: no

Hunting around led me to an upstream kernel bug report: https://bugzilla.kernel.org/show_bug.cgi?id=212731

One of the comments in there notes that there's an out-of-band fix at https://github.com/nothingstopsme/AX88179_178A_Linux_Driver

Using that does seem to have resolved the issue for me - I've chucked some fairly heavy workloads across the network without issue, whereas before starting a simple video call would kill the adapter.

Installation steps are:

git clone https://github.com/nothingstopsme/AX88179_178A_Linux_Driver.git
cd AX88179_178A_Linux_Driver/source
make
sudo make install
sudo reboot

Revision history for this message
Sergio Callegari (callegar) wrote :

Just a quick note to inform that the issue is also present with the ubuntu 6.1.0-1008-oem kernel which should be extra close to the tip of mainline. Thus, the issue is most likely still present in mainline.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.