Bug 218963

Summary: Raptor Lake/Wi-Fi 6E AX211 REV=0x370 died after -89.ucode firmware updates from commit 77d84268
Product: Drivers Reporter: denydias (deny)
Component: network-wireless-intelAssignee: Default virtual assignee for network-wireless-intel (drivers_network-wireless-intel)
Status: CLOSED CODE_FIX    
Severity: normal CC: emmanuel.grumbach, jlp.bugs
Priority: P3    
Hardware: Intel   
OS: Linux   
Kernel Version: Subsystem:
Regression: No Bisected commit-id:
Attachments: debugging output

Description denydias 2024-06-17 14:02:49 UTC
Created attachment 306467 [details]
debugging output

Running Slackware -current (aka development branch). After upgrading to kernel-firmware-20240614_d95dff8 from kernel-firmware-20240612_776320a, iwlwifi stopped working. I found that reverting to the previous kernel-firmware does make it work again. Some superficial debug points to this commit [https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/commit/?id=77d842685c71b9415df573e80a6b0ee7042394fc]. The old iwlwifi-so-a0-gf-a0-89.ucode blob with 1709992 bytes works, but the updated one with 1731172 bytes don't. There are other users reporting to be affected on the following thread [https://www.linuxquestions.org/questions/slackware-14/current%27s-kernel-firmware-and-intel-corporation-raptor-lake-pch-cnvi-wifi-rev-01-a-4175738244/]
Comment 1 denydias 2024-06-17 14:04:04 UTC
Comment on attachment 306467 [details]
debugging output

