You are not logged in.

#1 2023-08-11 15:30:18

fohannesj
Member
Registered: 2023-08-10
Posts: 11

[SOLVED] Network controller (Realtek b852) randomly disconnects

Hello everyone!
I recently installed Arch on my Laptop (Lenovo ThinkPad E15 Gen 4) alongside Linux Mint (although I don't really use Mint anymore), so I am still a newbie.
I am using NetworkManager and it works fine, however my WiFi connection randomly stops.
After the connection stops, the Network controller doesn't show up on lspci anymore. Additionally, the wifi device doesn't show up in nmcli anymore. The Network controller uses the rtw89_8852be driver.
I think this has something to do with the "deauthenticating from ... by local choice (Reason: 3=DEAUTH_LEAVING)" message in the dmesg below, but I have no clue what exactly is going on.
Sometimes this doesn't happen for several hours and sometimes it happens about every 30 mins. Does anyone know how i can prevent this?

Here are the outputs of some commands:

lspci -v (before problem occurs):

00:00.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne Root Complex
	Subsystem: Lenovo Renoir/Cezanne Root Complex
	Flags: fast devsel

00:00.2 IOMMU: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne IOMMU
	Subsystem: Lenovo Renoir/Cezanne IOMMU
	Flags: bus master, fast devsel, latency 0, IRQ -2147483648
	Capabilities: <access denied>

00:01.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel, IOMMU group 0

00:02.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel, IOMMU group 1

00:02.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
	Subsystem: Lenovo Renoir/Cezanne PCIe GPP Bridge
	Flags: bus master, fast devsel, latency 0, IRQ 26, IOMMU group 2
	Bus: primary=00, secondary=01, subordinate=01, sec-latency=0
	I/O behind bridge: [disabled] [32-bit]
	Memory behind bridge: fd600000-fd6fffff [size=1M] [32-bit]
	Prefetchable memory behind bridge: [disabled] [64-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:02.2 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
	Subsystem: Lenovo Renoir/Cezanne PCIe GPP Bridge
	Flags: bus master, fast devsel, latency 0, IRQ 27, IOMMU group 3
	Bus: primary=00, secondary=02, subordinate=02, sec-latency=0
	I/O behind bridge: 3000-3fff [size=4K] [16-bit]
	Memory behind bridge: fd500000-fd5fffff [size=1M] [32-bit]
	Prefetchable memory behind bridge: [disabled] [64-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:02.3 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne PCIe GPP Bridge (prog-if 00 [Normal decode])
	Subsystem: Lenovo Renoir/Cezanne PCIe GPP Bridge
	Flags: bus master, fast devsel, latency 0, IRQ 28, IOMMU group 4
	Bus: primary=00, secondary=03, subordinate=03, sec-latency=0
	I/O behind bridge: 2000-2fff [size=4K] [16-bit]
	Memory behind bridge: fd400000-fd4fffff [size=1M] [32-bit]
	Prefetchable memory behind bridge: 430000000-4301fffff [size=2M] [32-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:08.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Renoir PCIe Dummy Host Bridge
	Flags: fast devsel, IOMMU group 5

00:08.1 PCI bridge: Advanced Micro Devices, Inc. [AMD] Renoir Internal PCIe GPP Bridge to Bus (prog-if 00 [Normal decode])
	Subsystem: Device 1234:1234
	Flags: bus master, fast devsel, latency 0, IRQ 29, IOMMU group 6
	Bus: primary=00, secondary=04, subordinate=04, sec-latency=0
	I/O behind bridge: 1000-1fff [size=4K] [16-bit]
	Memory behind bridge: fd000000-fd3fffff [size=4M] [32-bit]
	Prefetchable memory behind bridge: 460000000-4701fffff [size=258M] [32-bit]
	Capabilities: <access denied>
	Kernel driver in use: pcieport

00:14.0 SMBus: Advanced Micro Devices, Inc. [AMD] FCH SMBus Controller (rev 51)
	Subsystem: Lenovo FCH SMBus Controller
	Flags: 66MHz, medium devsel, IOMMU group 7
	Kernel driver in use: piix4_smbus
	Kernel modules: i2c_piix4, sp5100_tco

00:14.3 ISA bridge: Advanced Micro Devices, Inc. [AMD] FCH LPC Bridge (rev 51)
	Subsystem: Lenovo FCH LPC Bridge
	Flags: bus master, 66MHz, medium devsel, latency 0, IOMMU group 7

00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 0
	Flags: fast devsel, IOMMU group 8

00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 1
	Flags: fast devsel, IOMMU group 8

00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 2
	Flags: fast devsel, IOMMU group 8

00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 3
	Flags: fast devsel, IOMMU group 8
	Kernel driver in use: k10temp
	Kernel modules: k10temp

00:18.4 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 4
	Flags: fast devsel, IOMMU group 8

00:18.5 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 5
	Flags: fast devsel, IOMMU group 8

00:18.6 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 6
	Flags: fast devsel, IOMMU group 8

00:18.7 Host bridge: Advanced Micro Devices, Inc. [AMD] Cezanne Data Fabric; Function 7
	Flags: fast devsel, IOMMU group 8

01:00.0 Non-Volatile memory controller: Shenzhen Unionmemory Information System Ltd. AM630 PCIe 4.0 x4 NVMe SSD Controller (rev 03) (prog-if 02 [NVM Express])
	Subsystem: Shenzhen Unionmemory Information System Ltd. AM630 PCIe 4.0 x4 NVMe SSD Controller
	Flags: bus master, fast devsel, latency 0, IRQ 48, NUMA node 0, IOMMU group 9
	Memory at fd600000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: nvme
	Kernel modules: nvme

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 15)
	Subsystem: Lenovo RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
	Flags: bus master, fast devsel, latency 0, IRQ 68, IOMMU group 10
	I/O ports at 3000 [size=256]
	Memory at fd504000 (64-bit, non-prefetchable) [size=4K]
	Memory at fd500000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: r8169
	Kernel modules: r8169

03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b852
	Subsystem: Lenovo Device 4853
	Physical Slot: 0
	Flags: bus master, fast devsel, latency 0, IRQ 74, IOMMU group 11
	I/O ports at 2000 [size=256]
	Memory at fd400000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: rtw89_8852be
	Kernel modules: rtw89_8852be

04:00.0 VGA compatible controller: Advanced Micro Devices, Inc. [AMD/ATI] Barcelo (rev c1) (prog-if 00 [VGA controller])
	Subsystem: Lenovo Barcelo
	Flags: bus master, fast devsel, latency 0, IRQ 39, IOMMU group 12
	Memory at 460000000 (64-bit, prefetchable) [size=256M]
	Memory at 470000000 (64-bit, prefetchable) [size=2M]
	I/O ports at 1000 [size=256]
	Memory at fd300000 (32-bit, non-prefetchable) [size=512K]
	Capabilities: <access denied>
	Kernel driver in use: amdgpu
	Kernel modules: amdgpu

04:00.1 Audio device: Advanced Micro Devices, Inc. [AMD/ATI] Renoir Radeon High Definition Audio Controller
	Subsystem: Lenovo Renoir Radeon High Definition Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 71, IOMMU group 13
	Memory at fd3c8000 (32-bit, non-prefetchable) [size=16K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

04:00.2 Encryption controller: Advanced Micro Devices, Inc. [AMD] Family 17h (Models 10h-1fh) Platform Security Processor
	Subsystem: Lenovo Family 17h (Models 10h-1fh) Platform Security Processor
	Flags: bus master, fast devsel, latency 0, IRQ 48, IOMMU group 14
	Memory at fd200000 (32-bit, non-prefetchable) [size=1M]
	Memory at fd3cc000 (32-bit, non-prefetchable) [size=8K]
	Capabilities: <access denied>
	Kernel driver in use: ccp
	Kernel modules: ccp

04:00.3 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI])
	Subsystem: Lenovo Renoir/Cezanne USB 3.1
	Flags: bus master, fast devsel, latency 0, IRQ 30, IOMMU group 15
	Memory at fd000000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci

04:00.4 USB controller: Advanced Micro Devices, Inc. [AMD] Renoir/Cezanne USB 3.1 (prog-if 30 [XHCI])
	Subsystem: Lenovo Renoir/Cezanne USB 3.1
	Flags: bus master, fast devsel, latency 0, IRQ 39, IOMMU group 16
	Memory at fd100000 (64-bit, non-prefetchable) [size=1M]
	Capabilities: <access denied>
	Kernel driver in use: xhci_hcd
	Kernel modules: xhci_pci

04:00.5 Multimedia controller: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor (rev 01)
	Subsystem: Lenovo ACP/ACP3X/ACP6x Audio Coprocessor
	Flags: fast devsel, IRQ 68, IOMMU group 17
	Memory at fd380000 (32-bit, non-prefetchable) [size=256K]
	Capabilities: <access denied>
	Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt

04:00.6 Audio device: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller
	Subsystem: Lenovo Family 17h/19h HD Audio Controller
	Flags: bus master, fast devsel, latency 0, IRQ 72, IOMMU group 18
	Memory at fd3c0000 (32-bit, non-prefetchable) [size=32K]
	Capabilities: <access denied>
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

dmesg (after problem occurs, only from the first mention of the relevant driver):

[    5.081407] rtw89_8852be 0000:03:00.0: loaded firmware rtw89/rtw8852b_fw-1.bin
[    5.081697] rtw89_8852be 0000:03:00.0: enabling device (0000 -> 0003)
[    5.085528] rtw89_8852be 0000:03:00.0: Firmware version 0.29.29.1, cmd version 0, type 5
[    5.085532] rtw89_8852be 0000:03:00.0: Firmware version 0.29.29.1, cmd version 0, type 3
[    5.085539] rtw89_8852be 0000:03:00.0: MAC has already powered on
[    5.103044] MCE: In-kernel MCE decoding enabled.
[    5.107604] input: HD-Audio Generic Mic as /devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1/input13
[    5.107685] input: HD-Audio Generic Headphone as /devices/pci0000:00/0000:00:08.1/0000:04:00.6/sound/card1/input14
[    5.119945] intel_rapl_common: Found RAPL domain package
[    5.119945] intel_rapl_common: Found RAPL domain core
[    5.184053] Bluetooth: hci0: RTL: examining hci_ver=0b hci_rev=000b lmp_ver=0b lmp_subver=8852
[    5.185548] Bluetooth: hci0: RTL: rom_version status=0 version=1
[    5.185552] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852bu_fw.bin
[    5.186597] Bluetooth: hci0: RTL: loading rtl_bt/rtl8852bu_config.bin
[    5.186770] Bluetooth: hci0: RTL: cfg_sz 6, total sz 58003
[    5.285978] psmouse serio1: elantech: assuming hardware version 4 (with firmware version 0x5f3001)
[    5.300614] psmouse serio1: elantech: Synaptics capabilities query result 0x90, 0x18, 0x10.
[    5.315114] psmouse serio1: elantech: Elan sample query result 00, 1b, 97
[    5.329272] psmouse serio1: elantech: Elan ic body: 0x14, current fw version: 0x2
[    5.357466] psmouse serio1: elantech: Trying to set up SMBus access
[    5.357500] psmouse serio1: elantech: SMbus companion is not ready yet
[    5.389225] input: ETPS/2 Elantech TrackPoint as /devices/platform/i8042/serio1/input/input15
[    5.393988] mousedev: PS/2 mouse device common for all mice
[    5.406073] input: ETPS/2 Elantech Touchpad as /devices/platform/i8042/serio1/input/input9
[    5.503588] rtw89_8852be 0000:03:00.0: chip rfe_type is 1
[    5.520406] Generic FE-GE Realtek PHY r8169-0-200:00: attached PHY driver (mii_bus:phy_addr=r8169-0-200:00, irq=MAC)
[    5.710468] r8169 0000:02:00.0 enp2s0: Link is Down
[    5.712543] Bluetooth: hci0: RTL: fw version 0xdbc6b20f
[    5.714725] rtw89_8852be 0000:03:00.0 wlp3s0: renamed from wlan0
[    5.864557] Bluetooth: hci0: AOSP extensions version v1.00
[    5.864562] Bluetooth: hci0: AOSP quality report is supported
[    5.974507] ucsi_acpi: probe of USBC000:00 failed with error -5
[    6.453128] memfd_create() without MFD_EXEC nor MFD_NOEXEC_SEAL, pid=590 'gtkgreet'
[   10.001372] wlp3s0: authenticate with 08:96:d7:99:9a:31
[   10.185050] wlp3s0: send auth to 08:96:d7:99:9a:31 (try 1/3)
[   10.300401] wlp3s0: send auth to 08:96:d7:99:9a:31 (try 2/3)
[   10.303390] wlp3s0: authenticated
[   10.307197] wlp3s0: associate with 08:96:d7:99:9a:31 (try 1/3)
[   10.312893] wlp3s0: RX AssocResp from 08:96:d7:99:9a:31 (capab=0x1431 status=0 aid=6)
[   10.424490] wlp3s0: associated
[   10.424564] wlp3s0: Limiting TX power to 20 (20 - 0) dBm as advertised by 08:96:d7:99:9a:31
[   10.537663] IPv6: ADDRCONF(NETDEV_CHANGE): wlp3s0: link becomes ready
[   14.683615] systemd-journald[325]: /var/log/journal/0dc599999ff64cb6b068e177117f942c/user-1000.journal: Boot ID changed since last record, rotating.
[  321.188267] pcieport 0000:00:02.3: pciehp: Slot(0): Link Down
[  321.188277] pcieport 0000:00:02.3: pciehp: Slot(0): Card not present
[  321.257156] wlp3s0: deauthenticating from 08:96:d7:99:9a:31 by local choice (Reason: 3=DEAUTH_LEAVING)
[  321.258423] rtw89_8852be 0000:03:00.0: failed to pre-release fwcmd
[  321.258618] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 0
[  321.258784] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 1
[  321.258938] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 2
[  321.259078] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 3
[  321.259218] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 8
[  321.259358] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 9
[  321.259582] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 0
[  321.259716] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 1
[  321.259841] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 2
[  321.259966] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 3
[  321.260091] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 8
[  321.260216] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 9
[  321.260362] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 0
[  321.260488] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 1
[  321.260613] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 2
[  321.260738] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 3
[  321.260863] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 8
[  321.260988] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 9
[  321.266207] rtw89_8852be 0000:03:00.0: FW does not process h2c registers
[  321.266365] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266400] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266437] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.266474] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.266514] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266555] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266593] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266631] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266673] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266714] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266756] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266797] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266839] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266881] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266922] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.266984] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267026] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267064] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267106] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267148] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267186] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267227] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267269] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267310] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267351] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267393] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267434] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267475] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267514] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267552] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267587] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267621] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267660] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267698] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267734] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267773] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267811] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267847] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.267885] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267919] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267956] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.267990] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.268026] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.268063] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.268104] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.268138] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.268171] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.268204] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.268238] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.268271] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.268305] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.268340] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.268374] rtw89_8852be 0000:03:00.0: read rf busy swsi
[  321.268408] rtw89_8852be 0000:03:00.0: write rf busy swsi
[  321.273641] rtw89_8852be 0000:03:00.0: FW does not process h2c registers
[  321.273772] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 0
[  321.273902] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 1
[  321.274031] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 2
[  321.274161] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 3
[  321.274290] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 8
[  321.274419] rtw89_8852be 0000:03:00.0: timed out to flush pci txch: 9
[  321.326242] rtw89_8852be 0000:03:00.0: xtal si not ready(W): offset=90 val=10 mask=10
[  321.360561] rtw89_8852be 0000:03:00.0: failed to pre-release fwcmd
[  321.427245] pcieport 0000:00:02.3: pciehp: Slot(0): Card present
[  323.130642] pcieport 0000:00:02.3: pciehp: Slot(0): No link
[  323.130661] pcieport 0000:00:02.3: pciehp: Slot(0): Card present
[  324.827022] pcieport 0000:00:02.3: pciehp: Slot(0): No link

