Bug 216058 - intel ax200 m.2 key E stops working after kernel 5.4
Summary: intel ax200 m.2 key E stops working after kernel 5.4
Status: NEW
Alias: None
Product: Networking
Classification: Unclassified
Component: Wireless (show other bugs)
Hardware: AMD Linux
: P1 low
Assignee: networking_wireless@kernel-bugs.osdl.org
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-01 17:22 UTC by dmkgrim80
Modified: 2022-09-15 01:52 UTC (History)
2 users (show)

See Also:
Kernel Version: 5.6.19,5.7.0 to mainline or stable.
Subsystem:
Regression: No
Bisected commit-id:


Attachments

Description dmkgrim80 2022-06-01 17:22:16 UTC
I have two systems a desktop and laptop

the laptop has a fenvi intel ax200 rev 1a with m.2 key E interface. 
the intel ax200 with m.2 key E interface works with kernel 5.4 but not 5.10,5.15,5.17,5.18. tried debian 11.3 non free firmware included. 
also tried slackware 15. 

now my desktop has built into the motherboard a intel ax200 rev 1a also. 
both debian 11.3 and slackware 15 detected and ran the built in no problems. 

could someone please compare the code 5.4.x kernel to newer and see whats missing and get the m.2 key E intel ax200 working with newer kernels.
Comment 1 dmkgrim80 2022-07-20 20:24:54 UTC
Both systems are AMD cpu. well APU for laptop.
Comment 2 Mario Limonciello (AMD) 2022-07-20 20:26:24 UTC
This should be irrelevant when it comes to supporting the wireless card.  I would suggest that you add a kernel log with a recent stable kernel, latest linux-firmware and iwlwifi loaded to figure out what is going on then.
Comment 3 dmkgrim80 2022-07-20 21:57:10 UTC
I agree except for kernel log and recent stable kernel,firmware etc. 

I posted on intels community site with lots of logs. 


https://community.intel.com/t5/Wireless/problem-with-intel-ax200-rev-1a-and-linux/m-p/1384652

posted on linuxquestions.org

https://www.linuxquestions.org/questions/debian-26/wifi-problems-intel-ax200-bullseye-11-3-a-4175711770/

only solutions for my laptop with intel ax200 installed is to use kernel 5.4.x
would like newer kernel and support for other devices ie tv tuner.

at moment got 5.18.10 kernel and firmware 20220610 

dmesg | grep iwl

