Bug 208711 - Wifi Adapter not Found, iwlwifi probe failed with error -22
Summary: Wifi Adapter not Found, iwlwifi probe failed with error -22
Status: NEW
Alias: None
Product: Drivers
Classification: Unclassified
Component: network-wireless-intel (show other bugs)
Hardware: Intel Linux
: P1 blocking
Assignee: Default virtual assignee for network-wireless-intel
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-27 20:26 UTC by aidan
Modified: 2021-01-30 10:35 UTC (History)
3 users (show)

See Also:
Kernel Version: 5.3.0-62-generic
Subsystem:
Regression: No
Bisected commit-id:


Attachments
dmesg-5.6.6-iwlwifi-debug. (12.00 KB, text/plain)
2021-01-30 10:35 UTC, kubu
Details

Description aidan 2020-07-27 20:26:56 UTC
Ubuntu 18.04
Kernel 5.3.0-62-generic
Hardware: Dell Inspiron 7786 with Intel Wireless device Intel Corporation Device 9df0 (rev 30)

Iwlwifi fails to find network adapter, so no wireless network capabilities in Ubuntu 18.04.  This fails with kernel 5.3.* and kernel 5.4.*.  

Output of lshw -C network: 

  *-network UNCLAIMED       
       description: Network controller
       product: Intel Corporation
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       version: 30
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix cap_list
       configuration: latency=0
       resources: memory:911a4000-911a7fff
  *-network
       description: Ethernet interface
       physical id: 2
       logical name: enp0s20f0u4
       serial: ae:6c:d3:65:74:87
       capabilities: ethernet physical
       configuration: broadcast=yes driver=rndis_host driverversion=22-Aug-2005 firmware=RNDIS device ip=192.168.42.77 link=yes multicast=yes

Output of dmesg | grep iwl

[   14.446631] RIP: 0010:iwl_pci_probe+0x4da/0x540 [iwlwifi]
[   14.446660]  iwl_pci_register_driver+0x24/0x40 [iwlwifi]
[   14.446667]  __init_backport+0xb8/0xe0 [iwlwifi]
[   14.476383] iwlwifi: probe of 0000:00:14.3 failed with error -22

Please let me know if you need any other information.
Comment 1 aidan 2020-07-27 22:37:24 UTC
Update: have tried the steps outlined at https://ubuntuforums.org/showthread.php?t=2447876&p=13975485#post13975485
Comment 2 remr90 2021-01-09 04:16:27 UTC
Arch Linux 2021.01.01
Kernel 5.9.13-arch1-1

--Asus GL503VM Laptop
---Network Controller: Intel Corporation Wireless 8265 / 8275 (rev 78)
---Subsystem: Intel Corporation Dual Band Wireless-AC 8265

Came up with this bug while dual booting with Windows 10 version 20h2.

Output of "$ dmesg | grep iwlwifi" showed error:

iwlwifi: probe of 0000:04:00.0 failed with error -110

(In reply to aidan from comment #1)
> Update: have tried the steps outlined at
> https://ubuntuforums.org/showthread.php?t=2447876&p=13975485#post13975485

Tried some of the steps outlined here to no avail.

Further research made me stumble into this thread:

https://archived.forum.manjaro.org/t/sometimes-the-wifi-fails-to-start-with-message-iwlwifi-probe-failed-with-error-110/151805/3

Proceeded to try most of what user tbg suggested (thanks btw) to no avail.

As outlined there by username anandp it seems that Windows sets power saving flags, which in fact does and on my system said flag is called "MIMO Power Save Mode" on device properties.

Quick fix is to set said power saving flag to off or in my case "No SMPS".
Comment 3 kubu 2021-01-30 10:34:17 UTC
Hello,

I was using my laptop with Fedora 31 until now without any problem. But the wifi module suddenly stopped working. I was using a 5.8.16 kernel.

from dmesg log:

WARNING: CPU: 4 PID: 843 at drivers/net/wireless/intel/iwlwifi/pcie/drv.c:1130 iwl_pci_probe+0x3d5/0x460 [iwlwifi]
...
iwlwifi: probe of 0000:00:14.3 failed with error -22

This means that iwl_trans->cfg->num_rbds is not set but it should be set to 512 (see IWL_DEVICE_9000 define)

if (iwl_trans->trans_cfg->mq_rx_supported) {
  if (WARN_ON(!iwl_trans->cfg->num_rbds)) { <<< line 1130	
    ret = -EINVAL;
    goto out_free_trans;

I sow several recent issues related to iwlwifi changes but none seems to fix the issues:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=95189
https://bugs.archlinux.org/task/68071
https://bbs.archlinux.org/viewtopic.php?id=258720
https://bbs.archlinux.org/viewtopic.php?id=257019

lspci -nn:
00:14.3 Network controller [0280]: Intel Corporation Cannon Point-LP CNVi [Wireless-AC] [8086:9df0] (rev 30)
	DeviceName: Onboard - Ethernet
	Subsystem: Intel Corporation Device 0000
	Flags: fast devsel, IRQ 16
	Memory at a4414000 (64-bit, non-prefetchable) [size=16K]
	Capabilities: [c8] Power Management version 3
	Capabilities: [d0] MSI: Enable- Count=1/1 Maskable- 64bit+
	Capabilities: [40] Express Root Complex Integrated Endpoint, MSI 00
	Capabilities: [80] MSI-X: Enable- Count=16 Masked-
	Capabilities: [100] Null
	Capabilities: [14c] Latency Tolerance Reporting
	Capabilities: [164] Vendor Specific Information: ID=0010 Rev=0 Len=014 <?>
	Kernel modules: iwlwifi, wl

$ sudo lshw -C network
  *-network UNCLAIMED       
       description: Network controller
       product: Cannon Point-LP CNVi [Wireless-AC]
       vendor: Intel Corporation
       physical id: 14.3
       bus info: pci@0000:00:14.3
       version: 30
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress msix cap_list
       configuration: latency=0
       resources: memory:a4414000-a4417fff


I tried to downgrade the iwlwifi-9000-pu-b0-jf-b0-46.ucode firmware used by this device but no success.

I downgraded the kernel to the 5.6.6 version and the error message is different and the module seems do more stuff, so I tried to debug using iwlwifi module debug option:
sudo rmmod iwlmvm iwlwifi ; sudo modprobe iwlwifi debug=1
(see log file)

iwlwifi 0000:00:14.3: OTP is blank
iwlwifi 0000:00:14.3: Can't parse empty family 8000 OTP/NVM sections
iwlwifi 0000:00:14.3: Failed to read NVM: -61

I have the feeling that the wifi chip is dead.

Best regards,
Romain
Comment 4 kubu 2021-01-30 10:35:13 UTC
Created attachment 295001 [details]
dmesg-5.6.6-iwlwifi-debug.

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