lsmod (afer issue occurs):

Module                  Size  Used by
ccm                    20480  0
joydev                 24576  0
mousedev               24576  0
snd_sof_amd_rembrandt    16384  0
vfat                   20480  1
snd_sof_amd_renoir     16384  0
intel_rapl_msr         20480  0
fat                   102400  1 vfat
snd_sof_amd_acp        57344  2 snd_sof_amd_rembrandt,snd_sof_amd_renoir
intel_rapl_common      36864  1 intel_rapl_msr
snd_sof_pci            24576  2 snd_sof_amd_rembrandt,snd_sof_amd_renoir
edac_mce_amd           53248  0
snd_sof_xtensa_dsp     16384  1 snd_sof_amd_acp
snd_sof               409600  2 snd_sof_amd_acp,snd_sof_pci
kvm_amd               204800  0
rtw89_8852be           12288  0
snd_sof_utils          16384  1 snd_sof
snd_soc_core          438272  1 snd_sof
snd_ctl_led            24576  0
rtw89_8852b           360448  1 rtw89_8852be
snd_compress           28672  1 snd_soc_core
ac97_bus               12288  1 snd_soc_core
snd_hda_codec_realtek   192512  1
kvm                  1318912  1 kvm_amd
snd_pcm_dmaengine      16384  1 snd_soc_core
snd_hda_codec_generic   110592  1 snd_hda_codec_realtek
rtw89_pci              86016  1 rtw89_8852be
snd_hda_codec_hdmi     94208  1
snd_pci_ps             20480  0
btusb                  81920  0
irqbypass              12288  1 kvm
uvcvideo              176128  8
snd_rpl_pci_acp6x      16384  0
btrtl                  28672  1 btusb
rtw89_core            622592  2 rtw89_8852b,rtw89_pci
videobuf2_vmalloc      20480  1 uvcvideo
crct10dif_pclmul       12288  1
crc32_pclmul           12288  0
uvc                    12288  1 uvcvideo
btbcm                  24576  1 btusb
snd_acp_pci            12288  0
snd_hda_intel          61440  4
polyval_clmulni        12288  0
videobuf2_memops       16384  1 videobuf2_vmalloc
btintel                53248  1 btusb
polyval_generic        12288  1 polyval_clmulni
snd_intel_dspcfg       32768  2 snd_hda_intel,snd_sof
snd_pci_acp6x          20480  0
videobuf2_v4l2         40960  1 uvcvideo
btmtk                  12288  1 btusb
gf128mul               16384  1 polyval_generic
snd_intel_sdw_acpi     16384  1 snd_intel_dspcfg
mac80211             1527808  2 rtw89_core,rtw89_pci
ghash_clmulni_intel    16384  0
snd_pci_acp5x          16384  0
sha512_ssse3           45056  0
videodev              372736  6 videobuf2_v4l2,uvcvideo
snd_hda_codec         212992  4 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec_realtek
bluetooth            1093632  6 btrtl,btmtk,btintel,btbcm,btusb
aesni_intel           360448  0
snd_rn_pci_acp3x       24576  0
crypto_simd            16384  1 aesni_intel
libarc4                12288  1 mac80211
snd_hda_core          139264  5 snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek
videobuf2_common       86016  4 videobuf2_vmalloc,videobuf2_v4l2,uvcvideo,videobuf2_memops
cryptd                 28672  2 crypto_simd,ghash_clmulni_intel
think_lmi              36864  0
snd_acp_config         16384  6 snd_rn_pci_acp3x,snd_pci_acp6x,snd_sof_amd_rembrandt,snd_acp_pci,snd_pci_ps,snd_sof_amd_renoir
r8169                 114688  0
ucsi_acpi              12288  0
rapl                   20480  0
ecdh_generic           16384  1 bluetooth
realtek                40960  1
snd_hwdep              20480  1 snd_hda_codec
snd_soc_acpi           12288  2 snd_sof_amd_acp,snd_acp_config
wmi_bmof               12288  0
firmware_attributes_class    12288  1 think_lmi
mc                     86016  8 videodev,videobuf2_v4l2,uvcvideo,videobuf2_common
typec_ucsi             61440  1 ucsi_acpi
psmouse               233472  0
mdio_devres            12288  1 r8169
cfg80211             1286144  3 rtw89_8852b,rtw89_core,mac80211
acpi_cpufreq           32768  0
pcspkr                 12288  0
snd_pcm               196608  12 snd_sof_amd_acp,snd_hda_codec_hdmi,snd_pci_acp6x,snd_hda_intel,snd_hda_codec,snd_sof,snd_compress,snd_soc_core,snd_sof_utils,snd_hda_core,snd_pci_ps,snd_pcm_dmaengine
k10temp                16384  0
typec                 106496  1 typec_ucsi
sp5100_tco             20480  0
libphy                212992  3 r8169,mdio_devres,realtek
snd_timer              53248  1 snd_pcm
ccp                   155648  1 kvm_amd
snd_pci_acp3x          16384  0
i2c_piix4              32768  0
roles                  16384  1 typec_ucsi
i2c_scmi               16384  0
mac_hid                12288  0
crypto_user            20480  0
fuse                  204800  3
loop                   40960  0
dm_mod                217088  0
bpf_preload            20480  0
ip_tables              36864  0
x_tables               61440  1 ip_tables
ext4                 1150976  1
crc32c_generic         12288  0
crc16                  12288  2 bluetooth,ext4
mbcache                16384  1 ext4
jbd2                  208896  1 ext4
amdgpu              11878400  15
i2c_algo_bit           20480  1 amdgpu
drm_ttm_helper         12288  1 amdgpu
thinkpad_acpi         200704  0
ttm                    98304  2 amdgpu,drm_ttm_helper
serio_raw              16384  0
ledtrig_audio          12288  3 snd_ctl_led,snd_hda_codec_generic,thinkpad_acpi
drm_suballoc_helper    12288  1 amdgpu
atkbd                  40960  0
platform_profile       12288  1 thinkpad_acpi
libps2                 20480  2 atkbd,psmouse
vivaldi_fmap           12288  1 atkbd
snd                   147456  21 snd_ctl_led,snd_hda_codec_generic,snd_hda_codec_hdmi,snd_hwdep,snd_hda_intel,snd_hda_codec,snd_hda_codec_realtek,snd_sof,snd_timer,snd_compress,thinkpad_acpi,snd_soc_core,snd_pcm
drm_buddy              20480  1 amdgpu
nvme                   65536  3
soundcore              16384  2 snd_ctl_led,snd
gpu_sched              53248  1 amdgpu
rfkill                 40960  5 bluetooth,thinkpad_acpi,cfg80211
crc32c_intel           16384  2
drm_display_helper    204800  1 amdgpu
xhci_pci               28672  0
nvme_core             237568  5 nvme
video                  77824  2 thinkpad_acpi,amdgpu
xhci_pci_renesas       24576  1 xhci_pci
i8042                  53248  0
cec                    86016  1 drm_display_helper
nvme_common            20480  1 nvme_core
wmi                    45056  3 video,wmi_bmof,think_lmi
serio                  28672  6 serio_raw,atkbd,psmouse,i8042