[    6.474848] iwlwifi 0000:02:00.0: Direct firmware load for iwlwifi-cc-a0-72.ucode failed with error -2
[    6.481630] iwlwifi 0000:02:00.0: api flags index 2 larger than supported by driver
[    6.482462] iwlwifi 0000:02:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 89.3.35.37
[    6.486182] iwlwifi 0000:02:00.0: loaded firmware version 71.058653f6.0 cc-a0-71.ucode op_mode iwlmvm
[    6.576501] iwlwifi 0000:02:00.0: Detected Intel(R) Wi-Fi 6 AX200 160MHz, REV=0x340
[    6.712904] iwlwifi 0000:02:00.0: Detected RF HR B3, rfid=0x10a100
[    7.212853] iwlwifi 0000:02:00.0: base HW address: 64:bc:58:19:8a:d9
[   14.207824] iwlwifi 0000:02:00.0: Error sending PHY_CONTEXT_CMD: time out after 2000ms.
[   14.207839] iwlwifi 0000:02:00.0: Current CMD queue read_ptr 11 write_ptr 12
[   14.208002] iwlwifi 0000:02:00.0: HCMD_ACTIVE already clear for command PHY_CONTEXT_CMD
[   14.209046] iwlwifi 0000:02:00.0: Start IWL Error Log Dump:
[   14.209051] iwlwifi 0000:02:00.0: Transport status: 0x0000004A, valid: 6
[   14.209056] iwlwifi 0000:02:00.0: Loaded firmware version: 71.058653f6.0 cc-a0-71.ucode
[   14.209061] iwlwifi 0000:02:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN       
[   14.209067] iwlwifi 0000:02:00.0: 0x00A0A2F0 | trm_hw_status0
[   14.209071] iwlwifi 0000:02:00.0: 0x00000000 | trm_hw_status1
[   14.209075] iwlwifi 0000:02:00.0: 0x004FB4C6 | branchlink2
[   14.209079] iwlwifi 0000:02:00.0: 0x004F1D82 | interruptlink1
[   14.209082] iwlwifi 0000:02:00.0: 0x004F1D82 | interruptlink2
[   14.209085] iwlwifi 0000:02:00.0: 0x00014DC6 | data1
[   14.209088] iwlwifi 0000:02:00.0: 0x01000000 | data2
[   14.209091] iwlwifi 0000:02:00.0: 0x00000000 | data3
[   14.209094] iwlwifi 0000:02:00.0: 0x00000000 | beacon time
[   14.209097] iwlwifi 0000:02:00.0: 0x00290378 | tsf low
[   14.209100] iwlwifi 0000:02:00.0: 0x00000000 | tsf hi
[   14.209103] iwlwifi 0000:02:00.0: 0x00000000 | time gp1
[   14.209106] iwlwifi 0000:02:00.0: 0x00296041 | time gp2
[   14.209109] iwlwifi 0000:02:00.0: 0x00000001 | uCode revision type
[   14.209112] iwlwifi 0000:02:00.0: 0x00000047 | uCode version major
[   14.209115] iwlwifi 0000:02:00.0: 0x058653F6 | uCode version minor
[   14.209119] iwlwifi 0000:02:00.0: 0x00000340 | hw version
[   14.209122] iwlwifi 0000:02:00.0: 0x00C89000 | board version
[   14.209125] iwlwifi 0000:02:00.0: 0x8047FD26 | hcmd
[   14.209128] iwlwifi 0000:02:00.0: 0x20028000 | isr0
[   14.209131] iwlwifi 0000:02:00.0: 0x00000000 | isr1
[   14.209134] iwlwifi 0000:02:00.0: 0x08F00002 | isr2
[   14.209137] iwlwifi 0000:02:00.0: 0x00C0000C | isr3
[   14.209140] iwlwifi 0000:02:00.0: 0x00000000 | isr4
[   14.209143] iwlwifi 0000:02:00.0: 0x00000000 | last cmd Id
[   14.209146] iwlwifi 0000:02:00.0: 0x00014DC6 | wait_event
[   14.209149] iwlwifi 0000:02:00.0: 0x00000000 | l2p_control
[   14.209152] iwlwifi 0000:02:00.0: 0x00000000 | l2p_duration
[   14.209154] iwlwifi 0000:02:00.0: 0x00000000 | l2p_mhvalid
[   14.209157] iwlwifi 0000:02:00.0: 0x00000000 | l2p_addr_match
[   14.209160] iwlwifi 0000:02:00.0: 0x00000009 | lmpm_pmg_sel
[   14.209163] iwlwifi 0000:02:00.0: 0x00000000 | timestamp
[   14.209166] iwlwifi 0000:02:00.0: 0x0000084C | flow_handler
[   14.209240] iwlwifi 0000:02:00.0: Start IWL Error Log Dump:
[   14.209243] iwlwifi 0000:02:00.0: Transport status: 0x0000004A, valid: 7
[   14.209248] iwlwifi 0000:02:00.0: 0x20000066 | NMI_INTERRUPT_HOST
[   14.209251] iwlwifi 0000:02:00.0: 0x00000000 | umac branchlink1
[   14.209255] iwlwifi 0000:02:00.0: 0x80455B2C | umac branchlink2
[   14.209258] iwlwifi 0000:02:00.0: 0x80471DEA | umac interruptlink1
[   14.209261] iwlwifi 0000:02:00.0: 0x80471DEA | umac interruptlink2
[   14.209264] iwlwifi 0000:02:00.0: 0x01000000 | umac data1
[   14.209267] iwlwifi 0000:02:00.0: 0x80471DEA | umac data2
[   14.209270] iwlwifi 0000:02:00.0: 0x00000000 | umac data3
[   14.209273] iwlwifi 0000:02:00.0: 0x00000047 | umac major
[   14.209276] iwlwifi 0000:02:00.0: 0x058653F6 | umac minor
[   14.209279] iwlwifi 0000:02:00.0: 0x0029603E | frame pointer
[   14.209282] iwlwifi 0000:02:00.0: 0xC0886264 | stack pointer
[   14.209285] iwlwifi 0000:02:00.0: 0x000B0108 | last host cmd
[   14.209288] iwlwifi 0000:02:00.0: 0x00000000 | isr status reg
[   14.209313] iwlwifi 0000:02:00.0: IML/ROM dump:
[   14.209316] iwlwifi 0000:02:00.0: 0x00000003 | IML/ROM error/state
[   14.209340] iwlwifi 0000:02:00.0: 0x00005BA2 | IML/ROM data1
[   14.209375] iwlwifi 0000:02:00.0: 0x00000080 | IML/ROM WFPM_AUTH_KEY_0
[   14.209396] iwlwifi 0000:02:00.0: Fseq Registers:
[   14.209413] iwlwifi 0000:02:00.0: 0x60000000 | FSEQ_ERROR_CODE
[   14.209429] iwlwifi 0000:02:00.0: 0x80290021 | FSEQ_TOP_INIT_VERSION
[   14.209446] iwlwifi 0000:02:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[   14.209462] iwlwifi 0000:02:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[   14.209478] iwlwifi 0000:02:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[   14.209495] iwlwifi 0000:02:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[   14.209511] iwlwifi 0000:02:00.0: 0x00100530 | FSEQ_CNVI_ID
[   14.209527] iwlwifi 0000:02:00.0: 0x00000532 | FSEQ_CNVR_ID
[   14.209544] iwlwifi 0000:02:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[   14.209562] iwlwifi 0000:02:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[   14.209581] iwlwifi 0000:02:00.0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[   14.209599] iwlwifi 0000:02:00.0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[   14.209617] iwlwifi 0000:02:00.0: Starting mac, retry will be triggered anyway
[   14.209621] iwlwifi 0000:02:00.0: PHY ctxt cmd error. ret=-110
[   14.222189] iwlwifi 0000:02:00.0: mac start retry 0
[   16.959836] iwlwifi 0000:02:00.0: Error sending RLC_CONFIG_CMD: time out after 2000ms.
[   16.959851] iwlwifi 0000:02:00.0: Current CMD queue read_ptr 13 write_ptr 14
[   16.960018] iwlwifi 0000:02:00.0: HCMD_ACTIVE already clear for command RLC_CONFIG_CMD
[   16.961064] iwlwifi 0000:02:00.0: Start IWL Error Log Dump:
[   16.961069] iwlwifi 0000:02:00.0: Transport status: 0x0000004A, valid: 6
[   16.961075] iwlwifi 0000:02:00.0: Loaded firmware version: 71.058653f6.0 cc-a0-71.ucode
[   16.961079] iwlwifi 0000:02:00.0: 0x00000084 | NMI_INTERRUPT_UNKNOWN       
[   16.961085] iwlwifi 0000:02:00.0: 0x00A0A2F0 | trm_hw_status0
[   16.961089] iwlwifi 0000:02:00.0: 0x00000000 | trm_hw_status1
[   16.961093] iwlwifi 0000:02:00.0: 0x004FB4C6 | branchlink2
[   16.961096] iwlwifi 0000:02:00.0: 0x004F1D82 | interruptlink1
[   16.961100] iwlwifi 0000:02:00.0: 0x004F1D82 | interruptlink2
[   16.961103] iwlwifi 0000:02:00.0: 0x00014DC6 | data1
[   16.961106] iwlwifi 0000:02:00.0: 0x01000000 | data2
[   16.961110] iwlwifi 0000:02:00.0: 0x00000000 | data3
[   16.961113] iwlwifi 0000:02:00.0: 0x00000000 | beacon time
[   16.961116] iwlwifi 0000:02:00.0: 0x002935CF | tsf low
[   16.961119] iwlwifi 0000:02:00.0: 0x00000000 | tsf hi
[   16.961122] iwlwifi 0000:02:00.0: 0x00000000 | time gp1
[   16.961125] iwlwifi 0000:02:00.0: 0x002991AB | time gp2
[   16.961128] iwlwifi 0000:02:00.0: 0x00000001 | uCode revision type
[   16.961131] iwlwifi 0000:02:00.0: 0x00000047 | uCode version major
[   16.961135] iwlwifi 0000:02:00.0: 0x058653F6 | uCode version minor
[   16.961138] iwlwifi 0000:02:00.0: 0x00000340 | hw version
[   16.961141] iwlwifi 0000:02:00.0: 0x00C89000 | board version
[   16.961144] iwlwifi 0000:02:00.0: 0x804EFD26 | hcmd
[   16.961148] iwlwifi 0000:02:00.0: 0x20028000 | isr0
[   16.961151] iwlwifi 0000:02:00.0: 0x00000000 | isr1
[   16.961154] iwlwifi 0000:02:00.0: 0x08F00002 | isr2
[   16.961157] iwlwifi 0000:02:00.0: 0x00C0000C | isr3
[   16.961160] iwlwifi 0000:02:00.0: 0x00000000 | isr4
[   16.961163] iwlwifi 0000:02:00.0: 0x00000000 | last cmd Id
[   16.961166] iwlwifi 0000:02:00.0: 0x00014DC6 | wait_event
[   16.961169] iwlwifi 0000:02:00.0: 0x00000000 | l2p_control
[   16.961172] iwlwifi 0000:02:00.0: 0x00000000 | l2p_duration
[   16.961175] iwlwifi 0000:02:00.0: 0x00000000 | l2p_mhvalid
[   16.961178] iwlwifi 0000:02:00.0: 0x00000000 | l2p_addr_match
[   16.961181] iwlwifi 0000:02:00.0: 0x00000009 | lmpm_pmg_sel
[   16.961184] iwlwifi 0000:02:00.0: 0x00000000 | timestamp
[   16.961187] iwlwifi 0000:02:00.0: 0x0000084C | flow_handler
[   16.961258] iwlwifi 0000:02:00.0: Start IWL Error Log Dump:
[   16.961261] iwlwifi 0000:02:00.0: Transport status: 0x0000004A, valid: 7
[   16.961266] iwlwifi 0000:02:00.0: 0x20000066 | NMI_INTERRUPT_HOST
[   16.961270] iwlwifi 0000:02:00.0: 0x00000000 | umac branchlink1
[   16.961273] iwlwifi 0000:02:00.0: 0x80455B2C | umac branchlink2
[   16.961276] iwlwifi 0000:02:00.0: 0x80471DEA | umac interruptlink1
[   16.961280] iwlwifi 0000:02:00.0: 0x80471DEA | umac interruptlink2
[   16.961283] iwlwifi 0000:02:00.0: 0x01000000 | umac data1
[   16.961286] iwlwifi 0000:02:00.0: 0x80471DEA | umac data2
[   16.961289] iwlwifi 0000:02:00.0: 0x00000000 | umac data3
[   16.961292] iwlwifi 0000:02:00.0: 0x00000047 | umac major
[   16.961295] iwlwifi 0000:02:00.0: 0x058653F6 | umac minor
[   16.961298] iwlwifi 0000:02:00.0: 0x002991A9 | frame pointer
[   16.961301] iwlwifi 0000:02:00.0: 0xC0886264 | stack pointer
[   16.961304] iwlwifi 0000:02:00.0: 0x000D0508 | last host cmd
[   16.961307] iwlwifi 0000:02:00.0: 0x00000000 | isr status reg
[   16.961333] iwlwifi 0000:02:00.0: IML/ROM dump:
[   16.961336] iwlwifi 0000:02:00.0: 0x00000003 | IML/ROM error/state
[   16.961360] iwlwifi 0000:02:00.0: 0x00005AB9 | IML/ROM data1
[   16.961401] iwlwifi 0000:02:00.0: 0x00000080 | IML/ROM WFPM_AUTH_KEY_0
[   16.961422] iwlwifi 0000:02:00.0: Fseq Registers:
[   16.961439] iwlwifi 0000:02:00.0: 0x60000000 | FSEQ_ERROR_CODE
[   16.961455] iwlwifi 0000:02:00.0: 0x80290021 | FSEQ_TOP_INIT_VERSION
[   16.961471] iwlwifi 0000:02:00.0: 0x00050008 | FSEQ_CNVIO_INIT_VERSION
[   16.961488] iwlwifi 0000:02:00.0: 0x0000A503 | FSEQ_OTP_VERSION
[   16.961504] iwlwifi 0000:02:00.0: 0x80000003 | FSEQ_TOP_CONTENT_VERSION
[   16.961520] iwlwifi 0000:02:00.0: 0x4552414E | FSEQ_ALIVE_TOKEN
[   16.961537] iwlwifi 0000:02:00.0: 0x00100530 | FSEQ_CNVI_ID
[   16.961553] iwlwifi 0000:02:00.0: 0x00000532 | FSEQ_CNVR_ID
[   16.961569] iwlwifi 0000:02:00.0: 0x00100530 | CNVI_AUX_MISC_CHIP
[   16.961588] iwlwifi 0000:02:00.0: 0x00000532 | CNVR_AUX_MISC_CHIP
[   16.961606] iwlwifi 0000:02:00.0: 0x05B0905B | CNVR_SCU_SD_REGS_SD_REG_DIG_DCDC_VTRIM
[   16.961625] iwlwifi 0000:02:00.0: 0x0000025B | CNVR_SCU_SD_REGS_SD_REG_ACTIVE_VDIG_MIRROR
[   16.961642] iwlwifi 0000:02:00.0: Starting mac, retry will be triggered anyway
Comment 4 Mario Limonciello (AMD) 2022-07-21 00:34:49 UTC
In that link it mentions that you replaced the card from something different than the OEM shipped with.  If I was to guess the problem here is that they have configured ASPM in the BIOS for the original card but the new card can't be configured with with ASPM and the new kernel.

