You are not logged in.

#1 2023-11-21 01:01:35

kawaemon
Member
Registered: 2023-11-21
Posts: 2

[SOLVED] RTL8852BE firmware keeps crashing

Hello.

I recently installed ArchLinux on my new laptop. It looked like everything was fine except for my Wi-Fi network connection.
It keeps periodically disconnecting and reconnecting. No matter which network I used.
So I looked in my kernel log and it turns out the firmware keeps crashing and resetting hardware.

I appreciate any help. Thank you.

By the way, this is my first time posting on ArchLinux Forum. So any advice to improve my question is also very appreciated.

My logs and hardware information are below. Also the gist is available here.
My laptop is Lenovo ThinkPad E14 Gen5 with Intel 13th generation CPU.

$ uname -a
Linux 13700H 6.6.1-arch1-1 #1 SMP PREEMPT_DYNAMIC Wed, 08 Nov 2023 16:05:38 +0000 x86_64 GNU/Linux

$ pacman -Q linux linux-firmware
linux 6.6.1.arch1-1
linux-firmware 20231030.2b304bfe-1

$ sudo lspci -vvvv
... other hardwares ...
2d:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device b852
        Subsystem: Lenovo Device 4853
        Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
        Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
        Latency: 0
        Interrupt: pin A routed to IRQ 171
        IOMMU group: 14
        Region 0: I/O ports at 2000 [size=256]
        Region 2: Memory at ae200000 (64-bit, non-prefetchable) [size=1M]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1- D2- AuxCurrent=375mA PME(D0+,D1-,D2-,D3hot+,D3cold+)
                Status: D0 NoSoftRst+ PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] MSI: Enable+ Count=1/1 Maskable- 64bit+
                Address: 00000000fee00878  Data: 0000
        Capabilities: [70] Express (v2) Endpoint, MSI 00
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <4us, L1 <64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset+ SlotPowerLimit 10W
                DevCtl: CorrErr- NonFatalErr- FatalErr- UnsupReq-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop- FLReset-
                        MaxPayload 256 bytes, MaxReadReq 512 bytes
                DevSta: CorrErr+ NonFatalErr+ FatalErr- UnsupReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Exit Latency L0s <4us, L1 <64us
                        ClockPM+ Surprise- LLActRep- BwNot- ASPMOptComp+
                LnkCtl: ASPM L0s L1 Enabled; RCB 64 bytes, Disabled- CommClk+
                        ExtSynch- ClockPM+ AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1
                        TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
                DevCap2: Completion Timeout: Not Supported, TimeoutDis+ NROPrPrP- LTR+
                         10BitTagComp- 10BitTagReq- OBFF Via message/WAKE#, ExtFmt- EETLPPrefix-
                         EmergencyPowerReduction Not Supported, EmergencyPowerReductionInit-
                         FRS- TPHComp- ExtTPHComp-
                         AtomicOpsCap: 32bit- 64bit- 128bitCAS-
                DevCtl2: Completion Timeout: 50us to 50ms, TimeoutDis- LTR+ 10BitTagReq- OBFF Disabled,
                         AtomicOpsCtl: ReqEn-
                LnkCap2: Supported Link Speeds: 2.5GT/s, Crosslink- Retimer- 2Retimers- DRS-
                LnkCtl2: Target Link Speed: 5GT/s, EnterCompliance- SpeedDis-
                         Transmit Margin: Normal Operating Range, EnterModifiedCompliance- ComplianceSOS-
                         Compliance Preset/De-emphasis: -6dB de-emphasis, 0dB preshoot
                LnkSta2: Current De-emphasis Level: -3.5dB, EqualizationComplete- EqualizationPhase1-
                         EqualizationPhase2- EqualizationPhase3- LinkEqualizationRequest-
                         Retimer- 2Retimers- CrosslinkRes: unsupported
        Capabilities: [100 v2] Advanced Error Reporting
                UESta:  DLP- SDES- TLP- FCP- CmpltTO+ CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UEMsk:  DLP- SDES- TLP- FCP- CmpltTO- CmpltAbrt- UnxCmplt- RxOF- MalfTLP- ECRC- UnsupReq- ACSViol-
                UESvrt: DLP+ SDES+ TLP- FCP+ CmpltTO- CmpltAbrt- UnxCmplt- RxOF+ MalfTLP+ ECRC- UnsupReq- ACSViol-
                CESta:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
                CEMsk:  RxErr- BadTLP- BadDLLP- Rollover- Timeout- AdvNonFatalErr+
                AERCap: First Error Pointer: 0e, ECRCGenCap+ ECRCGenEn- ECRCChkCap+ ECRCChkEn-
                        MultHdrRecCap- MultHdrRecEn- TLPPfxPres- HdrLogCap-
                HeaderLog: 00000000 00000000 00000000 00000000
        Capabilities: [148 v1] Device Serial Number 00-e0-4c-ff-fe-88-52-01
        Capabilities: [158 v1] Latency Tolerance Reporting
                Max snoop latency: 3145728ns
                Max no snoop latency: 3145728ns
        Capabilities: [160 v1] L1 PM Substates
                L1SubCap: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+ L1_PM_Substates+
                          PortCommonModeRestoreTime=30us PortTPowerOnTime=60us
                L1SubCtl1: PCI-PM_L1.2+ PCI-PM_L1.1+ ASPM_L1.2+ ASPM_L1.1+
                           T_CommonMode=0us LTR1.2_Threshold=106496ns
                L1SubCtl2: T_PwrOn=60us
        Kernel driver in use: rtw89_8852be
        Kernel modules: rtw89_8852be