TLDR: I had to change the Kernel parameters to turn off powersave.

Last edited by fohannesj (2023-09-26 13:50:36)

Offline

#2 2023-08-11 15:47:37

twelveeighty
Member
From: Alberta, Canada
Registered: 2011-09-04
Posts: 1,152

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

Check and make sure you do not have more than one (1) network service running: stop all other services that conflict with NetworkManager such as systemd-networkd.service.

Check and/or post your journal (journalctl -b) from a boot where the problem occurred.

Offline

#3 2023-08-11 15:53:32

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,393

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

Assuming you are indeed exclusively using NetworkManagers, sadly realtek devices tend to not have the best drivers/reliability. One thing they can often have problems with is with NetworkManager's MAC randomization, so try turning that off: https://wiki.archlinux.org/title/Networ … domization

Offline

#4 2023-08-11 16:43:19

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

twelveeighty wrote:

Check and make sure you do not have more than one (1) network service running: stop all other services that conflict with NetworkManager such as systemd-networkd.service.

I did that and I saw that wpa_supplicant was running. I think this can cause issues, but wpa_supplicant was not running some of the other times when the problem occured, so I assumed it wasn't the problem.

twelveeighty wrote:

Check and/or post your journal (journalctl -b) from a boot where the problem occurred.

This is the output of journalctll -b:
https://dpaste.com//5U52V7LGE

