You are not logged in.

#1 2022-01-24 14:43:22

DireWolf
Member
Registered: 2021-04-15
Posts: 28

[SOLVED] wireless device wlo1 not getting created.

Hello All,

I just upgraded to the 5.16 kernel. And wlo1 wireless interface is gone.
My laptop has the RTL8852AE card and to use it I have to install the rtw89 driver(https://github.com/lwfinger/rtw89).
The driver and the card were working perfectly earlier. After the kernel upgrade I reinstalled the driver.
But now the card doesn't show up as a wireless interface.

dmesg says this:

[    2.132190] rtw89core: loading out-of-tree module taints kernel.
[    2.135586] rtw89core: module verification failed: signature and/or required key missing - tainting kernel
[    2.234146] rtw89_pci 0000:02:00.0: enabling device (0000 -> 0003)
[    2.237434] RIP: 0010:rtw89_chip_info_setup+0x22/0x130 [rtw89core]
[    2.237494]  rtw89_pci_probe+0x9f1/0xba0 [rtw89_pci 930de7c3457dc12b027418737871deeab07e71ee]

Thanks,
DireWolf

Last edited by DireWolf (2022-01-26 16:43:31)

Offline

#2 2022-01-24 14:54:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,729
Website

Re: [SOLVED] wireless device wlo1 not getting created.

DireWolf wrote:

After the kernel upgrade I reinstalled the driver.

How exactly did you do this?  Did you rebuild it, or just reinstall the previously build version?  Are you using one of the AUR packages?  If not, you probably should be: specifically, a dkms version would help avoid needing to manually rebuild it every time there is a kernel update.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#3 2022-01-24 18:43:53

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,771
Website

Re: [SOLVED] wireless device wlo1 not getting created.

The rtw89 driver was mainlined for 5.16 so Larry Finger's version can be removed. I also have an RTL8852AE smile

EDIT: and this might also help you in future:

$ cat /etc/modprobe.d/rtw89.conf  
options rtw89_core disable_ps_mode=Y
options rtw89_pci disable_aspm_l1=Y disable_aspm_l1ss=Y
$

Realtek drivers really are rubbish...

Last edited by Head_on_a_Stick (2022-01-25 08:18:06)

Offline

#4 2022-01-26 06:21:03

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED] wireless device wlo1 not getting created.

@Trilby, I rebuilt it and then installed it. I tried installing both the AUR dkms one and Larry Finger's module.

It no longer works, And I am not sure which driver its using right now, the one shipped with the kernel or the one I installed. Is there someway to uninstall the new driver? not just unload it?
And then reinstall the kernel one?

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852AE 802.11ax PCIe Wireless Network Adapter
        DeviceName: Realtek Wireless LAN + BT
        Subsystem: Hewlett-Packard Company Device 88e1
        Flags: bus master, fast devsel, latency 0, IRQ 79, IOMMU group 9
        I/O ports at f000 [size=256]
        Memory at fcf00000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: <access denied>
        Kernel driver in use: rtw89_pci
        Kernel modules: rtw89_pci, rtw89pci

Its using *some* rtw89 driver but not sure which

Offline

#5 2022-01-26 08:20:40

seth
Member
Registered: 2012-09-03
Posts: 53,214

Re: [SOLVED] wireless device wlo1 not getting created.

Do you still get "loading out-of-tree module taints kernel"?

Offline

#6 2022-01-26 11:02:11

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED] wireless device wlo1 not getting created.

Yep still getting it. I have a hunch that the new driver I installed replaced the .ko file by the default driver. And now it finds that the new file is not the original one and taints the kernel. Also I know nothing about this but I think it's executing the wrong file and that's leading to some kind of buffer overflow.
I am not sure what the rtw89.conf does... It doesn't work either

Is there someway I can clean up this mess and reinstall the default driver package?

I think this seems extremely unrelated but after the update these things also seem to have been broken:
A reboot gets stuck on 'stopping kvm virtualization'
I get loads of more verbose stuff on a tty.


PS: I am traveling right now. I'll post more dmesg snippets when I get home

Last edited by DireWolf (2022-01-26 11:08:49)

Offline

#7 2022-01-26 13:04:59

seth
Member
Registered: 2012-09-03
Posts: 53,214

Re: [SOLVED] wireless device wlo1 not getting created.

usr/lib/modules/5.16.2-arch1-1/kernel/drivers/net/wireless/realtek/rtw89/rtw89_core.ko.zst
usr/lib/modules/5.16.2-arch1-1/kernel/drivers/net/wireless/realtek/rtw89/rtw89_pci.ko.zst
lsmod | grep rtw
modprobe -nv rtw89_pci
modprobe -nv rtw89pci
modprobe -nv rtw89_core
modprobe -nv rtw89core
Kernel driver in use: rtw89_pci
Kernel modules: rtw89_pci, rtw89pci