$ sudo dmesg
... older logs ...
[  169.116571] ieee80211 phy0: Hardware restart was requested
[  180.346533] wlp45s0: authenticate with ae:59:1e:bd:5d:4d
[  180.533506] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 1/3)
[  180.661356] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 2/3)
[  180.781279] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 3/3)
[  180.901338] wlp45s0: authentication with ae:59:1e:bd:5d:4d timed out
[  185.159510] wlp45s0: authenticate with ae:59:1e:bd:5d:4d
[  185.347043] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 1/3)
[  185.457950] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 2/3)
[  185.571279] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 3/3)
[  185.681258] wlp45s0: authentication with ae:59:1e:bd:5d:4d timed out
[  190.480045] wlp45s0: authenticate with ae:59:1e:bd:5d:4d
[  190.670764] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 1/3)
[  190.794645] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 2/3)
[  190.908048] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 3/3)
[  191.017944] wlp45s0: authentication with ae:59:1e:bd:5d:4d timed out
[  199.821868] wlp45s0: authenticate with ae:59:1e:bd:5d:4d
[  200.006021] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 1/3)
[  200.075296] wlp45s0: authenticate with ae:59:1e:bd:5d:4d
[  200.075307] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 1/3)
[  200.106623] wlp45s0: authenticated
[  200.107833] wlp45s0: associate with ae:59:1e:bd:5d:4d (try 1/3)
[  200.112270] wlp45s0: RX AssocResp from ae:59:1e:bd:5d:4d (capab=0x411 status=30 aid=1)
[  200.112309] wlp45s0: ae:59:1e:bd:5d:4d rejected association temporarily; comeback duration 1464 TU (1499 ms)
[  200.221206] wlp45s0: associate with ae:59:1e:bd:5d:4d (try 2/3)
[  200.225557] wlp45s0: RX AssocResp from ae:59:1e:bd:5d:4d (capab=0x411 status=30 aid=1)
[  200.225599] wlp45s0: ae:59:1e:bd:5d:4d rejected association temporarily; comeback duration 1464 TU (1499 ms)
[  200.337926] wlp45s0: associate with ae:59:1e:bd:5d:4d (try 3/3)
[  200.343666] wlp45s0: RX AssocResp from ae:59:1e:bd:5d:4d (capab=0x411 status=30 aid=1)
[  200.343710] wlp45s0: ae:59:1e:bd:5d:4d rejected association temporarily; comeback duration 1464 TU (1499 ms)
[  200.451270] wlp45s0: association with ae:59:1e:bd:5d:4d timed out
[  214.209213] wlp45s0: authenticate with ae:59:1e:bd:5d:4d
[  214.398123] wlp45s0: send auth to ae:59:1e:bd:5d:4d (try 1/3)
[  214.404300] wlp45s0: authenticated
[  214.404464] wlp45s0: associate with ae:59:1e:bd:5d:4d (try 1/3)
[  214.410300] wlp45s0: RX AssocResp from ae:59:1e:bd:5d:4d (capab=0x411 status=0 aid=1)
[  214.525261] wlp45s0: associated
[  214.525340] wlp45s0: Limiting TX power to 0 (-128 - 0) dBm as advertised by ae:59:1e:bd:5d:4d
[  226.774532] rtw89_8852be 0000:2d:00.0: FW status = 0x5e001100
[  226.774556] rtw89_8852be 0000:2d:00.0: FW BADADDR = 0x0
[  226.774564] rtw89_8852be 0000:2d:00.0: FW EPC/RA = 0x0
[  226.774572] rtw89_8852be 0000:2d:00.0: FW MISC = 0xb898ae0f
[  226.774580] rtw89_8852be 0000:2d:00.0: R_AX_HALT_C2H = 0x10
[  226.774587] rtw89_8852be 0000:2d:00.0: R_AX_SER_DBG_INFO = 0x31020001
[  226.774601] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7ab
[  226.774628] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b811
[  226.774648] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898bc0f
[  226.774669] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898bfb7
[  226.774690] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b815
[  226.774708] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7ab
[  226.774728] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b815
[  226.774749] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7ad
[  226.774769] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b80f
[  226.774789] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b815
[  226.774809] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7a3
[  226.774829] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898ba15
[  226.774849] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7a7
[  226.774869] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b815
[  226.774889] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7ab
[  226.774906] rtw89_8852be 0000:2d:00.0: --->
               err=0x10