I don't understand what this says, but it seems that wpa_supplicant did something before it broke. I'm just going to disable it and see if that makes things better.

Offline

#5 2023-08-11 17:01:26

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

Ok, so masking wpa_supplicant just stopped me from being able to use WiFi entirely. Turns out that NetworkManager needs wpa_supplicant.

Offline

#6 2023-08-11 17:13:22

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 23,393

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

wpa_supplicant gets invoked by NetworkManager and it's always the same PID so that will generally be normal and expected.

You get a bunch of crashes in the driver module though.Try disabling the MAC randomization as suggested, and maybe give https://aur.archlinux.org/packages/rtw89-dkms-git a shot, but you'd have to blacklist rtw89_8852be for those to work properly.

Offline

#7 2023-08-11 17:37:09

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

V1del wrote:

Try disabling the MAC randomization as suggested

Ok I did this in NetworkManager's config:

wifi.scan-rand-mac-address=no
wifi.cloned-mac-address=stable

If that doesn't change anything I will install the dkms driver.

Offline

#8 2023-08-12 15:04:24

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,257

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

I am far more concerned about the fact that the controller is vanishing from lspci.   Seems to me that falling of the bus should trump all talk of drivers and NetworkManager.

Can we verify that is true?  When it disappears, what does it take to get it back?  Does it 'just' show up again? Or does it take a reboot?  Or does it take a power cycle?


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way

