[Bug 296157] if_ure(4): RTL8153 stalls on ASUS Meteor Lake USB controller with URE_MAX_TX=4; fixed by URE_MAX_TX=1

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 20 Jun 2026 04:02:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296157

            Bug ID: 296157
           Summary: if_ure(4): RTL8153 stalls on ASUS Meteor Lake USB
                    controller with URE_MAX_TX=4; fixed by URE_MAX_TX=1
           Product: Base System
           Version: 16.0-CURRENT
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: usb
          Assignee: usb@FreeBSD.org
          Reporter: oleglelchuk@gmail.com

Created attachment 271964
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=271964&action=edit
The fix.

FreeBSD version:
  FreeBSD 16.0-CURRENT main-n286726-943bfad1097f
  GENERIC-NODEBUG amd64

  System:
  ASUS S5506MA-WS76

  Relevant USB controllers:
  xhci0: Intel Meteor Lake-P Thunderbolt 4 USB Controller
    vendor=0x8086 device=0x7ec0

  xhci1: Intel Meteor Lake-P USB 3.2 Gen 2x1 xHCI Host Controller
    vendor=0x8086 device=0x7e7d

  USB Ethernet adapter:
  Realtek RTL8153 USB 10/100/1000 LAN
    vendor=0x0bda product=0x8153
    chipver: 5c20
    driver: if_ure
    interface: ue0
    media: 1000baseT full-duplex

  USB topology:
  The RTL8153 adapter is connected through an external GenesysLogic USB3.1 hub:
    GenesysLogic USB3.1 Hub, rev 3.20/6.63

  Problem:
  On this ASUS Meteor Lake system, the Realtek RTL8153 adapter repeatedly
stalls
  during large LAN transfers, for example when downloading a large file to this
  machine via SFTP.

  The same Realtek RTL8153 adapter and the same GenesysLogic USB hub do not
stall
  on a Dell Latitude 5590 with the stock if_ure driver.

  Symptoms:
  - Transfer starts at approximately gigabit speed.
  - Transfer then stalls, resumes, and stalls again.
  - Link remains up at 1000baseT full-duplex.
  - Disabling checksum/offload features did not fix the issue.
  - The problem appears on the USB bulk write path.

  Diagnostics:
  I added temporary logging in if_ure's bulk read/write callbacks. During the
  stall, the driver repeatedly printed:

    ure0: bulk write error: USB_ERR_TIMEOUT
    ure0: bulk write error: USB_ERR_IOERROR

  No equivalent bulk read error pattern was observed.

  Interface counters during/after a failing run showed increasing output errors
  and drops, for example:

    ue0: Oerrs increased
    ue0: Drop increased

  Workarounds tested:
  1. Disabling RX/TX checksum offloads:
     No improvement.

  2. Preventing RTL8153 5c20 U2P3 low-power enable:
     No improvement.

  3. Disabling TX aggregation by sending one Ethernet frame per USB transfer:
     Stalls disappeared, but throughput dropped to about 25 MB/s.

  4. Reducing concurrent USB TX transfers while preserving TX batching:
     Changed URE_MAX_TX from 4 to 1:

       --- sys/dev/usb/net/if_urereg.h
       +++ sys/dev/usb/net/if_urereg.h
       @@
       -#define URE_MAX_TX 4
       +#define URE_MAX_TX 1

     Result:
     - Stalls disappeared completely.
     - LAN SFTP download speed remained slightly above 111 MB/s, approximately
       888 Mbit/s.
     - This is effectively full gigabit throughput.
     - TX batching was still enabled; only concurrent USB TX transfer count was
       reduced.

  Expected behavior:
  The RTL8153 should sustain large LAN transfers without USB bulk write
timeouts
  or stalls.

  Actual behavior:
  With stock if_ure using URE_MAX_TX=4, this ASUS Meteor Lake USB path
repeatedly
  hits USB bulk write errors and stalls.

  Known-good local workaround:
  Set URE_MAX_TX to 1 while keeping URE_TX_BUFSZ at 16384 and preserving normal
  TX batching.

  Notes:
  This may be host-controller/topology specific. The same RTL8153 adapter and
  GenesysLogic hub work correctly on a Dell Latitude 5590 with the stock
driver.
  The failure appears specific to the ASUS S5506MA-WS76 / Meteor Lake xHCI path
  with multiple concurrent if_ure USB TX transfers.

  Possible upstream direction:
  Consider reducing URE_MAX_TX for RTL8153, adding a tunable, or adding a quirk
  for affected host/device combinations. In this case, URE_MAX_TX=1 does not
  reduce observed gigabit LAN throughput, but it eliminates the stalls.

-- 
You are receiving this mail because:
You are the assignee for the bug.