[  226.774916] rtw89_8852be 0000:2d:00.0: R_AX_SER_DBG_INFO =0x31020001
[  226.774926] rtw89_8852be 0000:2d:00.0: R_AX_DMAC_ERR_ISR=0x00000000
[  226.774933] rtw89_8852be 0000:2d:00.0: R_AX_DMAC_ERR_IMR=0x00000000
[  226.774948] rtw89_8852be 0000:2d:00.0: R_AX_CMAC_ERR_ISR [0]=0x00000000
[  226.774956] rtw89_8852be 0000:2d:00.0: R_AX_CMAC_FUNC_EN [0]=0xf000003f
[  226.774963] rtw89_8852be 0000:2d:00.0: R_AX_CK_EN [0]=0xffffffff
[  226.774970] rtw89_8852be 0000:2d:00.0: R_AX_CMAC_ERR_IMR [0]=0x00000000
[  226.774976] rtw89_8852be 0000:2d:00.0: R_AX_RPQ_RXBD_IDX =0x002e002e
[  226.774983] rtw89_8852be 0000:2d:00.0: R_AX_DBG_ERR_FLAG=0x00400000
[  226.774989] rtw89_8852be 0000:2d:00.0: R_AX_LBC_WATCHDOG=0x00000081
[  226.774996] rtw89_8852be 0000:2d:00.0: <---
[  226.774999] rtw89_8852be 0000:2d:00.0: SER catches error: 0x10
[  226.821689] rtw89_8852be 0000:2d:00.0: firmware failed to ack for leaving ps mode
[  226.826299] rtw89_8852be 0000:2d:00.0: pci dmach busy1 0x200001
[  226.828320] rtw89_8852be 0000:2d:00.0: pci dmach busy1 0x200000
[  226.828324] rtw89_8852be 0000:2d:00.0: lv1 rcvy pci stop dma fail
[  226.830047] rtw89_8852be 0000:2d:00.0: FW backtrace invalid key: 0x37b6e2a3
[  227.033568] ieee80211 phy0: Hardware restart was requested
[  231.144534] rtw89_8852be 0000:2d:00.0: FW status = 0x70001100
[  231.144554] rtw89_8852be 0000:2d:00.0: FW BADADDR = 0xeeee
[  231.144561] rtw89_8852be 0000:2d:00.0: FW EPC/RA = 0x0
[  231.144567] rtw89_8852be 0000:2d:00.0: FW MISC = 0xb898ae0f
[  231.144574] rtw89_8852be 0000:2d:00.0: R_AX_HALT_C2H = 0x10
[  231.144580] rtw89_8852be 0000:2d:00.0: R_AX_SER_DBG_INFO = 0x31020002
[  231.144593] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b817
[  231.144625] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7ab
[  231.144645] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898bc0f
[  231.144664] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7a3
[  231.144683] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7b7
[  231.144702] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b80f
[  231.144721] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b815
[  231.144740] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7ab
[  231.144759] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7ab
[  231.144777] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7a5
[  231.144796] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b811
[  231.144815] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7af
[  231.144834] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7a5
[  231.144853] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7a5
[  231.144872] rtw89_8852be 0000:2d:00.0: [ERR]fw PC = 0xb898b7ab
[  231.144886] rtw89_8852be 0000:2d:00.0: --->
               err=0x10