Offline

#9 2023-08-12 19:04:29

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

Aug 11 16:06:21 arch-ThinkPad NetworkManager[480]: <info>  [1691762781.6128] device (wlp3s0): set-hw-addr: set MAC address to A2:7E:82:1F:81:92 (scanning)
…
Aug 11 16:06:25 arch-ThinkPad NetworkManager[480]: <info>  [1691762785.5963] device (wlp3s0): set-hw-addr: reset MAC address to E0:0A:F6:7F:B3:A9 (preserve)
…
Aug 11 18:00:42 arch-ThinkPad wpa_supplicant[546]: wlp3s0: WPA: Group rekeying completed with 08:96:d7:99:9a:31 [GTK=TKIP]
Aug 11 18:02:05 arch-ThinkPad kernel: rtw89_8852be 0000:03:00.0: failed to pre-release fwcmd
Aug 11 18:02:05 arch-ThinkPad kernel: pcieport 0000:00:02.3: pciehp: Slot(0): Link Down
Aug 11 18:02:05 arch-ThinkPad kernel: pcieport 0000:00:02.3: pciehp: Slot(0): Card not present
Aug 11 18:02:05 arch-ThinkPad kernel: rtw89_8852be 0000:03:00.0: firmware failed to ack for leaving ps mode
Aug 11 18:02:05 arch-ThinkPad kernel: wlp3s0: deauthenticating from 08:96:d7:99:9a:31 by local choice (Reason: 3=DEAUTH_LEAVING)
Aug 11 18:02:05 arch-ThinkPad kernel: rtw89_8852be 0000:03:00.0: rtw89: failed to leave lps state
Aug 11 18:02:05 arch-ThinkPad kernel: rtw89_8852be 0000:03:00.0: write rf busy swsi

