Load induced RX bug in the r8152 driver on 5.15 and 5.17

Description

A high load triggered receiver bug in the r8152 USB Ethernet driver on 5.15 and 5.17 affects rockchip64 Orange Pi R1plus LTS and has been reported in Nano Pi R2S and probably affects Orange Pi R1plus and others. The bug kills the RX interface and it requires power down to reset.
I can trigger the bug reliably with bidirectional high load on Orange Pi R1plus LTS.
The board works well on 5.10 with TX offload disabled and the same is reported for Nano Pi R2S in the forums.
I am testing the possibility of reverting to the 5.10 driver (v2.15.0 (2021/04/15) nic_swsd@realtek.com) with with TX offload disabled by default.
See below - enable xhci trb quirk in rockchip64-current fixes the issue.


Environment

None

Checklist

hide

Activity

Show:

Kat Schwarz May 5, 2022 at 8:49 AM
Edited

While researching options for disabling TX offload, I found a thread on the forums for Helios that talked about xhci trb quirk in rockchip64-current.
I followed it to this commit,
The quirk is currently funcional for dwc3 xhci usb on rockchip64.
It appears that the quirk may not have been applied to rk3328 in the past, so I tried including it in rk3328.dtsi, and it worked very well with the mainline driver on 5.15, 5.16 and 5.17. This means that it is not necessary to revert the driver to the one in 5.10.
I have modified AR-1172 and prepared a PR 3763 to include the quirk in 5.15 and 5.17 rk3328.dtsi.

Depends on:

Done

Details

Assignee

Reporter

Fix versions

Priority

Created May 3, 2022 at 12:22 AM
Updated August 30, 2022 at 3:45 PM
Resolved May 22, 2022 at 8:43 AM