Bug 215550

Summary: iwlwifi no longer works with >=kernel-5.16* (firmware related)
Product: Drivers Reporter: Bernd Buschinski (b.buschinski)
Component: network-wireless-intelAssignee: Default virtual assignee for network-wireless-intel (drivers_network-wireless-intel)
Status: RESOLVED DUPLICATE    
Severity: normal CC: golan.ben.ami
Priority: P1    
Hardware: All   
OS: Linux   
Kernel Version: 5.16.0 Subsystem:
Regression: Yes Bisected commit-id:

Description Bernd Buschinski 2022-01-30 19:43:16 UTC
Since kernel 5.16.0* my wifi is no longer working.
Known to fail: 5.16.0, 5.16.1, 5.16.3, 5.17-rc2
Known to work: 5.15.15

Output looks like:

[   34.582633] iwlwifi 0000:00:14.3: Microcode SW error detected. Restarting 0x0.
[   34.582703] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
[   34.582703] iwlwifi 0000:00:14.3: Transport status: 0x0000004B, valid: 6
[   34.582705] iwlwifi 0000:00:14.3: Loaded firmware version: 67.8f59b80b.0 QuZ-a0-hr-b0-67.ucode
[   34.582706] iwlwifi 0000:00:14.3: 0x00001062 | ADVANCED_SYSASSERT          
[   34.582707] iwlwifi 0000:00:14.3: 0x0000A200 | trm_hw_status0
[   34.582707] iwlwifi 0000:00:14.3: 0x00000000 | trm_hw_status1
[   34.582708] iwlwifi 0000:00:14.3: 0x004CB2DE | branchlink2
[   34.582709] iwlwifi 0000:00:14.3: 0x004C1A5A | interruptlink1
[   34.582709] iwlwifi 0000:00:14.3: 0x004C1A5A | interruptlink2
[   34.582710] iwlwifi 0000:00:14.3: 0x00000000 | data1
[   34.582711] iwlwifi 0000:00:14.3: 0x00000001 | data2
[   34.582711] iwlwifi 0000:00:14.3: 0xDEADBEEF | data3
[   34.582712] iwlwifi 0000:00:14.3: 0x000021DA | beacon time
[   34.582712] iwlwifi 0000:00:14.3: 0x79199E66 | tsf low
[   34.582713] iwlwifi 0000:00:14.3: 0x000001D8 | tsf hi
[   34.582714] iwlwifi 0000:00:14.3: 0x00000000 | time gp1
[   34.582714] iwlwifi 0000:00:14.3: 0x00315C53 | time gp2
[   34.582715] iwlwifi 0000:00:14.3: 0x00000001 | uCode revision type
[   34.582716] iwlwifi 0000:00:14.3: 0x00000043 | uCode version major
[   34.582716] iwlwifi 0000:00:14.3: 0x8F59B80B | uCode version minor
[   34.582717] iwlwifi 0000:00:14.3: 0x00000351 | hw version
[   34.582717] iwlwifi 0000:00:14.3: 0x18489004 | board version
[   34.582718] iwlwifi 0000:00:14.3: 0x8089FC32 | hcmd
[   34.582718] iwlwifi 0000:00:14.3: 0x24020000 | isr0
[   34.582719] iwlwifi 0000:00:14.3: 0x00000000 | isr1
[   34.582724] iwlwifi 0000:00:14.3: 0x18F00002 | isr2
[   34.582725] iwlwifi 0000:00:14.3: 0x00C3400C | isr3
[   34.582725] iwlwifi 0000:00:14.3: 0x00000000 | isr4
[   34.582726] iwlwifi 0000:00:14.3: 0x003E019C | last cmd Id
[   34.582726] iwlwifi 0000:00:14.3: 0x0000B2C8 | wait_event
[   34.582727] iwlwifi 0000:00:14.3: 0x000000D4 | l2p_control
[   34.582727] iwlwifi 0000:00:14.3: 0x00018034 | l2p_duration
[   34.582728] iwlwifi 0000:00:14.3: 0x00000007 | l2p_mhvalid
[   34.582729] iwlwifi 0000:00:14.3: 0x00000081 | l2p_addr_match
[   34.582729] iwlwifi 0000:00:14.3: 0x00000009 | lmpm_pmg_sel
[   34.582730] iwlwifi 0000:00:14.3: 0x00000000 | timestamp
[   34.582730] iwlwifi 0000:00:14.3: 0x000070B0 | flow_handler
[   34.582762] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
[   34.582763] iwlwifi 0000:00:14.3: Transport status: 0x0000004B, valid: 7
[   34.582764] iwlwifi 0000:00:14.3: 0x20000070 | NMI_INTERRUPT_LMAC_FATAL
[   34.582765] iwlwifi 0000:00:14.3: 0x00000000 | umac branchlink1
[   34.582765] iwlwifi 0000:00:14.3: 0x80455E52 | umac branchlink2
[   34.582766] iwlwifi 0000:00:14.3: 0xC00811A4 | umac interruptlink1
[   34.582766] iwlwifi 0000:00:14.3: 0x80479AA4 | umac interruptlink2
[   34.582767] iwlwifi 0000:00:14.3: 0x00000400 | umac data1
[   34.582767] iwlwifi 0000:00:14.3: 0x80479AA4 | umac data2
[   34.582768] iwlwifi 0000:00:14.3: 0x00000000 | umac data3
[   34.582768] iwlwifi 0000:00:14.3: 0x00000043 | umac major
[   34.582769] iwlwifi 0000:00:14.3: 0x8F59B80B | umac minor
[   34.582770] iwlwifi 0000:00:14.3: 0x00315C6D | frame pointer
[   34.582770] iwlwifi 0000:00:14.3: 0xC0886BFC | stack pointer
[   34.582771] iwlwifi 0000:00:14.3: 0x0042010C | last host cmd
[   34.582771] iwlwifi 0000:00:14.3: 0x00000000 | isr status reg
[   34.582786] iwlwifi 0000:00:14.3: IML/ROM dump:
[   34.582787] iwlwifi 0000:00:14.3: 0x00000003 | IML/ROM error/state
[   34.582793] iwlwifi 0000:00:14.3: 0x00005B18 | IML/ROM data1
[   34.582800] iwlwifi 0000:00:14.3: 0x00000080 | IML/ROM WFPM_AUTH_KEY_0
[   34.582805] iwlwifi 0000:00:14.3: Fseq Registers:
[   34.582807] iwlwifi 0000:00:14.3: 0x60000000 | FSEQ_ERROR_CODE
[   34.582809] iwlwifi 0000:00:14.3: 0x80290033 | FSEQ_TOP_INIT_VERSION
[   34.582811] iwlwifi 0000:00:14.3: 0x00090006 | FSEQ_CNVIO_INIT_VERSION
[   34.582814] iwlwifi 0000:00:14.3: 0x0000A481 | FSEQ_OTP_VERSION
[   34.582816] iwlwifi 0000:00:14.3: 0x00000003 | FSEQ_TOP_CONTENT_VERSION
[   34.582818] iwlwifi 0000:00:14.3: 0x4552414E | FSEQ_ALIVE_TOKEN
[   34.582820] iwlwifi 0000:00:14.3: 0x20000302 | FSEQ_CNVI_ID
[   34.582822] iwlwifi 0000:00:14.3: 0x01300504 | FSEQ_CNVR_ID
[   34.582824] iwlwifi 0000:00:14.3: 0x20000302 | CNVI_AUX_MISC_CHIP
[   34.582828] iwlwifi 0000:00:14.3: 0x01300504 | CNVR_AUX_MISC_CHIP
[   34.582833] iwlwifi 0000:00:14.3: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[   34.582837] iwlwifi 0000:00:14.3: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[   34.582917] iwlwifi 0000:00:14.3: WRT: Collecting data: ini trigger 4 fired (delay=0ms).
[   34.582919] ieee80211 phy0: Hardware restart was requested
[   34.582922] iwlwifi 0000:00:14.3: FW error in SYNC CMD SCAN_CFG_CMD
[   34.582925] CPU: 1 PID: 262 Comm: kworker/u16:4 Not tainted 5.15.0-rc7+ #4
[   34.582927] Hardware name: Dell Inc. Latitude 7410/0M5G57, BIOS 1.11.0 12/12/2021
[   34.582929] Workqueue: phy0 ieee80211_iface_work
[   34.582933] Call Trace:
[   34.582935]  dump_stack_lvl+0x34/0x44
[   34.582939]  iwl_trans_txq_send_hcmd+0x415/0x420
[   34.582942]  ? wait_woken+0x60/0x60
[   34.582945]  iwl_trans_send_cmd+0x55/0xe0
[   34.582947]  iwl_mvm_send_cmd+0xd/0x30
[   34.582949]  iwl_mvm_config_scan+0x10d/0x170
[   34.582953]  iwl_mvm_bss_info_changed+0x6db/0x7d0
[   34.582956]  drv_bss_info_changed+0x8c/0x160
[   34.582959]  ieee80211_sta_rx_queued_mgmt.cold+0x109c/0x130d
[   34.582962]  ieee80211_iface_work+0x2f2/0x400
[   34.582965]  process_one_work+0x1d1/0x370
[   34.582968]  worker_thread+0x48/0x3d0
[   34.582970]  ? rescuer_thread+0x380/0x380
[   34.582972]  kthread+0x11f/0x140
[   34.582974]  ? set_kthread_struct+0x40/0x40
[   34.582976]  ret_from_fork+0x1f/0x30
[   34.582992] ------------[ cut here ]------------
[   34.582993] WARNING: CPU: 1 PID: 262 at drivers/net/wireless/intel/iwlwifi/mvm/mac80211.c:2457 iwl_mvm_bss_info_changed+0x4ab/0x7d0
[   34.582996] Modules linked in: snd_hda_codec_hdmi snd_ctl_led snd_hda_codec_realtek snd_hda_codec_generic snd_hda_intel snd_intel_dspcfg snd_hda_codec snd_hwdep snd_hda_core snd_pcm snd_timer snd efivarfs
[   34.583004] CPU: 1 PID: 262 Comm: kworker/u16:4 Not tainted 5.15.0-rc7+ #4
[   34.583006] Hardware name: Dell Inc. Latitude 7410/0M5G57, BIOS 1.11.0 12/12/2021
[   34.583007] Workqueue: phy0 ieee80211_iface_work
[   34.583010] RIP: 0010:iwl_mvm_bss_info_changed+0x4ab/0x7d0
[   34.583012] Code: e0 36 0f 83 57 02 00 00 31 d2 4c 89 e6 4c 89 f7 e8 5a 9f 01 00 31 d2 4c 89 e6 4c 89 f7 e8 1d 61 02 00 85 c0 0f 84 1a fd ff ff <0f> 0b e9 13 fd ff ff 85 c0 0f 84 26 fc ff ff 48 8b 44 24 18 48 8b
[   34.583014] RSP: 0018:ffffc90004adbcf0 EFLAGS: 00010282
[   34.583016] RAX: 00000000fffffffb RBX: 0000000000102009 RCX: 0000000000000000
[   34.583017] RDX: 0000000000000000 RSI: ffffc90004adbc50 RDI: ffff888101154028
[   34.583018] RBP: ffffc90004adbd60 R08: ffffc90004adbca4 R09: ffff88810f542028
[   34.583019] R10: 000000000000003c R11: 0000000000018069 R12: ffff8881069d1690
[   34.583020] R13: ffff88810f542020 R14: ffff88810f542028 R15: ffff88810f542058
[   34.583021] FS:  0000000000000000(0000) GS:ffff88848d640000(0000) knlGS:0000000000000000
[   34.583023] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[   34.583024] CR2: 0000559e4980c248 CR3: 0000000006012003 CR4: 00000000003706e0
[   34.583025] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[   34.583026] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[   34.583027] Call Trace:
[   34.583028]  drv_bss_info_changed+0x8c/0x160
[   34.583031]  ieee80211_sta_rx_queued_mgmt.cold+0x109c/0x130d
[   34.583034]  ieee80211_iface_work+0x2f2/0x400
[   34.583036]  process_one_work+0x1d1/0x370
[   34.583038]  worker_thread+0x48/0x3d0
[   34.583040]  ? rescuer_thread+0x380/0x380
[   34.583042]  kthread+0x11f/0x140
[   34.583044]  ? set_kthread_struct+0x40/0x40
[   34.583046]  ret_from_fork+0x1f/0x30
[   34.583048] ---[ end trace 133b7fc8d299e77c ]---
[   34.583050] iwlwifi 0000:00:14.3: failed to update power mode
[   34.950724] iwlwifi 0000:00:14.3: PHY ctxt cmd error. ret=-5