NM scans, alters the MAC, resets it
~2h later wpa rekeys still fine, then, pretty much out of nowhere, the FW stops responding and it's only downhill from there.
Seems PS related,

modinfo rtw89_8852be
iw dev wlp3s0 get power_save
iw dev wlp3s0 set power_save off # it it wasn't already

You could also try to pass pcie_aspm=off to the kernel, but

Aug 11 16:06:19 arch-ThinkPad kernel: ACPI FADT declares the system doesn't support PCIe ASPM, so disable it

I severely doubt that does anything.

Ceterum censeo: how many parallel windows installations are there?

Offline

#10 2023-08-13 14:34:51

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

ewaller wrote:

When it disappears, what does it take to get it back?

It takes a reboot. However since disabling MAC randomization everything has been working fine. Maybe it is just a coincidence, so I am just going to wait for a bit before changing this topic to solved.

Offline

#11 2023-08-13 14:37:15

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

seth wrote:

Ceterum censeo: how many parallel windows installations are there?

There are none.

Offline

#12 2023-08-13 16:48:52

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

It happened again. Unfortunately I immediately rebooted and forgot to print out the journal entry to see if there was anything different going on. I'll do so the next time.

seth wrote:

NM scans, alters the MAC, resets it
~2h later wpa rekeys still fine, then, pretty much out of nowhere, the FW stops responding and it's only downhill from there.
Seems PS related,

