iwlwifi caused a kernel panic

Hey, I wanted to report that sometimes my system freezes and reboots when I connect to an access point.
I don't know if it's random or there's a trigger but it happened 3 times in a row, and every time I was trying to connect to my iPhone's hotspot and after failing I tried to reconnect to home's router.
It's an Intel 2022 Legion 5 with AX211 WiFi card, running FreeBSD 15.0-RC2.

Code:
iwlwifi0@pci0:0:20:3:    class=0x028000 rev=0x01 hdr=0x00 vendor=0x8086 device=0x51f0 subvendor=0x8086 subdevice=0x0094
    vendor     = 'Intel Corporation'
    device     = 'Alder Lake-P PCH CNVi WiFi'
    class      = network

This is what I could find related in /var/log/messages:
Code:
Nov 20 16:05:02 localhost dhclient[5882]: send_packet: No buffer space available
Nov 20 16:05:02 localhost syslogd: last message repeated 1 times
Nov 20 16:05:02 localhost wpa_supplicant[501]: wlan0: WPA: Key negotiation completed with <redacted> [PTK=CCMP GTK=TKIP]
Nov 20 16:05:02 localhost wpa_supplicant[501]: wlan0: CTRL-EVENT-CONNECTED - Connection to <redacted> completed [id=0 id_str=]
Nov 20 16:05:02 localhost dhclient[5943]: New IP Address (wlan0): 192.168.1.103
Nov 20 16:05:02 localhost dhclient[5947]: New Subnet Mask (wlan0): 255.255.255.0
Nov 20 16:05:02 localhost dhclient[5951]: New Broadcast Address (wlan0): 192.168.1.255
Nov 20 16:05:02 localhost dhclient[5955]: New Routers (wlan0): 192.168.1.1
Nov 20 16:06:03 localhost dhclient[6156]: New IP Address (wlan0): 192.168.1.103
Nov 20 16:06:03 localhost dhclient[6160]: New Subnet Mask (wlan0): 255.255.255.0
Nov 20 16:06:03 localhost dhclient[6164]: New Broadcast Address (wlan0): 192.168.1.255
Nov 20 16:06:03 localhost dhclient[6168]: New Routers (wlan0): 192.168.1.1
Nov 20 16:06:04 localhost dhclient[6173]: New Routers (wlan0): 192.168.1.1
Nov 20 16:06:27 localhost wpa_supplicant[501]: wlan0: Trying to associate with <redacted> (SSID='<redacted>' freq=2412 MHz)
Nov 20 16:06:27 localhost wpa_supplicant[501]: wlan0: CTRL-EVENT-DISCONNECTED bssid=<redacted> reason=0
Nov 20 16:06:27 localhost wpa_supplicant[501]: wlan0: Added BSSID <redacted> into ignore list, ignoring for 10 seconds
Nov 20 16:06:27 localhost kernel: wlan0: link state changed to DOWN
Nov 20 16:06:27 localhost wpa_supplicant[501]: wlan0: Removed BSSID <redacted> from ignore list (clear)
Nov 20 16:06:27 localhost wpa_supplicant[501]: wlan0: Trying to associate with <redacted> (SSID='<redacted>' freq=2412 MHz)
Nov 20 16:06:28 localhost kernel: WARNING IS_ERR_OR_NULL(sta) failed at /usr/src/sys/contrib/dev/iwlwifi/mvm/rxmq.c:722
Nov 20 16:06:28 localhost kernel: iwlwifi0: Microcode SW error detected. Restarting 0x0.
Nov 20 16:06:28 localhost kernel: iwlwifi0: Start IWL Error Log Dump:
Nov 20 16:06:28 localhost kernel: iwlwifi0: Transport status: 0x0000004B, valid: 6
Nov 20 16:06:28 localhost kernel: iwlwifi0: Loaded firmware version: 89.6b44fa0b.0 so-a0-gf-a0-89.ucode
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00A08200 | trm_hw_status0
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000000 | trm_hw_status1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x004D9CBC | branchlink2
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x0000639A | interruptlink1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x0000639A | interruptlink2
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00015714 | data1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000010 | data2
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000000 | data3
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0xD3805BDE | beacon time
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0xF3D2A35C | tsf low
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000079 | tsf hi
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000000 | time gp1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x0D0B6269 | time gp2
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000001 | uCode revision type
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000059 | uCode version major
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x6B44FA0B | uCode version minor
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000370 | hw version
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00C80002 | board version
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x8006FF00 | hcmd
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x66821000 | isr0
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x21044000 | isr1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x58F00002 | isr2
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00C3000F | isr3
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00200000 | isr4
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00830103 | last cmd Id
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00015714 | wait_event
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000084 | l2p_control
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00018034 | l2p_duration
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x0000000F | l2p_mhvalid
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00C700D8 | l2p_addr_match
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000009 | lmpm_pmg_sel
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000000 | timestamp
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00003890 | flow_handler
Nov 20 16:06:28 localhost kernel: iwlwifi0: Start IWL Error Log Dump:
Nov 20 16:06:28 localhost kernel: iwlwifi0: Transport status: 0x0000004B, valid: 7
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x2010303A | ADVANCED_SYSASSERT
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000000 | umac branchlink1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x8048829A | umac branchlink2
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x010982D0 | umac interruptlink1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000000 | umac interruptlink2
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000000 | umac data1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0xDEADBEEF | umac data2
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0xDEADBEEF | umac data3
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000059 | umac major
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x6B44FA0B | umac minor
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x0D0B6263 | frame pointer
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0xC0886BEC | stack pointer
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x0088030C | last host cmd
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000000 | isr status reg
Nov 20 16:06:28 localhost kernel: iwlwifi0: IML/ROM dump:
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000B03 | IML/ROM error/state
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x0000828F | IML/ROM data1
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000090 | IML/ROM WFPM_AUTH_KEY_0
Nov 20 16:06:28 localhost kernel: iwlwifi0: Fseq Registers:
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x60000000 | FSEQ_ERROR_CODE
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x803E0003 | FSEQ_TOP_INIT_VERSION
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00190004 | FSEQ_CNVIO_INIT_VERSION
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x0000A652 | FSEQ_OTP_VERSION
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000003 | FSEQ_TOP_CONTENT_VERSION
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x4552414E | FSEQ_ALIVE_TOKEN
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00080400 | FSEQ_CNVI_ID
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00400410 | FSEQ_CNVR_ID
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00080400 | CNVI_AUX_MISC_CHIP
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00400410 | CNVR_AUX_MISC_CHIP
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00009061 | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00000061 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x00190004 | FSEQ_PREV_CNVIO_INIT_VERSION
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x003E0003 | FSEQ_WIFI_FSEQ_VERSION
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0xF8A7BF95 | FSEQ_BT_FSEQ_VERSION
Nov 20 16:06:28 localhost kernel: iwlwifi0: 0x000000C8 | FSEQ_CLASS_TP_VERSION
Nov 20 16:06:28 localhost kernel: iwlwifi0: UMAC CURRENT PC: 0x804abef8
Nov 20 16:06:28 localhost kernel: iwlwifi0: LMAC1 CURRENT PC: 0xd0
Nov 20 16:06:28 localhost kernel: iwlwifi0: FW error in SYNC CMD STA_REMOVE_CMD
Nov 20 16:06:28 localhost kernel: #0 0xffffffff80df3abb at linux_dump_stack+0x1b
Nov 20 16:06:28 localhost kernel: #1 0xffffffff8472344a at iwl_trans_pcie_send_hcmd+0x43a
Nov 20 16:06:28 localhost kernel: #2 0xffffffff847008a4 at iwl_trans_send_cmd+0x84
Nov 20 16:06:28 localhost kernel: #3 0xffffffff8476c0e9 at iwl_mvm_send_cmd_pdu+0x49
Nov 20 16:06:28 localhost kernel: #4 0xffffffff84742321 at iwl_mvm_mld_rm_sta+0x391
Nov 20 16:06:28 localhost kernel: #5 0xffffffff84735fc7 at iwl_mvm_mac_sta_state_common+0xcf7
Nov 20 16:06:28 localhost kernel: #6 0xffffffff80ded8a8 at lkpi_80211_mo_sta_state+0xa8
Nov 20 16:06:28 localhost kernel: #7 0xffffffff80de7d43 at _lkpi_sta_assoc_to_down+0x5d3
Nov 20 16:06:28 localhost kernel: #8 0xffffffff80ddcd5e at lkpi_sta_assoc_to_auth+0xe
Nov 20 16:06:28 localhost kernel: #9 0xffffffff80dead7e at lkpi_iv_newstate+0x43e
Nov 20 16:06:28 localhost kernel: #10 0xffffffff80d127e8 at ieee80211_newstate_cb+0x1f8
Nov 20 16:06:28 localhost kernel: #11 0xffffffff80bd4a42 at taskqueue_run_locked+0x182
Nov 20 16:06:28 localhost kernel: #12 0xffffffff80bd5c12 at taskqueue_thread_loop+0xc2
Nov 20 16:06:28 localhost kernel: #13 0xffffffff80b274cb at fork_exit+0x7b
Nov 20 16:06:28 localhost kernel: #14 0xffffffff81050b6e at fork_trampoline+0xe
Nov 20 16:06:28 localhost kernel: iwlwifi0: Failed to remove station. Id=0
Nov 20 16:06:28 localhost kernel: iwlwifi0: Failed to send MAC_CONFIG_CMD (action:2): -5
Nov 20 16:06:28 localhost kernel: iwlwifi0: failed to update MAC 0xfffffe019666ef12M
Nov 20 16:06:28 localhost kernel: iwlwifi0: failed to update power mode
Nov 20 16:06:28 localhost kernel: iwlwifi0: Failed to send LINK_CONFIG_CMD (action:2): -5
Nov 20 16:06:28 localhost kernel: iwlwifi0: Failed to send LINK_CONFIG_CMD (action:3): -5
Nov 20 16:06:28 localhost kernel: iwlwifi0: Failed to send LINK_CONFIG_CMD (action:1): -5
Nov 20 16:06:28 localhost kernel: iwlwifi0: PHY ctxt cmd error. ret=-5
Nov 20 16:06:28 localhost kernel: iwlwifi0: lkpi_ic_ampdu_rx_stop: lsta 0 ni 0xfffffe0198069000 vap 0xfffffe019666e010, lsta is NULL
Nov 20 16:06:28 localhost syslogd: last message repeated 3 times
Nov 20 16:06:28 localhost kernel: iwlwifi0: WRT: Collecting data: ini trigger 4 fired (delay=0ms).
 