[  231.144893] rtw89_8852be 0000:2d:00.0: R_AX_SER_DBG_INFO =0x31020002
[  231.144904] rtw89_8852be 0000:2d:00.0: R_AX_DMAC_ERR_ISR=0x00000000
[  231.144910] rtw89_8852be 0000:2d:00.0: R_AX_DMAC_ERR_IMR=0x00000000
[  231.144925] rtw89_8852be 0000:2d:00.0: R_AX_CMAC_ERR_ISR [0]=0x00000000
[  231.144933] rtw89_8852be 0000:2d:00.0: R_AX_CMAC_FUNC_EN [0]=0xf000003f
[  231.144939] rtw89_8852be 0000:2d:00.0: R_AX_CK_EN [0]=0xffffffff
[  231.144946] rtw89_8852be 0000:2d:00.0: R_AX_CMAC_ERR_IMR [0]=0x00000000
[  231.144953] rtw89_8852be 0000:2d:00.0: R_AX_RPQ_RXBD_IDX =0x00100010
[  231.144960] rtw89_8852be 0000:2d:00.0: R_AX_DBG_ERR_FLAG=0x00000000
[  231.144966] rtw89_8852be 0000:2d:00.0: R_AX_LBC_WATCHDOG=0x00000081
[  231.144972] rtw89_8852be 0000:2d:00.0: <---
[  231.144975] rtw89_8852be 0000:2d:00.0: SER catches error: 0x10
[  231.149949] rtw89_8852be 0000:2d:00.0: pci dmach busy1 0x240000
[  231.151988] rtw89_8852be 0000:2d:00.0: pci dmach busy1 0x240000
[  231.151997] rtw89_8852be 0000:2d:00.0: lv1 rcvy pci stop dma fail
[  231.153898] rtw89_8852be 0000:2d:00.0: FW backtrace invalid key: 0x35b6e2f5
[  231.362908] ieee80211 phy0: Hardware restart was requested
... and it loops again ...

Last edited by kawaemon (2023-11-23 08:14:00)

Offline

#2 2023-11-23 08:13:17

kawaemon
Member
Registered: 2023-11-21
Posts: 2

Re: [SOLVED] RTL8852BE firmware keeps crashing

Solved.

Create /etc/modprobe.d/rtw8852be.conf and write these lines:

options rtw89_pci disable_aspm_l1=y disable_aspm_l1ss=y
options rtw89pci disable_aspm_l1=y disable_aspm_l1ss=y
options rtw89_core disable_ps_mode=y
options rtw89core disable_ps_mode=y

After reboot it stops crashing.

Refs:
https://github.com/lwfinger/rtw89?tab=r … figuration
https://github.com/lwfinger/rtw89/issue … 1784155449

Offline

Board footer

Powered by FluxBB