modinfo rtw89_8852be
iw dev wlp3s0 get power_save
iw dev wlp3s0 set power_save off # it it wasn't already

I installed iw and I'll do that manually after booting to see if it resolves the issue.

Last edited by fohannesj (2023-08-13 17:02:59)

Offline

#13 2023-08-13 18:05:20

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

Can you please also post the modinfo output (so I won't have to install the module just to see whether it offers any power related parameters)?

Offline

#14 2023-08-13 18:57:19

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

seth wrote:

Can you please also post the modinfo output?

Sure!

filename:       /lib/modules/6.4.10-arch1-1/kernel/drivers/net/wireless/realtek/rtw89/rtw89_8852be.ko.zst
license:        Dual BSD/GPL
description:    Realtek 802.11ax wireless 8852BE driver
author:         Realtek Corporation
srcversion:     87FC3D1B28540DD0400027C
alias:          pci:v000010ECd0000B85Bsv*sd*bc*sc*i*
alias:          pci:v000010ECd0000B852sv*sd*bc*sc*i*
depends:        rtw89_pci,rtw89_8852b
retpoline:      Y
intree:         Y
name:           rtw89_8852be
vermagic:       6.4.10-arch1-1 SMP preempt mod_unload 
sig_id:         PKCS#7
signer:         Build time autogenerated kernel key
sig_key:        5E:D9:7D:20:B9:8A:BA:B3:93:B4:CA:A1:5C:34:5E:E5:69:18:40:85
sig_hashalgo:   sha512
signature:      30:64:02:30:4F:93:FA:BA:BD:68:F4:A9:B0:B7:2A:1A:B0:C8:0C:07:
		48:B6:DB:70:D8:E5:79:BA:AE:B8:47:B6:FF:56:E6:03:26:24:C7:58:
		90:35:3C:A5:1A:47:EC:FF:D6:EF:C0:AF:02:30:7C:B2:9E:FA:7C:99:
		F5:DF:9F:FD:59:D8:B7:D7:1E:56:66:A4:41:EF:C6:54:99:C9:BD:CB:
		7D:CE:B0:DB:CE:E1:C0:26:70:32:C2:9D:7F:A5:FC:F4:0F:81:18:C0:
		DE:04

Btw it crashed again and this is the journalctl -b output

Offline

#15 2023-08-13 19:18:16

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

depends:        rtw89_pci,rtw89_8852b
● modinfo rtw89_pci
…
parm:           disable_aspm_l1:Set Y to disable PCI ASPM L1 support (bool)
parm:           disable_aspm_l1ss:Set Y to disable PCI L1SS support (bool)

=> try "rtw89_pci.disable_aspm_l1=Y rtw89_pci.disable_aspm_l1ss=Y" as https://wiki.archlinux.org/title/Kernel_parameters

Edit:

Aug 13 20:21:41 arch-ThinkPad wpa_supplicant[531]: wlp3s0: CTRL-EVENT-SIGNAL-CHANGE above=1 signal=-56 noise=9999 txrate=144400
Aug 13 20:22:57 arch-ThinkPad kernel: rtw89_8852be 0000:03:00.0: failed to pre-release fwcmd
Aug 13 20:22:57 arch-ThinkPad kernel: pcieport 0000:00:02.3: pciehp: Slot(0): Link Down
Aug 13 20:22:57 arch-ThinkPad kernel: pcieport 0000:00:02.3: pciehp: Slot(0): Card not present
Aug 13 20:22:57 arch-ThinkPad kernel: rtw89_8852be 0000:03:00.0: read rf busy swsi
Aug 13 20:22:57 arch-ThinkPad kernel: rtw89_8852be 0000:03:00.0: read rf busy swsi

that's w/ "set power_save off"?

Last edited by seth (2023-08-13 19:21:14)

Offline

#16 2023-08-17 10:12:36

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

seth wrote:

that's w/ "set power_save off"?

I'm pretty sure that is is, but maybe I made a mistake. Anyway, the error certainly occurred again when I had power_save off.

Btw, I am sorry for answering so late. I don't always have the time/determination to work on those kinds of problems. However, I will solve this issue and when I do, I will update this Thread.

I will change the kernel parameters next and see what happens.

Offline

#17 2023-08-17 11:40:55

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

Ok I have another question:

I appended rtw_89_pci.disable_aspm_l1=Y rtw89_pci.disable_aspm_l1ss=Y to the "linux" line in the GRUB menu, however I cannot confirm, that these kernel parameters have actually been set. modinfo has not changed and sysctl -a does not show any sign of the parameter.
Does this mean that the kernel parameters have not changed or are they just not being given out by those commands?

Offline

#18 2023-08-17 12:55:53

seth
Member
Registered: 2012-09-03
Posts: 59,588

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

"rtw_89_pci" is wrong and

systool -vm rtw89_pci

will hopefully tell you what's actually applied

Offline

#19 2023-09-26 13:47:54

fohannesj
Member
Registered: 2023-08-10
Posts: 11

Re: [SOLVED] Network controller (Realtek b852) randomly disconnects

Ok this issue is solved now.

The solution was to change the Kernel parameters.

Offline

Board footer

Powered by FluxBB