I recently updated the packages on my laptop and realized the Wifi card wasn't working. Turns out sys-kernel/linux-firmware-20210315 makes the Wifi card non-functional. Here is the dmesg log (taken from the linked bug report from Arch Linux. Mine was basically the same, but I already fixed it):
iwlwifi 0000:05:00.0: api flags index 2 larger than supported by driver
iwlwifi 0000:05:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 18.104.22.168
iwlwifi 0000:05:00.0: loaded firmware version 59.601f3a66.0 ty-a0-gf-a0-59.ucode op_mode iwlmvm
iwlwifi 0000:05:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420
iwlwifi 0000:05:00.0: loaded PNVM version 0x324cd670
iwlwifi 0000:05:00.0: Timeout waiting for PNVM load!
Reverting to sys-kernel/linux-firmware-20210208 fixes the issue and the card works again (log from my actual machine):
[ 2.615175] iwlwifi 0000:07:00.0: api flags index 2 larger than supported by driver
[ 2.615200] iwlwifi 0000:07:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 22.214.171.124
[ 2.615550] iwlwifi 0000:07:00.0: loaded firmware version 59.601f3a66.0 ty-a0-gf-a0-59.ucode op_mode iwlmvm
[ 2.641364] iwlwifi 0000:07:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420
Steps to Reproduce:
1. Have AX210 Wifi card
2. Install sys-kernel/linux-firmware-20210315
AX210 Wifi card stops working.
A working Wifi card.
Please add information about used kernel version.
Kernel version used: 5.11.7-r1
The shown dmesg output is identical and is showing same firmware file/version.
*** Bug 777342 has been marked as a duplicate of this bug. ***
Well I don't disagree with you, I'm just reporting exactly what is happenning. I just emerged linux-firmware-20210315 again to confirm, and here it is:
[ 3.731269] iwlwifi 0000:07:00.0: api flags index 2 larger than supported by driver
[ 3.731295] iwlwifi 0000:07:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 126.96.36.199
[ 3.731603] iwlwifi 0000:07:00.0: loaded firmware version 59.601f3a66.0 ty-a0-gf-a0-59.ucode op_mode iwlmvm
[ 3.748599] iwlwifi 0000:07:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420
[ 3.909133] iwlwifi 0000:07:00.0: loaded PNVM version 0x324cd670
[ 4.010747] iwlwifi 0000:07:00.0: Timeout waiting for PNVM load!
[ 4.010754] iwlwifi 0000:07:00.0: Failed to start RT ucode: -110
[ 4.010759] iwlwifi 0000:07:00.0: iwl_trans_send_cmd bad state = 1
[ 4.214074] iwlwifi 0000:07:00.0: firmware didn't ACK the reset - continue anyway
[ 4.226635] iwlwifi 0000:07:00.0: Failed to run INIT ucode: -110
Not sure if the PNVM file is faulty for this particular wifi adapter or not, if it's only compatible with the latest version (which, for some reason, is not being selected, which should be the 62.ucode merged recently).
Relevant commit in linux-firmware between the working / non-working versions:
So yeah, that's the issue. The same update that updated the fw version to 62 also introduced a PNVM file. That PNVM file is searched for and loaded in case it's found. However, apparently it only works with the new 62 version firmware. And I can confirm this because I manually bumped the max version in the kernel (like this commit, in 5.12):
And now it works with the latest linux-firmware-20210315:
[ 3.162237] iwlwifi 0000:07:00.0: api flags index 2 larger than supported by driver
[ 3.162271] iwlwifi 0000:07:00.0: TLV_FW_FSEQ_VERSION: FSEQ Version: 0.59.2.22
[ 3.162579] iwlwifi 0000:07:00.0: loaded firmware version 62.49eeb572.0 ty-a0-gf-a0-62.ucode op_mode iwlmvm
[ 3.181070] iwlwifi 0000:07:00.0: Detected Intel(R) Wi-Fi 6 AX210 160MHz, REV=0x420
[ 3.338164] iwlwifi 0000:07:00.0: loaded PNVM version 0x324cd670
[ 3.417160] iwlwifi 0000:07:00.0: base HW address: d8:f8:83:35:ea:bc
[ 3.448157] iwlwifi 0000:07:00.0 wlp7s0: renamed from wlan0
Thank you for your report and your analysis!
But please read bug 704084 comment #3. There is really nothing we can do for you. Masking the new version would be problematic for those running latest versions.
I understand. The bug report is probably useful for people bumping into the same issue. I can deal with it locally just fine.
Can't the patch that I linked (bumping IWL_22000_UCODE_API_MAX) be backported from 5.12 at least?
Please ping Intel maintainer/linux-stable mailing list and ask for this. It's possible that the new firmware will also require additional driver changes which are not present in previous kernel version.
Same problem here on my AX210.
An easy fix for this right now can be to just build-in the firmware for the ax210 into your kernel.