Bug 31839

Summary: Intel ax101 wifi adapter fails to initialize with Linux 6.3 kernel.
Product: Mageia Reporter: Alan Richter <arichter>
Component: RPM PackagesAssignee: Kernel and Drivers maintainers <kernel>
Status: NEW --- QA Contact:
Severity: normal    
Priority: Normal    
Version: Cauldron   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Source RPM: kernel-linus-6.3.0-1.mga9.src.rpm CVE:
Status comment:

Description Alan Richter 2023-04-25 04:34:18 CEST
Description of problem:
Due to a bug in Kernel 6.3, and earlier kernels, the ax101 wifi adapter does not initialize.  The output of dmesg | grep wifi is as such:
# dmesg | grep iwlwifi
[    2.573402] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[    2.586226] iwlwifi: No config found for PCI dev 54f0/0244, rev=0x370, rfid=0x10c000
[    2.586247] iwlwifi: probe of 0000:00:14.3 failed with error -22

Version-Release number of selected component (if applicable):
Kernel 6.3, and earlier. 

How reproducible:
Boot the 6.3 on a system equipped with this device, in this case this device:  the Beelink Mini S12 Pro (https://www.bee-link.com/catalog/product/index?id=434)

A patch on this page (https://askubuntu.com/questions/1459856/intel-alder-lake-n100-wifi-and-bluetooth-issues) has a fix.  This is the patch used to resolve the problem for kernel-linus-6.3.0-1:

diff -Naur a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c
--- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c     2023-04-23 13:02:52.000000000 -0600
+++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c     2023-04-24 17:41:38.988293793 -0600
@@ -1091,7 +1091,7 @@
        _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY,
                      IWL_CFG_MAC_TYPE_SO, IWL_CFG_ANY,
                      IWL_CFG_RF_TYPE_HR1, IWL_CFG_ANY,
-                     IWL_CFG_160, IWL_CFG_ANY, IWL_CFG_NO_CDB, IWL_CFG_ANY,
+                     IWL_CFG_ANY, IWL_CFG_ANY, IWL_CFG_NO_CDB, IWL_CFG_ANY,
                      iwl_cfg_so_a0_hr_a0, iwl_ax101_name),
        _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY,
                      IWL_CFG_MAC_TYPE_SO, IWL_CFG_ANY,
@@ -1108,7 +1108,7 @@
        _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY,
                      IWL_CFG_MAC_TYPE_SOF, IWL_CFG_ANY,
                      IWL_CFG_RF_TYPE_HR1, IWL_CFG_ANY,
-                     IWL_CFG_160, IWL_CFG_ANY, IWL_CFG_NO_CDB, IWL_CFG_ANY,
+                     IWL_CFG_ANY, IWL_CFG_ANY, IWL_CFG_NO_CDB, IWL_CFG_ANY,
                      iwl_cfg_so_a0_hr_a0, iwl_ax101_name),
        _IWL_DEV_INFO(IWL_CFG_ANY, IWL_CFG_ANY,
                      IWL_CFG_MAC_TYPE_SOF, IWL_CFG_ANY,

Applying the patch and building the kernel resolves the problem, dmesg | grep wifi returns:


dmesg | grep wifi
[    3.331123] iwlwifi 0000:00:14.3: enabling device (0000 -> 0002)
[    3.344529] iwlwifi 0000:00:14.3: api flags index 2 larger than supported by driver
[    3.344547] iwlwifi 0000:00:14.3: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.0.2.36
[    3.344939] iwlwifi 0000:00:14.3: loaded firmware version 74.a5e9588b.0 so-a0-hr-b0-74.ucode op_mode iwlmvm
[    3.513374] iwlwifi 0000:00:14.3: Detected Intel(R) Wi-Fi 6 AX101, REV=0x370
[    3.519928] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[    3.626592] iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x1f
[    3.626640] iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    3.626652] iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
[    3.626663] iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x10
[    3.626716] iwlwifi 0000:00:14.3: Detected RF HR1 B3, rfid=0x10c000
[    3.668559] iwlwifi 0000:00:14.3: base HW address: 64:49:7d:f4:1e:e7
[    3.693082] iwlwifi 0000:00:14.3 wlo1: renamed from wlan0
[    8.840567] iwlwifi 0000:00:14.3: WRT: Invalid buffer destination
[    8.942959] iwlwifi 0000:00:14.3: WFPM_UMAC_PD_NOTIFICATION: 0x1f
[    8.943006] iwlwifi 0000:00:14.3: WFPM_LMAC2_PD_NOTIFICATION: 0x1f
[    8.943065] iwlwifi 0000:00:14.3: WFPM_AUTH_KEY_0: 0x90
[    8.943078] iwlwifi 0000:00:14.3: CNVI_SCU_SEQ_DATA_DW9: 0x10

And wireless then works.  This patch does not address bluetooth but that issue apparently does not require patching the kernel. 

This should be patched by Intel but this may be what is required until Intel fixes the problem.
Comment 1 Lewis Smith 2023-04-25 20:47:38 CEST
Thank you for the report, and the fine details.

Assigning to the kernel people.

Assignee: bugsquad => kernel

Comment 2 Thomas Backlund 2023-04-26 19:59:28 CEST
what's the output of lcpcidrake -v for that card ?
Comment 3 Alan Richter 2023-04-26 21:31:22 CEST
Output for that card is:

iwlwifi         : Intel Corporation|Device 54f0 [NETWORK_OTHER] (vendor:8086 device:54f0 subv:8086 subd:0244)

Lastly, the firmware instructions for getting Bluetooth on the referenced page don't work, they should be:

Copy or do a symlink from:  

ibt-1040-4150.ddc
ibt-1040-4150.sfi
to
ibt-0040-1050.ddc
ibt-0040-1050.sfi
Comment 4 Thomas Backlund 2023-04-27 16:04:04 CEST
Looks like Intel has fixed it for upcoming 6.4 series kernels, so I'll backport that fix to next kernel build
Comment 5 Alan Richter 2023-04-27 21:38:08 CEST
kernel-6.3.0-2 has resolved this problem, wireless works correctly now.