# lspci | grep Network
0000:00:14.3 Network controller: Intel Corporation Raptor Lake PCH CNVi WiFi (rev 01)
# dmesg | grep iwlwifi
[   28.691121] iwlwifi 0000:00:14.3: Registered PHC clock: iwlwifi-PTP, with index: 0
[   28.691917] iwlwifi 0000:00:14.3: Microcode SW error detected. Restarting 0x0.
[   28.692115] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
[   28.692120] iwlwifi 0000:00:14.3: Transport status: 0x0000004B, valid: 6
[   28.692128] iwlwifi 0000:00:14.3: Loaded firmware version: 89.202a2f7b.0 so-a0-gf-a0-89.ucode
[   28.692133] iwlwifi 0000:00:14.3: 0x00000071 | NMI_INTERRUPT_UMAC_FATAL
[   28.692139] iwlwifi 0000:00:14.3: 0x000002F0 | trm_hw_status0
[   28.692143] iwlwifi 0000:00:14.3: 0x00000000 | trm_hw_status1
[   28.692147] iwlwifi 0000:00:14.3: 0x004D9CDC | branchlink2
[   28.692151] iwlwifi 0000:00:14.3: 0x004CF866 | interruptlink1
[   28.692155] iwlwifi 0000:00:14.3: 0x004CF866 | interruptlink2
[   28.692159] iwlwifi 0000:00:14.3: 0x000159DA | data1
[   28.692163] iwlwifi 0000:00:14.3: 0x00000010 | data2
[   28.692167] iwlwifi 0000:00:14.3: 0x00000000 | data3
[   28.692171] iwlwifi 0000:00:14.3: 0x00000000 | beacon time
[   28.692175] iwlwifi 0000:00:14.3: 0x00029B6B | tsf low
[   28.692178] iwlwifi 0000:00:14.3: 0x00000000 | tsf hi
[   28.692182] iwlwifi 0000:00:14.3: 0x00000000 | time gp1
[   28.692186] iwlwifi 0000:00:14.3: 0x0003E534 | time gp2
[   28.692190] iwlwifi 0000:00:14.3: 0x00000001 | uCode revision type
[   28.692195] iwlwifi 0000:00:14.3: 0x00000059 | uCode version major
[   28.692198] iwlwifi 0000:00:14.3: 0x202A2F7B | uCode version minor
[   28.692203] iwlwifi 0000:00:14.3: 0x00000370 | hw version
[   28.692207] iwlwifi 0000:00:14.3: 0x00C80002 | board version
[   28.692212] iwlwifi 0000:00:14.3: 0x8095FF00 | hcmd
[   28.692216] iwlwifi 0000:00:14.3: 0x00020000 | isr0
[   28.692220] iwlwifi 0000:00:14.3: 0x00000000 | isr1
[   28.692224] iwlwifi 0000:00:14.3: 0x48F04002 | isr2
[   28.692228] iwlwifi 0000:00:14.3: 0x00C3000C | isr3
[   28.692232] iwlwifi 0000:00:14.3: 0x00000000 | isr4
[   28.692236] iwlwifi 0000:00:14.3: 0x00000000 | last cmd Id
[   28.692240] iwlwifi 0000:00:14.3: 0x000159DA | wait_event
[   28.692244] iwlwifi 0000:00:14.3: 0x00000000 | l2p_control
[   28.692290] iwlwifi 0000:00:14.3: 0x00000000 | l2p_duration
[   28.692293] iwlwifi 0000:00:14.3: 0x00000000 | l2p_mhvalid
[   28.692296] iwlwifi 0000:00:14.3: 0x00000000 | l2p_addr_match
[   28.692299] iwlwifi 0000:00:14.3: 0x00000018 | lmpm_pmg_sel
[   28.692302] iwlwifi 0000:00:14.3: 0x00000000 | timestamp
[   28.692304] iwlwifi 0000:00:14.3: 0x00001034 | flow_handler
[   28.692389] iwlwifi 0000:00:14.3: Start IWL Error Log Dump:
[   28.692392] iwlwifi 0000:00:14.3: Transport status: 0x0000004B, valid: 7
[   28.692404] iwlwifi 0000:00:14.3: 0x201002FD | ADVANCED_SYSASSERT
[   28.692408] iwlwifi 0000:00:14.3: 0x00000000 | umac branchlink1
[   28.692411] iwlwifi 0000:00:14.3: 0x8048828E | umac branchlink2
[   28.692414] iwlwifi 0000:00:14.3: 0xC00814F0 | umac interruptlink1
[   28.692417] iwlwifi 0000:00:14.3: 0x00000000 | umac interruptlink2
[   28.692422] iwlwifi 0000:00:14.3: 0x0010019F | umac data1
[   28.692426] iwlwifi 0000:00:14.3: 0x00000078 | umac data2
[   28.692429] iwlwifi 0000:00:14.3: 0x0000002C | umac data3
[   28.692431] iwlwifi 0000:00:14.3: 0x00000059 | umac major
[   28.692434] iwlwifi 0000:00:14.3: 0x202A2F7B | umac minor
[   28.692436] iwlwifi 0000:00:14.3: 0x0003E52F | frame pointer
[   28.692439] iwlwifi 0000:00:14.3: 0xC0886C24 | stack pointer
[   28.692442] iwlwifi 0000:00:14.3: 0x0010019F | last host cmd
[   28.692444] iwlwifi 0000:00:14.3: 0x00000000 | isr status reg
[   28.692505] iwlwifi 0000:00:14.3: IML/ROM dump:
[   28.692508] iwlwifi 0000:00:14.3: 0x00000B03 | IML/ROM error/state
[   28.692569] iwlwifi 0000:00:14.3: 0x00008237 | IML/ROM data1
[   28.692633] iwlwifi 0000:00:14.3: 0x00000090 | IML/ROM WFPM_AUTH_KEY_0
[   28.692693] iwlwifi 0000:00:14.3: Fseq Registers:
[   28.692738] iwlwifi 0000:00:14.3: 0x60000000 | FSEQ_ERROR_CODE
[   28.692789] iwlwifi 0000:00:14.3: 0x803E0003 | FSEQ_TOP_INIT_VERSION
[   28.692848] iwlwifi 0000:00:14.3: 0x00190004 | FSEQ_CNVIO_INIT_VERSION
[   28.692903] iwlwifi 0000:00:14.3: 0x0000A652 | FSEQ_OTP_VERSION
[   28.692956] iwlwifi 0000:00:14.3: 0x00000003 | FSEQ_TOP_CONTENT_VERSION
[   28.693015] iwlwifi 0000:00:14.3: 0x4552414E | FSEQ_ALIVE_TOKEN
[   28.693070] iwlwifi 0000:00:14.3: 0x00080400 | FSEQ_CNVI_ID
[   28.693123] iwlwifi 0000:00:14.3: 0x00400410 | FSEQ_CNVR_ID
[   28.693176] iwlwifi 0000:00:14.3: 0x00080400 | CNVI_AUX_MISC_CHIP
[   28.693231] iwlwifi 0000:00:14.3: 0x00400410 | CNVR_AUX_MISC_CHIP
[   28.693292] iwlwifi 0000:00:14.3: 0x00009061 | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[   28.693350] iwlwifi 0000:00:14.3: 0x00000061 | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[   28.693405] iwlwifi 0000:00:14.3: 0x00190004 | FSEQ_PREV_CNVIO_INIT_VERSION
[   28.693464] iwlwifi 0000:00:14.3: 0x003E0003 | FSEQ_WIFI_FSEQ_VERSION
[   28.693517] iwlwifi 0000:00:14.3: 0x003E0003 | FSEQ_BT_FSEQ_VERSION
[   28.693570] iwlwifi 0000:00:14.3: 0x000000C8 | FSEQ_CLASS_TP_VERSION
[   28.693631] iwlwifi 0000:00:14.3: UMAC CURRENT PC: 0x804abce4
[   28.693684] iwlwifi 0000:00:14.3: LMAC1 CURRENT PC: 0xd0
[   28.693740] iwlwifi 0000:00:14.3: Starting mac, retry will be triggered anyway
[   28.693758] iwlwifi 0000:00:14.3: FW error in SYNC CMD REDUCE_TX_POWER_CMD
[   28.693768] CPU: 7 PID: 1983 Comm: NetworkManager Not tainted 6.9.5 #1
[   28.693775] Hardware name: ASUSTeK COMPUTER INC. Zenbook UX3404VA_UX3404VA/UX3404VA, BIOS UX3404VA.303 08/18/2023
[   28.693778] Call Trace:
[   28.693783]  <TASK>
[   28.693789]  dump_stack_lvl+0x4a/0x70
[   28.693804]  iwl_trans_txq_send_hcmd+0x395/0x3a0 [iwlwifi]
[   28.693865]  ? __pfx_autoremove_wake_function+0x10/0x10
[   28.693877]  iwl_trans_send_cmd+0x7a/0xe0 [iwlwifi]
[   28.693918]  iwl_mvm_send_cmd_pdu+0x54/0x90 [iwlmvm]
[   28.693969]  iwl_mvm_sar_select_profile+0xb7/0x140 [iwlmvm]
[   28.694002]  iwl_mvm_up+0x6dc/0xa40 [iwlmvm]
[   28.694032]  ? dev_get_port_parent_id+0x9f/0x170
[   28.694039]  ? dev_fetch_sw_netstats+0x58/0x70
[   28.694045]  __iwl_mvm_mac_start+0x5b/0x1c0 [iwlmvm]
[   28.694083]  iwl_mvm_mac_start+0x39/0xb0 [iwlmvm]
[   28.694120]  drv_start+0x3b/0x100 [mac80211]
[   28.694204]  ieee80211_do_open+0x260/0x750 [mac80211]
[   28.694309]  ieee80211_open+0x86/0x90 [mac80211]
[   28.694409]  __dev_open+0xf8/0x1b0
[   28.694416]  __dev_change_flags+0x1c8/0x210
[   28.694423]  dev_change_flags+0x22/0x60
[   28.694429]  do_setlink+0x36c/0x1210
[   28.694437]  ? __nla_validate_parse+0x5f/0xcb0
[   28.694448]  __rtnl_newlink+0x5ba/0xaa0
[   28.694456]  rtnl_newlink+0x43/0x70
[   28.694463]  rtnetlink_rcv_msg+0x13e/0x3d0
[   28.694469]  ? kmem_cache_alloc_lru+0x2cd/0x3b0
[   28.694477]  ? __d_alloc+0x2d/0x230
[   28.694483]  ? __pfx_rtnetlink_rcv_msg+0x10/0x10
[   28.694488]  netlink_rcv_skb+0x4c/0x100
[   28.694500]  netlink_unicast+0x23c/0x360
[   28.694507]  netlink_sendmsg+0x217/0x470
[   28.694515]  ____sys_sendmsg+0x312/0x380
[   28.694523]  ___sys_sendmsg+0x9a/0xe0
[   28.694532]  __sys_sendmsg+0xc8/0xf0
[   28.694538]  do_syscall_64+0x48/0x110
[   28.694543]  entry_SYSCALL_64_after_hwframe+0x76/0x7e
[   28.694550] RIP: 0033:0x7fdfdd71b86d
[   28.694557] Code: 28 89 54 24 1c 48 89 74 24 10 89 7c 24 08 e8 8a 55 f7 ff 8b 54 24 1c 48 8b 74 24 10 41 89 c0 8b 7c 24 08 b8 2e 00 00 00 0f 05 <48> 3d 00 f0 ff ff 77 33 44 89 c7 48 89 44 24 08 e8 de 55 f7 ff 48
[   28.694562] RSP: 002b:00007fff7b9517f0 EFLAGS: 00000293 ORIG_RAX: 000000000000002e
[   28.694569] RAX: ffffffffffffffda RBX: 000000001ab26a60 RCX: 00007fdfdd71b86d
[   28.694573] RDX: 0000000000000000 RSI: 00007fff7b951860 RDI: 000000000000000d
[   28.694576] RBP: 00007fff7b951860 R08: 0000000000000000 R09: 0000000000000000
[   28.694579] R10: 0000000000000000 R11: 0000000000000293 R12: 000000001ab1e160
[   28.694582] R13: 0000000000000000 R14: 00007fff7b9519d8 R15: 00007fff7b9519cc
[   28.694587]  </TASK>
# upgradepkg --terse --reinstall --install-new kernel-firmware-20240612_776320a-noarch-1.txz
# dmesg | grep iwlwifi
[   18.087866] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[   18.093515] iwlwifi 0000:00:14.3: Detected crf-id 0x400410, cnv-id 0x80400 wfpm id 0x80000020
[   18.093620] iwlwifi 0000:00:14.3: PCI dev 51f1/0094, rev=0x370, rfid=0x2010d000
[   18.098091] iwlwifi 0000:00:14.3: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.42
[   18.105349] iwlwifi 0000:00:14.3: loaded firmware version 89.e9cec78e.0 so-a0-gf-a0-89.ucode op_mode iwlmvm
[   18.207703] iwlwifi 0000:00:14.3: Detected Intel(R) Wi-Fi 6E AX211 160MHz, REV=0x370
[   18.219757] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[   18.380476] iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x20
[   18.382081] iwlwifi 0000:00:14.3: RFIm is deactivated, reason = 4
[   18.382843] iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[   18.386227] iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
[   18.387741] iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x0
[   18.392002] iwlwifi 0000:00:14.3: loaded PNVM version ce1a5094
[   18.409158] iwlwifi 0000:00:14.3: Detected RF GF, rfid=0x2010d000
[   18.479595] iwlwifi 0000:00:14.3: base HW address: xx:xx:xx:xx:xx:xx
Comment 3 denydias 2024-06-18 19:20:24 UTC
Thank you for the patches. It work as expected now:

