You are not logged in.

#1 2025-01-25 10:18:32

Grigorios
Member
Registered: 2021-01-10
Posts: 27

Problems with RTL8852AE

Hi there!

I am experiencing problems with the RTL8852AE WiFi adapter. The driver for this card is included in the kernel

My system is up to date and I am running the latest kernel at this time: 6.12.10-arch1-1

Here the lspci -nnk output.

lspci -nnk
03:00.0 Network controller [0280]: Realtek Semiconductor Co., Ltd. RTL8852AE 802.11ax PCIe Wireless Network Adapter [10ec:8852]
	Subsystem: Lenovo Device [17aa:4852]
	Kernel modules: rtw89_8852ae

For whatever reason, this module is not loaded when booting the system, therefore If I try to load it with modprobe and check the dmesg logs I see the following:

dmesg | grep rtw
[  841.038799] rtw89_8852ae 0000:03:00.0: loaded firmware rtw89/rtw8852a_fw.bin
[  841.038851] rtw89_8852ae 0000:03:00.0: enabling device (0000 -> 0003)
[  841.039211] rtw89_8852ae 0000:03:00.0: DMA addr 0x00000005339b0040+11494 overflow (mask ffffffff, bus limit 0).
[  841.039223] Modules linked in: rtw89_8852ae(+) rtw89_8852a rtw89_pci rtw89_core mac80211 libarc4 cfg80211 rfcomm snd_seq_dummy snd_hrtimer snd_seq xt_conntrack xt_MASQUERADE bridge stp llc nf_conntrack_netlink xfrm_user xfrm_algo xt_addrtype nft_compat wireguard curve25519_x86_64 libchacha20poly1305 chacha_x86_64 poly1305_x86_64 libcurve25519_generic libchacha ip6_udp_tunnel udp_tunnel overlay nf_nat_tftp nf_conntrack_tftp nft_fib_inet nft_fib_ipv4 nft_fib_ipv6 nft_fib cmac algif_hash algif_skcipher af_alg bnep lm92 snd_acp_legacy_mach snd_acp_mach snd_soc_nau8821 snd_soc_dmic snd_acp3x_rn snd_acp3x_pdm_dma snd_sof_amd_acp70 snd_sof_amd_acp63 snd_soc_acpi_amd_match snd_sof_amd_vangogh snd_sof_amd_rembrandt snd_sof_amd_renoir vfat snd_sof_amd_acp fat snd_sof_pci snd_sof_xtensa_dsp r8153_ecm amd_atl intel_rapl_msr cdc_ether usbnet intel_rapl_common snd_sof snd_sof_utils snd_pci_ps snd_amd_sdw_acpi snd_ctl_led soundwire_amd soundwire_generic_allocation snd_hda_codec_realtek soundwire_bus snd_hda_codec_generic ee1004
[  841.039470]  rtw89_pci_probe+0x519/0xa70 [rtw89_pci 9b8389e392f7ba8a3c89a10b673ab81da36e0826]
[  841.039509]  ? __pfx_rtw89_8852ae_driver_init+0x10/0x10 [rtw89_8852ae f8e19e1ce1318d6192e84f60a7cac140cd66033d]
[  841.039597] rtw89_8852ae 0000:03:00.0: failed to init rx buf 0
[  841.039604] rtw89_8852ae 0000:03:00.0: failed to alloc rx ring 0
[  841.039606] rtw89_8852ae 0000:03:00.0: failed to alloc dma rx rings
[  841.039613] rtw89_8852ae 0000:03:00.0: failed to alloc pci trx rings
[  841.039618] rtw89_8852ae 0000:03:00.0: failed to setup pci resource
[  841.039709] rtw89_8852ae 0000:03:00.0: probe with driver rtw89_8852ae failed with error -16
[ 1643.882239] rtw89_8852ae 0000:03:00.0: loaded firmware rtw89/rtw8852a_fw.bin
[ 1643.882652] rtw89_8852ae 0000:03:00.0: failed to init rx buf 0
[ 1643.882658] rtw89_8852ae 0000:03:00.0: failed to alloc rx ring 0
[ 1643.882660] rtw89_8852ae 0000:03:00.0: failed to alloc dma rx rings
[ 1643.882667] rtw89_8852ae 0000:03:00.0: failed to alloc pci trx rings
[ 1643.882672] rtw89_8852ae 0000:03:00.0: failed to setup pci resource
[ 1643.882761] rtw89_8852ae 0000:03:00.0: probe with driver rtw89_8852ae failed with error -16

Of course since the module is not loading, I also don't see the device when using

ip a s

Do any individuals more educated than I am make sense of these logs?

Thank you for your time, have a good day.

Last edited by Grigorios (2025-01-25 11:39:52)

Offline

#2 2025-01-25 15:16:31

Grigorios
Member
Registered: 2021-01-10
Posts: 27

Re: Problems with RTL8852AE

So, after further research, I figured out that it works with the kernel version 6.6.72-1-lts, it still does not load automatically, but at least the modprobe does not fail.
The issue described on Github mentions that

Larry Finger, long time Linux kernel wireless developer, passed away on June 21st 2024.

which may be a hint, on why the driver is currently having issues with newer kernels. It is also mentioned that a certain commit ID seems to work with a newer kernel, although I have not tried that yet, and for the meanwhile, I am fine using an older kernel, and manually using modprobe. Still curios If somebody can assist me in figuring out, why the module is not loaded automatically.

Last edited by Grigorios (2025-01-25 15:17:04)

Offline

#3 2025-01-25 15:31:08

Head_on_a_Stick
Member
From: The Wirral
Registered: 2014-02-20
Posts: 8,999
Website

Re: Problems with RTL8852AE

The driver is part of the mainline kernel now, I think Larry only dealt with out-of-tree stuff. RIP Larry, what a legend.

If the firmware loads fine with an older kernel you could try to narrow down the problem with a bisect.


Jin, Jîyan, Azadî

Offline

#4 2025-01-25 16:23:05

loqs
Member
Registered: 2014-03-06
Posts: 18,654

Re: Problems with RTL8852AE

Is the issue still present in 6.13 which is in testing?  If so please post the full output of dmesg.

Offline

#5 2025-01-25 22:51:24

Grigorios
Member
Registered: 2021-01-10
Posts: 27

Re: Problems with RTL8852AE

loqs wrote:

Is the issue still present in 6.13 which is in testing?  If so please post the full output of dmesg.

Hi! So I tested it with a self build (vanilla) live ISO with only adding the testing repos for the 6.13 kernel version and it did work normal. I also check with a older vanilla live iso with kernel version 6.10 and it worked as well. Leaving me with two assumptions:

  1. It broke with kernel version 6.12

  2. It's my installation that somehow got borked (even though I didn't change anything, expect upgrading)

Last edited by Grigorios (2025-01-25 22:56:05)

Offline

#6 2025-01-25 22:52:37

Grigorios
Member
Registered: 2021-01-10
Posts: 27

Re: Problems with RTL8852AE

Head_on_a_Stick wrote:

The driver is part of the mainline kernel now, I think Larry only dealt with out-of-tree stuff. RIP Larry, what a legend.

If the firmware loads fine with an older kernel you could try to narrow down the problem with a bisect.

RIP indeed.

Thanks for the hint with the bisect, I might try that, If the upcoming kernel 6.13 doesn't fix it on my machine.

Last edited by Grigorios (2025-01-25 22:55:22)

Offline

Board footer

Powered by FluxBB