From: "Ryan Walklin" <ryan@testtoast.com>
To: pkshih@realtek.com, linux-wireless@vger.kernel.org
Cc: linux-sunxi@lists.linux.dev
Subject: [BUG] RTL8821CS panic on entering power-save mode
Date: Wed, 13 Mar 2024 11:42:44 +1300 [thread overview]
Message-ID: <f3656995-b8fe-49c4-93b7-67612c685954@app.fastmail.com> (raw)
Hi,
I have an Allwinner-H700-based platform (Anbernic RG35XX+) which I am working on mainline u-boot/kernel support for. The RGL8821CS chip on this board works when configured with a 32MHz clock and 3.3v VCC and the RTW88 kernel driver, however the BT is unstable with extensive logging about LPS state entry failures, and the driver will eventually crash with the following:
[ 830.797592] ------------[ cut here ]------------
[ 830.802268] firmware failed to ack driver for entering Deep Power mode
[ 830.808931] WARNING: CPU: 1 PID: 67 at drivers/net/wireless/realtek/rtw88/ps.c:105 rtw_power_mode_change+0x130/0x180 [rtw88_core]
[ 830.820663] Modules linked in: btrfs blake2b_generic libcrc32c xor xor_neon raid6_pq zstd_compress af_alg rtw88_8821cs rtw88_8821c 6
[ 830.846661] CPU: 1 PID: 67 Comm: kworker/u16:4 Not tainted 6.8.0-rc7-next-20240308-00004-gee0f4864bb48 #8
[ 830.856231] Hardware name: Anbernic RG35XX Plus (DT)
[ 830.861198] Workqueue: phy0 rtw_watch_dog_work [rtw88_core]
[ 830.866831] pstate: 60000005 (nZCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--)
[ 830.873796] pc : rtw_power_mode_change+0x130/0x180 [rtw88_core]
[ 830.879763] lr : rtw_power_mode_change+0x130/0x180 [rtw88_core]
[ 830.885730] sp : ffff800082fabcc0
[ 830.889047] x29: ffff800082fabcc0 x28: 0000000000000000 x27: 0000000000000000
[ 830.896192] x26: ffff00000e670900 x25: ffff0000042a2b80 x24: 0000000000000000
[ 830.903337] x23: 0000000000000001 x22: 0000000000068dbc x21: 0000000000000000
[ 830.910482] x20: 0000000000000000 x19: ffff00000e671fc0 x18: 0000000000000006
[ 830.917627] x17: 0000000000000000 x16: 0000000000000080 x15: 076e076907720765
[ 830.924772] x14: 0774076e07650720 x13: ffff8000825a26c0 x12: 0000000000000954
[ 830.931916] x11: 000000000000031c x10: ffff8000825fa6c0 x9 : ffff8000825a26c0
[ 830.939061] x8 : 00000000ffffefff x7 : ffff8000825fa6c0 x6 : 80000000fffff000
[ 830.946205] x5 : 0000000000000000 x4 : 0000000000000000 x3 : 0000000000000000
[ 830.953348] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff000003264500
[ 830.960493] Call trace:
[ 830.962943] rtw_power_mode_change+0x130/0x180 [rtw88_core]
[ 830.968565] rtw_sdio_deep_ps+0x8c/0xd8 [rtw88_sdio]
[ 830.973547] rtw_enter_lps+0xec/0x148 [rtw88_core]
[ 830.978387] rtw_watch_dog_work+0x298/0x2a4 [rtw88_core]
[ 830.983746] process_one_work+0x148/0x2a0
[ 830.987771] worker_thread+0x2fc/0x40c
[ 830.991530] kthread+0x110/0x114
[ 830.994768] ret_from_fork+0x10/0x20
[ 830.998352] ---[ end trace 0000000000000000 ]---
FW version is
[ 12.561710] rtw_8821cs mmc1:0001:1: Firmware version 24.11.0, H2C version 12
[ 13.471889] Bluetooth: hci0: RTL: fw version 0x75b8f098
Thanks,
Ryan
next reply other threads:[~2024-03-12 22:44 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-12 22:42 Ryan Walklin [this message]
2024-03-13 6:05 ` [BUG] RTL8821CS panic on entering power-save mode Ping-Ke Shih
2024-03-13 20:11 ` [BUG] rtw88: RTL8821CS warning " Ryan Walklin
2024-03-15 9:30 ` [BUG] RTL8821CS panic " Ryan Walklin
2024-03-15 13:47 ` Ping-Ke Shih
2024-03-17 8:40 ` Ryan Walklin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f3656995-b8fe-49c4-93b7-67612c685954@app.fastmail.com \
--to=ryan@testtoast.com \
--cc=linux-sunxi@lists.linux.dev \
--cc=linux-wireless@vger.kernel.org \
--cc=pkshih@realtek.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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 read-only IMAP folder(s) and NNTP newsgroup(s).