linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* rtw88: rtw8822cu (LM842) -> failed to get tx report from firmware
@ 2023-04-06 10:41 petter
  2023-04-11 12:48 ` s.hauer
  2023-05-24 10:45 ` s.hauer
  0 siblings, 2 replies; 13+ messages in thread
From: petter @ 2023-04-06 10:41 UTC (permalink / raw)
  To: linux-wireless@vger.kernel.org
  Cc: s.hauer@pengutronix.de, pkshih@realtek.com,
	tony0620emma@gmail.com

[-- Attachment #1: Type: text/plain, Size: 1810 bytes --]

Hi,

I have seen a very similar issue as Andreas. It was found when streaming a mender file (using mender install <url> from my arm device. But I have also managed to reproduce a similar issue by flooding the interface using iperf. 

on target:
$ sudo iperf -s -u

On host:
$ iperf -c <ip> -u -b 200M -t 300

Then it will almost instantly get problems causing the lm842 dongle to stop working.

I'm using below fw:
  $ sudo dmesg | grep 8822c
  [   19.282167] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_fw.bin
  [   19.299025] Bluetooth: hci0: RTL: loading rtl_bt/rtl8822cu_config.bin
  [   19.628570] rtw_8822cu 1-1:1.2: WOW Firmware version 9.9.4, H2C version 15
  [   19.641604] rtw_8822cu 1-1:1.2: Firmware version 9.9.15, H2C version 15


$ iperf -s -u
------------------------------------------------------------
Server listening on UDP port 5001
UDP buffer size:  176 KByte (default)
------------------------------------------------------------
[  415.791320] rtw_8822cu 1-1:1.2: failed to get rx_queue, overflow
[  415.797443] rtw_8822cu 1-1:1.2: failed to get rx_queue, overflow
[  415.803511] rtw_8822cu 1-1:1.2: failed to get rx_queue, overflow
[  415.809635] rtw_8822cu 1-1:1.2: failed to get rx_queue, overflow
[  438.102270] rtw_8822cu 1-1:1.2: failed to get tx report from firmware
[  441.446726] rtw_8822cu 1-1:1.2: failed to send h2c command
[  471.480932] rtw_8822cu 1-1:1.2: firmware failed to report density after scan


Any ideas what might be the cause of this? I have also tried to use the latest patch from Sascha that seems to be aimed to fix some issue I thought might have been related to this(https://lore.kernel.org/linux-wireless/20230404072508.578056-1-s.hauer@pengutronix.de/T/#m54b7c8c604b91cfce470fcec8fc7d4c20f3056c9), but still get same behavior.

BR,
Petter Mabäcker


^ permalink raw reply	[flat|nested] 13+ messages in thread
* rtw88: rtw8822cu (LM842) -> failed to get tx report from firmware
@ 2023-02-20 10:17 Andreas Henriksson
  0 siblings, 0 replies; 13+ messages in thread
From: Andreas Henriksson @ 2023-02-20 10:17 UTC (permalink / raw)
  To: linux-wireless; +Cc: Sascha Hauer, Ping-Ke Shih, Yan-Hsuan Chuang

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/20230210111632.1985205-1-s.hauer@pengutronix.de/
[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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2023-06-30 16:47 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-06 10:41 rtw88: rtw8822cu (LM842) -> failed to get tx report from firmware petter
2023-04-11 12:48 ` s.hauer
2023-05-08 13:29   ` Petter Mabacker
2023-05-08 13:46     ` Sascha Hauer
2023-05-09  7:43       ` Petter Mabacker
2023-05-09  9:08         ` Sascha Hauer
2023-05-09 15:08           ` Gabriel Tisan
2023-05-11 13:26             ` Petter Mabacker
2023-05-12  7:29               ` Gabriel Tisan
2023-05-24 10:45 ` s.hauer
2023-05-26  5:55   ` Petter Mabacker
2023-06-30 16:47     ` petter
  -- strict thread matches above, loose matches on Subject: below --
2023-02-20 10:17 Andreas Henriksson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).