All of lore.kernel.org
 help / color / mirror / Atom feed
* wifi: rtw88: 8821CU hangs after some number of power-off/on cycles
@ 2024-05-27 17:34 Marcin Ślusarz
  2024-05-27 17:34 ` [PATCH 1/2] wifi: rtw88: use RTW_FLAG_RUNNING for deciding whether to enter/leave IPS Marcin Ślusarz
                   ` (3 more replies)
  0 siblings, 4 replies; 26+ messages in thread
From: Marcin Ślusarz @ 2024-05-27 17:34 UTC (permalink / raw)
  To: linux-wireless; +Cc: Marcin Ślusarz

From: Marcin Ślusarz <mslusarz@renau.com>

If I don't connect to any Wifi network, after around 10 minutes, the device
hangs with endless spamming of:
rtw_8821cu 1-1:1.2: rtw_usb_reg_sec: reg 0x4e0, usb write 1 fail, status: -71
killing both Wifi and Bluetooth part of the device.

On arm, just leaving the wifi device unconnected kills it in up to 20 minutes.
If I keep restarting wpa_supplicant I can trigger it within a minute.
Looping "ifconfig wlan0 down; ifconfig wlan0 up" also triggers it within a minute.

On x86_64 system the only way I could trigger this was via ifconfig loop,
but it took 3 hours and 20 minutes to do it.

The only thing that can "fix" the device is replugging it.

I found out that the reason for those hangs is a power-off+on sequence that's
triggered by the above steps.

Disabling power-off for that chip "fixes" the issue. The patches below
implement that, but I'm not seriously proposing them for merging.

Marcin Ślusarz (2):
  wifi: rtw88: use RTW_FLAG_RUNNING for deciding whether to enter/leave
    IPS
  wifi: rtw88: disable power offs for 8821C

 drivers/net/wireless/realtek/rtw88/main.c | 14 ++++++++------
 drivers/net/wireless/realtek/rtw88/ps.c   |  4 ++--
 2 files changed, 10 insertions(+), 8 deletions(-)

-- 
2.25.1


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

end of thread, other threads:[~2024-06-17  1:56 UTC | newest]

Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-27 17:34 wifi: rtw88: 8821CU hangs after some number of power-off/on cycles Marcin Ślusarz
2024-05-27 17:34 ` [PATCH 1/2] wifi: rtw88: use RTW_FLAG_RUNNING for deciding whether to enter/leave IPS Marcin Ślusarz
2024-05-28  3:56   ` Ping-Ke Shih
2024-05-28 10:53     ` Marcin Ślusarz
2024-05-27 17:34 ` [PATCH 2/2] wifi: rtw88: disable power offs for 8821C Marcin Ślusarz
2024-05-27 18:43 ` wifi: rtw88: 8821CU hangs after some number of power-off/on cycles Bitterblue Smith
2024-05-28 10:42   ` Marcin Ślusarz
2024-05-28 12:25     ` Bitterblue Smith
2024-05-28 12:38       ` Marcin Ślusarz
2024-05-28  3:52 ` Ping-Ke Shih
2024-05-28 10:52   ` Marcin Ślusarz
2024-05-29  1:52     ` Ping-Ke Shih
2024-05-29 15:53       ` Marcin Ślusarz
2024-05-30  3:13         ` Ping-Ke Shih
2024-06-03 14:52           ` Marcin Ślusarz
2024-06-03 14:55             ` [PATCH] wifi: rtw88/usb: stop rx work before potential power off Marcin Ślusarz
2024-06-04  0:57               ` Ping-Ke Shih
2024-06-14 11:35                 ` Marcin Ślusarz
2024-06-14 12:13                   ` [PATCH v2 1/2] wifi: rtw88: 8821cu: keep power on always for 8821CU Marcin Ślusarz
2024-06-14 12:13                     ` [PATCH v2 2/2] wifi: rtw88/usb: stop rx work before potential power off Marcin Ślusarz
2024-06-17  1:56                       ` Ping-Ke Shih
2024-06-17  1:40                     ` [PATCH v2 1/2] wifi: rtw88: 8821cu: keep power on always for 8821CU Ping-Ke Shih
2024-06-17  1:47                   ` [PATCH] wifi: rtw88/usb: stop rx work before potential power off Ping-Ke Shih
2024-06-03 14:56             ` [PATCH] wifi: rtw88: usb: drop rx skbs when device is not running Marcin Ślusarz
2024-06-04  0:50             ` wifi: rtw88: 8821CU hangs after some number of power-off/on cycles Ping-Ke Shih
2024-06-14 11:42               ` Marcin Ślusarz

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.