[Bug 296185] rtw89(4) freezes the system with INVARIANTS kernel

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 21 Jun 2026 15:08:12 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296185

            Bug ID: 296185
           Summary: rtw89(4) freezes the system with INVARIANTS kernel
           Product: Base System
           Version: 15.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: wireless
          Assignee: wireless@FreeBSD.org
          Reporter: temcbun@gmail.com

I'm running FreeBSD stable/15 on ThinkPad T14 Gen 2 AMD Ryzen 7 PRO 5850U with
the GENERIC kernel.

---------------------
$ pciconf -lv
rtw890@pci0:3:0:0:      class=0x028000 rev=0x00 hdr=0x00 vendor=0x10ec
device=0x8852 subvendor=0x17aa subdevice=0x4852
    vendor     = 'Realtek Semiconductor Co., Ltd.'
    device     = 'RTL8852AE 802.11ax PCIe Wireless Network Adapter'
    class      = network
---------------------

---------------------
$ dmesg |grep rtw89
rtw890: <rtw89_8852ae> port 0x3000-0x30ff mem 0xfd600000-0xfd6fffff at device
0.0 on pci3
rtw890: successfully loaded firmware image 'rtw89/rtw8852a_fw.bin'
rtw890: loaded firmware rtw89/rtw8852a_fw.bin
rtw890: Firmware version 0.13.36.2 (52acc807), cmd version 0, type 1
rtw890: Firmware version 0.13.36.2 (52acc807), cmd version 0, type 3
rtw890: chip info CID: 0, CV: 1, AID: 0, ACV: 0, RFE: 1
rtw890: rfkill hardware state changed to enable
rtw890: <rtw89_8852ae> port 0x3000-0x30ff mem 0xfd600000-0xfd6fffff at device
0.0 on pci3
rtw890: successfully loaded firmware image 'rtw89/rtw8852a_fw.bin'
rtw890: loaded firmware rtw89/rtw8852a_fw.bin
rtw890: Firmware version 0.13.36.2 (52acc807), cmd version 0, type 1
rtw890: Firmware version 0.13.36.2 (52acc807), cmd version 0, type 3
rtw890: chip info CID: 0, CV: 1, AID: 0, ACV: 0, RFE: 1
rtw890: rfkill hardware state changed to enable
rtw890: <rtw89_8852ae> port 0x3000-0x30ff mem 0xfd600000-0xfd6fffff at device
0.0 on pci3
rtw890: successfully loaded firmware image 'rtw89/rtw8852a_fw.bin'
rtw890: loaded firmware rtw89/rtw8852a_fw.bin
rtw890: MAC has already powered on
rtw890: Firmware version 0.13.36.2 (52acc807), cmd version 0, type 1
rtw890: Firmware version 0.13.36.2 (52acc807), cmd version 0, type 3
rtw890: chip info CID: 0, CV: 1, AID: 0, ACV: 0, RFE: 1
rtw890: rfkill hardware state changed to enable
---------------------

---------------------
$ pkg info wifi-firmware-rtw89-kmod-20260410
wifi-firmware-rtw89-kmod-20260410
Name           : wifi-firmware-rtw89-kmod
Version        : 20260410
Installed on   : Sun Jun 21 16:03:29 2026 MSK
Origin         : net/wifi-firmware-rtw89-kmod
Architecture   : FreeBSD:15: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: 1501501
        flavor         : rtw89
Flat size      : 24.8MiB
Description    :
Firmware files for Realtek WiFi NICs supported by the rtw89 driver.
---------------------

If I'm trying to create a wlandev with:
    $ ifconfig wlan create wlandev rtw890
it is created without any errors, but if I compile the same GENERIC kernel
with:
    options INVARIANT_SUPPORT
    options INVARIANTS
then this command just hangs: doesn't print any errors in the console, but
doesn't crash/reboot; I'm unable to interrupt or stop the process, the only way
is to shut the system down by pushing the power button.

-- 
You are receiving this mail because:
You are the assignee for the bug.