certainly *looks* like you're using rtw89_pci and rtw89pci is the out-of-tree one but it also seems to drag in "rtw89core" instead of rtw89_core

Offline

#8 2022-01-26 15:23:10

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED] wireless device wlo1 not getting created.

Some more logs and outputs of commands suggested above:

rmmod: ERROR: Module rtw89_pci is in use
rmmod: ERROR: Module rtw89_core is not currently loaded
rmmod: ERROR: Module rtw89pci is not currently loaded
rmmod: ERROR: Module rtw89core is in use by: rtw89_pci

$ doas modprobe -nv rtw89pci
insmod /lib/modules/5.16.2-arch1-1/kernel/drivers/net/wireless/realtek/rtw89/rtw89pci.ko
$ doas modprobe -nv rtw89core
$ doas modprobe -nv rtw89_pci
insmod /lib/modules/5.16.2-arch1-1/kernel/drivers/net/wireless/realtek/rtw89/rtw89_pci.ko.zst disable_aspm_l1=Y disable
_aspm_l1ss=Y
$ doas modprobe -nv rtw89_core
insmod /lib/modules/5.16.2-arch1-1/kernel/drivers/net/wireless/realtek/rtw89/rtw89_core.ko.zst disable_ps_mode=Y

https://thecodeclub.in/quditwolf/rtwlogs
I felt the logs were too big to embed in the tags here.

Offline

#9 2022-01-26 15:29:03

seth
Member
Registered: 2012-09-03
Posts: 53,214

Re: [SOLVED] wireless device wlo1 not getting created.

No output for "modprobe -nv rtw89core"?

ls /lib/modules/5.16.2-arch1-1/kernel/drivers/net/wireless/realtek/rtw89/rtw8*

It though looks as if the in-tree rtw89_pci draws the out-of-tree rtw89core and that's probably causing the RIP
How exactly did you install the lwfinger modules? dkms?

Offline

#10 2022-01-26 15:42:13

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED] wireless device wlo1 not getting created.

README.md

When your kernel changes, then you need to do the following:
```bash
cd ~/rtw89
git pull
make clean
make
sudo make install
#;or
#sudo make sign-install
```

"Remember, this MUST be done whenever you get a new kernel - no exceptions."
sic

Last edited by DireWolf (2022-01-26 15:42:52)

Offline

#11 2022-01-26 15:43:38

seth
Member
Registered: 2012-09-03
Posts: 53,214

Re: [SOLVED] wireless device wlo1 not getting created.

"cd ~/rtw89; sudo make uninstall"…

Offline

#12 2022-01-26 16:41:17

DireWolf
Member
Registered: 2021-04-15
Posts: 28

Re: [SOLVED] wireless device wlo1 not getting created.

SHEESH IT WORKS.

I don't know but seriously sometimes I think there's a monkey sitting behind the kernel doing things when he wants to.

I tried uninstalling it before. It didn't work but now it does. *somehow*
Probably I did some things I did not understand and then thought that the problem was somewhere else.

Thanks a LOT,
seth, trilby, head_on_a_stick


PS: editing the title to [SOLVED]
Could you explain what you think was going wrong?

Last edited by DireWolf (2022-01-26 16:43:01)

Offline

#13 2022-01-26 17:27:22

seth
Member
Registered: 2012-09-03
Posts: 53,214

Re: [SOLVED] wireless device wlo1 not getting created.

You had two matching kernel module pairs (A1 & A2, B1 & B2)installed and ended up using A1 & B2
What went wrong on your previous uninstalling attempts, we can't say - maybe your bash history can.

Offline

#14 2022-02-03 19:59:35

t14_gen2_user
Member
Registered: 2022-02-03
Posts: 1

Re: [SOLVED] wireless device wlo1 not getting created.

Hi

This post helped me a lot. I am using a Thinkpad T14 Gen2 (AMD) and had trouble getting WiFi back to work after upgrading to 5.16. However, my issue was unrelated to the Realtek driver as I am having mt7921_common loaded:

lspci

....
03:00.0 Network controller: MEDIATEK Corp. Device 7961
....

Unfortunately

lspci

would refuse to show my WiFi interface (so above entry was not shown after upgrading). Rebooting my device did not help. Even enabling and disabling WiFi in the BIOS did not aid. I had to turn the laptop off and turn it on again (hello it-crowd) for wlan0 to appear again. roll

Thanks!

Offline

Board footer

Powered by FluxBB