Re: LinuxKPI (iwlwifi, rtw8x) Please test! Important! (also in stable/15 now)

From: Chris <bsd-lists_at_bsdforge.com>
Date: Thu, 05 Mar 2026 22:43:49 UTC
Comments inline...

> On 2/27/26 03:45, Bjoern A. Zeeb wrote:
>> On Wed, 25 Feb 2026, Bjoern A. Zeeb wrote:
>> 
>> I've done the MFCs and all changes are also all in stab;e/15 now.
>> So please test!
>> 
>> Lots of health,
>> /bz
>> 
>> 
>>> Hi,
>>> 
>>> about 3 years ago, some of you may remember, we were hunting down the
>>> constant (firmware) crashes with iwlwifi due to net80211 not playing nice
>>> and the LinuxKPI 802.11 sta state machine not able to deal with it to make
>>> the firmware happy.
>>> 
>>> In that course I unfolded some state machine bits, which resultet in code
>>> duplication and some other complications.  Fast forward, I just undone 
>>> some
>>> of that in main.  This is probably one of the more risky changes as of 
>>> late.
>>> I tried to test it but as we also have learnt in the last years, the 
>>> testing
>>> of many will reveal problems more likely than me trying to test in my 
>>> limited
>>> capacity.
>>> 
>>> 
>>> 
>>> So please all test main now!
>>> 
>>> Prepare yourself in case of trouble (boot envorments, or otherwise, in 
>>> case
>>> you need to roll back know how to).
>>> Let it run for a few hours or a day or two and then please report back if
>>> it is still working without extra troubles compared to before.
>>> In case you hit any hiccup please report right away!
>>> I will try to reply promptly (I do sleep occassionally) but real life
>>> currently also takes some share so it may be a day before I get to the
>>> emails.
>>> Please include driver and chipset/firmware you are using if possible
>>> along with any possible problem report.
>>> 
>>> 
>>> 
>>> Why is this important (now)?
>>> 
>>> There'll be follow-up changes needed to get the iwlwifi update into main
>>> as well so that all drivers are on the same level (v6.19) for a change
>>> again.  The reason this is important now is that this will be our base
>>> for 15.1-RELEASE so we will have 6ish weeks still to sort out any 
>>> problems.
>>> 
>>> In addition (bonus points) if things go smoothly there is the next branch
>>> waiting for me to merge to bring further improvements still during March
>>> (at least to main and possibly stable/15).
>>> 
>>> 
>>> What if you are on stable/15?
>>> 
>>> I believe you could just grab the last changes and merge them yourself.
>>> I will go and have a look and try to merge anything I can Thu or Fri
>>> (before the weekend) to keep the diff minimal in case that helps!
>>> 
>>> 
>>> Lots of health!
>>> Bjoern
>>> 
Apologies. I've been struggling to get a snapshot
of 16-CURRENT and rtw89-firmware on a recently aquired
Ryzen powered Lenovo Ideapad 3 and missed this thread.
Is your work in current? I'd love to work with you on
this. It appears I may well be qualified, given my hardware
and ex[erience(s) listed below. Please let me know of
anything I can add/do to help.

Thanks!

P.S. I've attached the following to this email. As it may
make for easier reading.

--Chris

FreeBSD amdfbsd 16.0-CURRENT FreeBSD 16.0-CURRENT #0 
main-n284159-16822dac32ab: Mon Feb 23 22:02:36 UTC 2026
root@releng3.nyi.freebsd.org:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64

02:00.0 Network controller: Realtek Semiconductor Co., Ltd. RTL8852BE PCIe 
802.11ax Wireless Network Controller

rtw890@pci0:2:0:0:	class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec 
device=0xb852 subvendor=0x17aa subdevice=0x4853
     vendor     = 'Realtek Semiconductor Co., Ltd.'
     device     = 'RTL8852BE PCIe 802.11ax Wireless Network Controller'
     class      = network

wifi-firmware-rtw89-kmod-20251125
Name           : wifi-firmware-rtw89-kmod
Version        : 20251125
Installed on   : Mon Mar  2 22:13:05 2026 PST
Origin         : net/wifi-firmware-rtw89-kmod
Architecture   : FreeBSD:16:amd64
Prefix         : /usr/local
Categories     : net
Licenses       : primary, whence
Maintainer     : bz@FreeBSD.org
WWW            : 
https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/tree/rtw89
Comment        : Firmware modules for the rtw89 (rtw89) WiFi NIC driver
Annotations    :
	FreeBSD_version: 1600012
	flavor         : rtw89

Mar  5 13:25:17 amdfbsd kernel: CPU: AMD Ryzen 5 5625U with Radeon Graphics   
        (2295.78-MHz K8-class CPU)
Mar  5 13:25:17 amdfbsd kernel:   Origin="AuthenticAMD"  Id=0xa50f00  
Family=0x19  Model=0x50  Stepping=0
Mar  5 13:25:17 amdfbsd kernel:   
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT>
Mar  5 13:25:17 amdfbsd kernel:   
Features2=0x7ed8320b<SSE3,PCLMULQDQ,MON,SSSE3,FMA,CX16,SSE4.1,SSE4.2,MOVBE,POPCNT,AESNI,XSAVE,OSXSAVE,AVX,F16C,RDRAND>
Mar  5 13:25:17 amdfbsd kernel:   AMD 
Features=0x2e500800<SYSCALL,NX,MMX+,FFXSR,Page1GB,RDTSCP,LM>
Mar  5 13:25:17 amdfbsd kernel:   AMD 
Features2=0x75c237ff<LAHF,CMP,SVM,ExtAPIC,CR8,ABM,SSE4A,MAS,Prefetch,OSVW,IBS,SKINIT,WDT,TCE,Topology,PCXC,PNXC,DBE,PL2I,MWAITX,ADMSKX>
Mar  5 13:25:17 amdfbsd kernel:   Structured Extended 
Features=0x219c97a9<FSGSBASE,BMI1,AVX2,SMEP,BMI2,ERMS,INVPCID,PQM,PQE,RDSEED,ADX,SMAP,CLFLUSHOPT,CLWB,SHA>
Mar  5 13:25:17 amdfbsd kernel:   Structured Extended 
Features2=0x40069c<UMIP,PKU,OSPKE,VAES,VPCLMULQDQ,RDPID>
Mar  5 13:25:17 amdfbsd kernel:   Structured Extended Features3=0x10<FSRM>
Mar  5 13:25:17 amdfbsd kernel:   XSAVE 
Features=0xf<XSAVEOPT,XSAVEC,XINUSE,XSAVES>
Mar  5 13:25:17 amdfbsd kernel:   AMD Extended Feature Extensions ID 
EBX=0x191ef657<CLZERO,IRPerf,XSaveErPtr,RDPRU,BE,WBNOINVD,IBPB,INT_WBINVD,IBRS,STIBP,STIBP_ALWAYSON,PREFER_IBRS,SAMEMODE_IBRS,NOLMSLE,SSBD,CPPC,PSFD>
Mar  5 13:25:17 amdfbsd kernel:   SVM: 
Features=0x101bbcff<NP,LbrVirt,SVML,NRIPS,TscRateMsr,VmcbClean,FlushByAsid,DecodeAssist,PauseFilter,EncryptedMcodePatch,PauseFilterThreshold,AVIC,V_VMSAVE_VMLOAD,vGIF,GMET,<b19>,GuesSpecCtl,<b28>>
Mar  5 13:25:17 amdfbsd kernel: Revision=1, ASIDs=32768
Mar  5 13:25:17 amdfbsd kernel:   TSC: P-state invariant, performance 
statistics

Mar  5 13:53:23 amdfbsd kernel: rtw890: <rtw89_8852be> port 0x2000-0x20ff mem 
0xfd600000-0xfd6fffff at device 0.0 on pci2
Mar  5 13:53:23 amdfbsd kernel: rtw89/rtw8852b_fw-1.bin: could not load 
firmware image, error 8
Mar  5 13:53:23 amdfbsd kernel: Trying to load binary firmware from 
/boot/firmware/rtw89/rtw8852b_fw-1.bin
Mar  5 13:53:23 amdfbsd kernel: firmware: 
'/boot/firmware/rtw89/rtw8852b_fw-1.bin' version 0: 1242472 bytes loaded at 
0xfffffe01853af000
Mar  5 13:53:23 amdfbsd kernel: rtw89/rtw8852b_fw-1.bin: Loaded binary 
firmware using /boot/firmware/rtw89/rtw8852b_fw-1.bin
Mar  5 13:53:23 amdfbsd kernel: rtw890: successfully loaded firmware image 
'rtw89/rtw8852b_fw-1.bin'
Mar  5 13:53:23 amdfbsd kernel: rtw890: loaded firmware 
rtw89/rtw8852b_fw-1.bin
Mar  5 13:53:23 amdfbsd kernel: rtw890: Firmware version 0.29.29.14 
(1d076e8b), cmd version 0, type 5
Mar  5 13:53:23 amdfbsd kernel: rtw890: Firmware version 0.29.29.14 
(1d076e8b), cmd version 0, type 3
Mar  5 13:53:23 amdfbsd kernel: usbd_req_re_enumerate: addr=1, set address 
failed! (USB_ERR_IOERROR, ignored)
Mar  5 13:53:23 amdfbsd kernel: rtw890: chip rfe_type is 1
Mar  5 13:53:23 amdfbsd kernel: rtw890: attempting to allocate 1 MSI vectors 
(1 supported)
Mar  5 13:53:23 amdfbsd kernel: msi: routing MSI IRQ 74 to local APIC 8 
vector 48
Mar  5 13:53:23 amdfbsd kernel: rtw890: using IRQ 74 for MSI
Mar  5 13:53:23 amdfbsd kernel: rtw890: 11a rates: 6Mbps 9Mbps 12Mbps 18Mbps 
24Mbps 36Mbps 48Mbps 54Mbps
Mar  5 13:53:23 amdfbsd kernel: rtw890: 11b rates: 1Mbps 2Mbps 5.5Mbps 11Mbps
Mar  5 13:53:23 amdfbsd kernel: rtw890: 11g rates: 1Mbps 2Mbps 5.5Mbps 11Mbps 
6Mbps 9Mbps 12Mbps 18Mbps 24Mbps 36Mbps 48Mbps 54Mbps
Mar  5 13:53:23 amdfbsd kernel: rtw890: rfkill hardware state changed to 
enable

Mar  5 13:53:23 amdfbsd kernel: wlan0: bpf attached
Mar  5 13:53:23 amdfbsd kernel: wlan0: Ethernet address: 9c:2f:9d:b2:3e:4f
Mar  5 13:53:23 amdfbsd kernel: lo0: link state changed to UP
Mar  5 13:53:23 amdfbsd kernel: wlan0: link state changed to UP
Mar  5 13:53:23 amdfbsd kernel: ubt0 on uhub0
Mar  5 13:53:23 amdfbsd kernel: ubt0: <Realtek Bluetooth Radio, class 224/1, 
rev 1.00/0.00, addr 2> on usbus1

followed by frequent entries of:
kernel: rtw890: read rf busy swsi
syslogd: last message repeated 1 times

Closing the lid and re-opening it returns:
Mar  5 14:06:18 amdfbsd kernel: rtw890: read rf busy swsi
Mar  5 14:06:49 amdfbsd syslogd: last message repeated 30 times
Mar  5 14:07:30 amdfbsd syslogd: last message repeated 41 times
Mar  5 14:07:30 amdfbsd kernel: rtw890: no tx fwcmd resource
Mar  5 14:07:30 amdfbsd kernel: rtw890: failed to send h2c
Mar  5 14:07:32 amdfbsd kernel: rtw890: read rf busy swsi
Mar  5 14:07:32 amdfbsd syslogd: last message repeated 1 times
Mar  5 14:07:32 amdfbsd kernel: rtw890: no tx fwcmd resource
Mar  5 14:07:32 amdfbsd kernel: rtw890: failed to send h2c
Mar  5 14:07:34 amdfbsd kernel: rtw890: read rf busy swsi
Mar  5 14:07:34 amdfbsd syslogd: last message repeated 1 times

which goes on without end

Lastly, if while in the state after opening the lid. If I execute
halt -p. I'm droppeed to the debugger ( db> ) prompt. Which requires
pressing the power button to shut down.

--