[   18.172120] iwlwifi: loading out-of-tree module taints kernel.
[   18.188962] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[   18.196169] iwlwifi 0000:00:14.3: Detected crf-id 0x400410, cnv-id 0x80400 wfpm id 0x80000020
[   18.198008] iwlwifi 0000:00:14.3: PCI dev 51f1/0094, rev=0x370, rfid=0x2010d000
[   18.203438] iwlwifi 0000:00:14.3: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.42
[   18.206055] iwlwifi 0000:00:14.3: loaded firmware version 89.202a2f7b.0 so-a0-gf-a0-89.ucode op_mode iwlmvm
[   18.312851] iwlwifi 0000:00:14.3: Detected Intel(R) Wi-Fi 6E AX211 160MHz, REV=0x370

Em terça-feira, 18 de junho de 2024, às 05:53:53 BRT, bugzilla-daemon@kernel.org escreveu:
> https://bugzilla.kernel.org/show_bug.cgi?id=218963
> 
> Emmanuel Grumbach (emmanuel.grumbach@intel.com) changed:
> 
>            What    |Removed                     |Added
> ----------------------------------------------------------------------------
>              Status|NEW                         |NEEDINFO
> 
> --- Comment #2 from Emmanuel Grumbach (emmanuel.grumbach@intel.com) ---
> Thank you for your report.
> 
> Can you try to apply:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8f892e225f416fcf2b55a0f9161162e08e2b0cc7
> and then
>
> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=788e4c75f831d06fcfbbec1d455fac429521e607
> ?
> 
> -- 
> You may reply to this email to add a comment.
> 
> You are receiving this mail because:
> You reported the bug.
>
Comment 4 Emmanuel Grumbach 2024-06-18 19:54:46 UTC
 Excellent.
I'll close this bug.
Patches were sent to stable for inclusion in 6.9 release.