Git bisect:

cbaa6aeedee5f92dafa5982eceea2a1f98ce4f7d is the first bad commit
commit cbaa6aeedee5f92dafa5982eceea2a1f98ce4f7d
Author: Luca Coelho <luciano.coelho@intel.com>
Date:   Sun Oct 24 18:20:37 2021 +0300

    iwlwifi: bump FW API to 67 for AX devices
    
    Start supporting API version 67 for AX devices.
    
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
    Link: https://lore.kernel.org/r/iwlwifi.20211024181719.3c0af5832d23.I7c18858604b72bc15cf2047a91531e4aa7c0527a@changeid
    Signed-off-by: Luca Coelho <luciano.coelho@intel.com>

 drivers/net/wireless/intel/iwlwifi/cfg/22000.c | 2 +-

 1 file changed, 1 insertion(+), 1 deletion(-)



hwinfo:

26: PCI 14.3: 0282 WLAN controller
  [Created at pci.386]
  Unique ID: S6TQ.63Fr9XGyio8
  SysFS ID: /devices/pci0000:00/0000:00:14.3
  SysFS BusID: 0000:00:14.3
  Hardware Class: network
  Device Name: "Onboard - Ethernet"
  Model: "Intel Wireless-AC 9462 80MHz"
  Vendor: pci 0x8086 "Intel Corporation"
  Device: pci 0x02f0 "Comet Lake PCH-LP CNVi WiFi"
  SubVendor: pci 0x8086 "Intel Corporation"
  SubDevice: pci 0x4070 "Wireless-AC 9462 80MHz"
  Driver: "iwlwifi"
  Driver Modules: "iwlwifi"
  Device File: wlo1
  Features: WLAN
  Memory Range: 0xec31c000-0xec31ffff (rw,non-prefetchable)
  IRQ: 16 (2 events)
  HW Address: 34:2e:b7:47:06:cb
  Permanent HW Address: 34:2e:b7:47:06:cb
  Link detected: yes
  WLAN channels: 1 2 3 4 5 6 7 8 9 10 11 12 13 36 40 44 48 52 56 60 64 100 104 108 112 116 120 124 128 132 136 140
  WLAN frequencies: 2.412 2.417 2.422 2.427 2.432 2.437 2.442 2.447 2.452 2.457 2.462 2.467 2.472 5.18 5.2 5.22 5.24 5.26 5.28 5.3 5.32 5.5 5.52 5.54 5.56 5.58 5.6 5.62 5.64 5.66 5.68 5.7
  WLAN encryption modes: WEP40 WEP104 TKIP CCMP
  WLAN authentication modes: open sharedkey wpa-psk wpa-eap
  Module Alias: "pci:v00008086d000002F0sv00008086sd00004070bc02sc80i00"
  Config Status: cfg=new, avail=yes, need=no, active=unknown



Any other information I can provide? :)
Comment 1 Golan Ben Ami 2022-02-01 08:05:13 UTC
Hi this is a dup of https://bugzilla.kernel.org/show_bug.cgi?id=215488

*** This bug has been marked as a duplicate of bug 215488 ***