2023-02-20 10:17:48

by Andreas Henriksson

[permalink] [raw]
Subject: rtw88: rtw8822cu (LM842) -> failed to get tx report from firmware

Hello,

After the rtw88 "stall" fixes[1], I'm now experiencing (yet) another big problem.
A normal wget download[2] seems to work reliably but when I download
~200MB of data using a particular application I'm able to trigger:

[ 20.014243] rtw_8822cu 1-1:1.2: WOW Firmware version 9.9.4, H2C version 15
[ 20.036973] rtw_8822cu 1-1:1.2: Firmware version 9.9.10, H2C version 15
...
[ 1348.527433] rtw_8822cu 1-1:1.2: failed to get tx report from firmware
[ 1348.875727] rtw_8822cu 1-1:1.2: timed out to flush queue 3
[ 1349.215747] rtw_8822cu 1-1:1.2: timed out to flush queue 3
[ 1360.776594] rtw_8822cu 1-1:1.2: firmware failed to report density after scan
[ 1381.145113] rtw_8822cu 1-1:1.2: firmware failed to report density after scan
[ 1392.754384] rtw_8822cu 1-1:1.2: firmware failed to report density after scan
[ 1404.053595] rtw_8822cu 1-1:1.2: firmware failed to report density after scan
[ 1419.939781] rtw_8822cu 1-1:1.2: firmware failed to report density after scan


I've also reproduced the problem with newer firmware:

[ 19.536307] rtw_8822cu 1-1:1.2: Firmware version 9.9.14, H2C version 15
[ 19.722697] rtw_8822cu 1-1:1.2: WOW Firmware version 9.9.4, H2C version 15
...
[ 5733.776397] rtw_8822cu 1-1:1.2: failed to get tx report from firmware
[ 5734.157233] rtw_8822cu 1-1:1.2: timed out to flush queue 3
[ 5734.596899] rtw_8822cu 1-1:1.2: timed out to flush queue 3
[ 5770.988199] rtw_8822cu 1-1:1.2: firmware failed to report density after scan
[ 5812.408019] rtw_8822cu 1-1:1.2: firmware failed to report density after scan
[ 5853.716121] rtw_8822cu 1-1:1.2: firmware failed to report density after scan
[ 5895.074960] rtw_8822cu 1-1:1.2: firmware failed to report density after scan


(The last message keeps repeating until LM842 dongle is removed.)


I can reproduce this problem and have personally only seen it yet on
2.4GHz but have heard from others who for some reason more easily
reproduce the problem that it has happened for them also on 5GHz. For me
I need multiple attempts, but I can reproduce the problem in the end.

I've also captured usbmon (both debugfs 1u and tcpdump/pcap usbmon1). If
anyone is interested in looking at them please contact me to arrange,
because the logs are way too big to attach here.


Hoping someone has an idea on how to avoid this problem or can fix it!

Regards,
Andreas Henriksson



[1]: https://lore.kernel.org/linux-wireless/[email protected]/
[2]: wget -O /dev/null http://speedtest.tele2.net/10GB.zip



PS. I've also reported a couple of rtw88 bugs to bugzilla:
https://bugzilla.kernel.org/show_bug.cgi?id=217033
https://bugzilla.kernel.org/show_bug.cgi?id=217034