This card should be supported by iwx driver from OpenBSD which is added in 15. i have ax210 and iwx is great more stable than iwlwifi. this does not mean the problem should not reported quite the opposite. but at least you can have a wifi
 
Report on freebsd-wireless@FreeBSD.org mailing list. The developer of the iwlwifi driver (Bjoern A. Zeeb.) is asking to test, and to report issues on that list.
Sure, thanks for instructions, I didn’t know where to send this so I posted it here.

This card should be supported by iwx driver from OpenBSD which is added in 15. i have ax210 and iwx is great more stable than iwlwifi.
Thanks for introduction, I didn’t know there are drivers other than iwlwifi, I’ll try that out.
 
Chiming in to say that Bjoern is a rock star. A couple of weeks ago I volunteered to provide test/debug help using my Intel Wireless AC 9462, which uses the iwlwifi driver. My symptoms: with 802.11n enabled, the driver crashed on boot. With 802.11n disabled, no crash... but the adapter would not negotiate 802.11ac with either Cisco or Unifi APs (I could only connect with 802.11a). Multiple tests (by others too, not just me) suggested some fixes that Bjoern put into a patch - I compiled a custom 15.0-RELEASE kernel last night with his patch applied and viola! Everything works as it should: no barf with 802.11n enabled, and I'm negotiating 802.11ac links with both sets of APs.

802.11ac is working for my 9462, so hopefully this patch will work for those with other flavors of 9000/AX100/AX200 adapters. Bjoern expressed hope that the patch could be committed to main in the coming days, and trickle out to 15-STABLE after that.
 
Back
Top