My suggestions for you:
1) Maybe try turning ASPM off with pcie_aspm=off on your kernel command line.
2) If it really works in 5.4, but stops working in 5.10 or newer, you can perform a bisect between the two (https://www.kernel.org/doc/html/latest/admin-guide/bug-bisect.html).  If we can figure out what commit caused the problem it should be more likely to fix.
Comment 5 dmkgrim80 2022-07-22 03:30:43 UTC
just tried pcie_aspm=off and pcie_aspm=force
on slackware 15 with 5.18.10 kernel and loaded firmware 71
mac error and retry attempts 

debian 11.3 non free firmware with kernel 5.10.16 and loaded firmware 59
get ADVANCE_SYSASSERT which if I understand corret means firmware crashed. 

I have to send kernel module iwlmvm power_shceme=1 for my laptop in /etc/modprobe.d/
otherwise the adapter in laptop will go heywire connecting,disconnecting and cycling over and over. 

I also have a intel 7265 and 7265D both work in kernels my ax200 will not. 
5.10.x,5.15.x,5.18.x

Its about 20 screws to laptop to switch m.2 card out and connecting 2 antenna leads. Bluetooth always seems to work they are all dual wifi/bluetooth cards. 

The laptop originally came with a crappy qualcomm atheros m.2 which worked well but it is a limited device speed wise and connects at terribly low speeds in linux and windows. 

I do get pci errors at boot with Debian 11.3 non free but not with Slackware 15.

Researching bisecting kernel and will give it a shot.
Comment 6 dmkgrim80 2022-07-22 19:59:50 UTC
I believe the problem lies in kernel-x-x-x drivers/net/wireless/intel/iwlwifi/pcie/drv.c

in kernels 5.10.x,5.15.x,5.18.x
use {IWL_PCI_DEVICE(0x2723, PCI_ANY_ID, iwl_ax200_trans_cfg)},

for some reason its in the Qu firmware section which it shouldnt be

I dont believe my Fenvi intel ax200 device likes PCI_ANY_ID

in kernel 5.4.197 code and just found kernel 5.5.10

{IWL_PCI_DEVICE(0x2723, 0x0080, iwl_ax200_cfg_cc)},
{IWL_PCI_DEVICE(0x2723, 0x0084, iwl_ax200_cfg_cc)},
{IWL_PCI_DEVICE(0x2723, 0x0088, iwl_ax200_cfg_cc)},
{IWL_PCI_DEVICE(0x2723, 0x008C, iwl_ax200_cfg_cc)},
{IWL_PCI_DEVICE(0x2723, 0x1653, killer1650w_2ax_cfg)},
{IWL_PCI_DEVICE(0x2723, 0x1654, killer1650x_2ax_cfg)},
{IWL_PCI_DEVICE(0x2723, 0x2080, iwl_ax200_cfg_cc)},
{IWL_PCI_DEVICE(0x2723, 0x4080, iwl_ax200_cfg_cc)},
{IWL_PCI_DEVICE(0x2723, 0x4088, iwl_ax200_cfg_cc)},

both my devices come in on pci at 0x2723, 0x0084

looking through kernel versions to see exactly when the change was made from 5.4.x style to the newer PCI_ANY_ID method

I did try modifying a newer kernel but dont recall what happened must not of worked otherwise I probably wouldnt post this. accidently deleted my /boot dir.
Comment 7 Mario Limonciello (AMD) 2022-07-22 20:13:21 UTC
Kernel 5.7 it looks like:
https://github.com/torvalds/linux/commit/5e003982b07ae
Comment 8 dmkgrim80 2022-07-28 23:31:29 UTC
bought a Netel intel ax200 turns out its verion 0x0080 while the Fenvi is 0x0084. I also have a Deals4go intel ax200 havent put it in the laptop. 

Netel results are same as Fenvi
works with 5.4.x tried debian 11.3 non free 5.10.x,5.15.19,5.18.6
slackware was same 5.4.x works but not same as debian. 

wondering if its my laptop. have 2 intel 7265 adapters and they work fine with all kernels I have mentioned. 

looking into bisecting now.
Comment 9 dmkgrim80 2022-08-05 19:06:52 UTC
bisecting is not going well. gave it a chance and have fought plenty to get this fixed. I dont want to give up but my laptop is not compiling kernels and modules without errors using git kernel. the odd thing is I can compile non git kernel source all day long and work but for some reason the git kernel source is not liking my system. slackware 15. going to try on debian 11.3.
Comment 10 dmkgrim80 2022-08-06 02:40:58 UTC
I installed kernel 5.6.19 and 5.7.y not sure if "y" is 16 or 19.
the offending code is in 5.7.y 
but I dont know if the commit you referenced. 

in drivers/net/wireless/intel/pcie/drv.c 
section Qu devices
line 535 {IWL_PCI_DEVICE(0x2723, PCI_ANY_ID, iwl_ax200_trans_cfg)}

should be in AX200 section that got rewritten or modded

AX200 section is at line 943 drivers/net/wireless/intel/pcie/drv.c
Comment 11 dmkgrim80 2022-09-15 01:51:46 UTC
Well I decided to purchase a intel ax210,intel 9260. neither worked. was kinda suprised by the 9260 not working. 

Also got a intel 8265. the 8265 works and thats whats staying in it. 

Believe its combo of kernel code and my laptop. have a desktop with intel ax200 and it works in situations my laptop will not. 

My laptop isnt even a Ryzen cpu so no biggie. Still nice cpu wish I could get a new Ryzen 5 or 7 laptop with nvidia graphics.

Note You need to log in before you can comment on or make changes to this bug.