[Bug 263613] iwlwifi0 on framework laptop crashes (kernel panic) when setting IP
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 263613] iwlwifi0 on framework laptop crashes when setting IP"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 29 Oct 2023 17:53:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263613 --- Comment #34 from Gleb Popov <arrowd@FreeBSD.org> --- It started working for me! I'm writing this comment while being connected via iwlwifi. The "service netif restart" stopped panicing too, however it spits the following messages: Oct 29 20:32:53 sbreeze kernel: wlan0: link state changed to DOWN Oct 29 20:32:53 sbreeze kernel: iwlwifi0: Couldn't drain frames for staid 0, status 0x8 Oct 29 20:32:53 sbreeze kernel: iwlwifi0: lkpi_sta_run_to_init:1954: mo_sta_state(NOTEXIST) failed: -5 Oct 29 20:32:53 sbreeze kernel: iwlwifi0: lkpi_iv_newstate: error -5 during state transition 5 (RUN) -> 0 (INIT) Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Microcode SW error detected. Restarting 0x2000000. Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Start IWL Error Log Dump: Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Transport status: 0x0000004B, valid: 6 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Loaded firmware version: 29.4063824552.0 7265D-29.ucode Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00003418 | ADVANCED_SYSASSERT Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000220 | trm_hw_status0 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | trm_hw_status1 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00043D6C | branchlink2 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x0004B002 | interruptlink1 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | interruptlink2 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0xDEADBEEF | data1 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0xDEADBEEF | data2 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0xDEADBEEF | data3 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x210046B6 | beacon time Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0xD39E294A | tsf low Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000135 | tsf hi Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | time gp1 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x014E3B60 | time gp2 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000001 | uCode revision type Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x0000001D | uCode version major Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0xF2390AA8 | uCode version minor Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000210 | hw version Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00489200 | board version Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x005C0128 | hcmd Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x24022080 | isr0 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | isr1 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000002 | isr2 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x004150C0 | isr3 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | isr4 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x005B0118 | last cmd Id Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | wait_event Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x000000D4 | l2p_control Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00018010 | l2p_duration Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000007 | l2p_mhvalid Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | l2p_addr_match Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000005 | lmpm_pmg_sel Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x03031934 | timestamp Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x0000C0C8 | flow_handler Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Fseq Registers: Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_ERROR_CODE Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_TOP_INIT_VERSION Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_CNVIO_INIT_VERSION Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_OTP_VERSION Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_TOP_CONTENT_VERSION Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_ALIVE_TOKEN Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_CNVI_ID Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_CNVR_ID Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | CNVI_AUX_MISC_CHIP Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | CNVR_AUX_MISC_CHIP Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_PREV_CNVIO_INIT_VERSION Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_WIFI_FSEQ_VERSION Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_BT_FSEQ_VERSION Oct 29 20:32:54 sbreeze kernel: iwlwifi0: 0x00000000 | FSEQ_CLASS_TP_VERSION Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Collecting data: trigger 2 fired. Oct 29 20:32:54 sbreeze kernel: iwlwifi0: FW error in SYNC CMD MAC_CONTEXT_CMD Oct 29 20:32:54 sbreeze kernel: #0 0xffffffff80a5fb9b at linux_dump_stack+0x1b Oct 29 20:32:54 sbreeze kernel: #1 0xffffffff82cf6773 at iwl_trans_txq_send_hcmd+0x3f3 Oct 29 20:32:54 sbreeze kernel: #2 0xffffffff82c9229e at iwl_trans_send_cmd+0xce Oct 29 20:32:54 sbreeze kernel: #3 0xffffffff82cd5319 at iwl_mvm_send_cmd_pdu+0x49 Oct 29 20:32:54 sbreeze kernel: #4 0xffffffff82ca27ba at iwl_mvm_mac_ctxt_remove+0x7a Oct 29 20:32:54 sbreeze kernel: #5 0xffffffff82cadbcc at iwl_mvm_mac_remove_interface+0x1ec Oct 29 20:32:54 sbreeze kernel: #6 0xffffffff80a59cae at lkpi_80211_mo_remove_interface+0x8e Oct 29 20:32:54 sbreeze kernel: #7 0xffffffff80a555a6 at lkpi_ic_vap_delete+0xd6 Oct 29 20:32:54 sbreeze kernel: #8 0xffffffff8095f362 at wlan_clone_destroy+0x12 Oct 29 20:32:54 sbreeze kernel: #9 0xffffffff80914811 at if_clone_destroy+0x91 Oct 29 20:32:54 sbreeze kernel: #10 0xffffffff80910719 at ifioctl+0x899 Oct 29 20:32:54 sbreeze kernel: #11 0xffffffff8085ad45 at kern_ioctl+0x255 Oct 29 20:32:54 sbreeze kernel: #12 0xffffffff8085aa83 at sys_ioctl+0x123 Oct 29 20:32:54 sbreeze kernel: #13 0xffffffff80c21eb9 at amd64_syscall+0x109 Oct 29 20:32:54 sbreeze kernel: #14 0xffffffff80bf77bb at fast_syscall_common+0xf8 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Failed to send MAC_CONTEXT_CMD (action:3): -5 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Failed to disable queue 1 (ret=-5) Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Failed to remove station. Id=1 Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Failed sending remove station Oct 29 20:32:54 sbreeze kernel: iwlwifi0: Applying debug destination EXTERNAL_DRAM Oct 29 20:32:54 sbreeze syslogd: last message repeated 1 times Oct 29 20:32:54 sbreeze kernel: iwlwifi0: FW already configured (0) - re-configuring Oct 29 20:32:54 sbreeze kernel: WARNING !!!(({ __typeof(((volatile const unsigned long *)(&mvm->status))[((IWL_MVM_STATUS_IN_HW_RESTART) / 64)]) __var = ({ __asm__ __volatile__("": : :"memory"); (*(const volatile __typeof(((volatile const unsigned long *)(&mvm->status))[((IWL_MVM_STATUS_IN_HW_RESTART) / 64)]) *)&(((volatile const unsigned long *)(&mvm->status))[((IWL_MVM_STATUS_IN_HW_RESTART) / 64)])); }); __asm__ __volatile__("": : :"memory"); __var; }) & (1UL << ((IWL_MVM_STATUS_IN_HW_RESTART) & (64 - 1)))) && ctxt->ref failed at /usr/src/sys/contrib/dev/iwlwifi/mvm/phy-ctxt.c:269 Oct 29 20:32:54 sbreeze kernel: wlan0: Ethernet address: 9c:da:3e:77:91:d3 Oct 29 20:32:56 sbreeze kernel: wlan0: link state changed to UP I will keep running iwlwifi on my laptop and will report back any issues I'll encounter. Thanks again for the great work! -- You are receiving this mail because: You are on the CC list for the bug.