Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 702650

Summary: sys-firmware/iwl7260-ucode with >sys-kernel/gentoo-sources-4.14.143 - iwlwifi: Could not load the [0] uCode section
Product: Gentoo Linux Reporter: Dan Johansson <Dan.Johansson>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED OBSOLETE    
Severity: normal CC: treecleaner
Priority: Normal Keywords: PMASKED
Version: unspecified   
Hardware: AMD64   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=602470
https://bugs.gentoo.org/show_bug.cgi?id=561502
Whiteboard:
Package list:
Runtime testing required: ---

Description Dan Johansson 2019-12-13 09:03:10 UTC
After updating from sys-kernel/gentoo-sources-4.14.143 to 4.14.152 and later to 4.14.156 my Intel Dual Band Wireless AC 7260 does not work anymore.

Looking at dmesg after boot I see the following:

[    8.939437] iwlwifi 0000:3d:00.0: enabling device (0000 -> 0002)
[    8.944865] iwlwifi 0000:3d:00.0: loaded firmware version 17.3216344376.0 op_mode iwlmvm
...
[    9.000160] iwlwifi 0000:3d:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0xFFFFFFFF
...
[    9.003663] AVX2 version of gcm_enc/dec engaged.
[    9.003664] AES CTR mode by8 optimization enabled
[    9.025684] Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
[    9.025699] ------------[ cut here ]------------
[    9.025705] WARNING: CPU: 2 PID: 2556 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1881 iwl_trans_pcie_grab_nic_access+0xdb/0xe0 [iwlwifi]
[    9.025706] Modules linked in: aesni_intel(+) crypto_simd cryptd glue_helper acpi_cpufreq(-) iwlmvm(+) pcspkr input_leds mac80211 efivars(+) nvidia_drm(PO) nvidia_modeset(PO) snd_hda_codec_realtek nvidia(PO) snd_hda_codec_generic vboxpci(O) i2c_i801 iwlwifi vboxnetadp(O) btusb btrtl snd_hda_intel btbcm btintel vboxnetflt(O) snd_hda_codec bluetooth cfg80211 snd_hda_core rtsx_pci snd_pcm mfd_core ecdh_generic snd_timer rfkill vboxdrv(O) snd mei_me mei coretemp hp_accel(+) lis3lv02d input_polldev tpm_tis(+) tpm_tis_core tpm hp_wireless(+) battery ac(+) thermal(+) efivarfs dm_zero xts aes_x86_64 ecb cbc sha512_generic sha256_generic sha1_generic scsi_transport_iscsi fuse nfs lockd grace sunrpc dm_snapshot dm_bufio dm_crypt sl811_hcd usbhid xhci_plat_hcd ohci_pci ohci_hcd uhci_hcd usb_storage sg dm_mod
[    9.025741]  dax xhci_pci ehci_pci led_class ehci_hcd xhci_hcd
[    9.025746] CPU: 2 PID: 2556 Comm: modprobe Tainted: P           O    4.14.156-gentoo #1
[    9.025746] Hardware name: Hewlett-Packard HP ZBook 15 G2/2253, BIOS M70 Ver. 01.17 07/13/2017
[    9.025747] task: ffff8888896b0d40 task.stack: ffffc90003c90000
[    9.025751] RIP: 0010:iwl_trans_pcie_grab_nic_access+0xdb/0xe0 [iwlwifi]
[    9.025752] RSP: 0018:ffffc90003c93b98 EFLAGS: 00010082
[    9.025753] RAX: 000000000000003d RBX: ffffc90003c93bc0 RCX: 0000000000000323
[    9.025754] RDX: 0000000000000001 RSI: 0000000000000086 RDI: ffffffff824fa7ac
[    9.025754] RBP: ffff88888d910018 R08: 0000000000000323 R09: 0000000000000001
[    9.025755] R10: 0000000000000000 R11: 0000000000000001 R12: 0000000000000000
[    9.025756] R13: ffff88888d918ea0 R14: ffff88888d910230 R15: ffff88888994d560
[    9.025757] FS:  00007fc809f78b80(0000) GS:ffff8888afa80000(0000) knlGS:0000000000000000
[    9.025758] CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[    9.025759] CR2: 00007f2ca6b77014 CR3: 000000088a056005 CR4: 00000000001606e0
[    9.025759] Call Trace:
[    9.025763]  iwl_read_prph+0x1f/0x70 [iwlwifi]
[    9.025766]  iwl_pcie_apm_init+0x15e/0x210 [iwlwifi]
[    9.025769]  iwl_trans_pcie_start_hw+0x6d/0x1d0 [iwlwifi]
[    9.025781]  iwl_op_mode_mvm_start+0x5cd/0x8d0 [iwlmvm]
[    9.025785]  iwl_opmode_register+0x75/0xe0 [iwlwifi]
[    9.025786]  ? 0xffffffffa0487000
[    9.025793]  iwl_mvm_init+0x31/0x1000 [iwlmvm]
[    9.025796]  do_one_initcall+0x39/0xde
[    9.025798]  ? __vunmap+0x69/0x80
[    9.025800]  do_init_module+0x56/0x1e0
[    9.025802]  load_module+0x1f88/0x26f0
[    9.025804]  ? SyS_finit_module+0x91/0xb0
[    9.025805]  SyS_finit_module+0x91/0xb0
[    9.025806]  do_syscall_64+0x5b/0xf0
[    9.025809]  entry_SYSCALL_64_after_hwframe+0x3d/0xa2
[    9.025810] RIP: 0033:0x7fc80a09a679
[    9.025811] RSP: 002b:00007ffd5765ab98 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[    9.025813] RAX: ffffffffffffffda RBX: 000055c79744fd70 RCX: 00007fc80a09a679
[    9.025813] RDX: 0000000000000000 RSI: 000055c797445390 RDI: 0000000000000001
[    9.025814] RBP: 0000000000040000 R08: 0000000000000000 R09: 0000000000000000
[    9.025815] R10: 0000000000000001 R11: 0000000000000246 R12: 000055c797445390
[    9.025815] R13: 0000000000000000 R14: 000055c79744fc10 R15: 0000000000000000
[    9.025816] Code: 00 00 e8 99 9d 0f e1 eb ab 48 89 ef be 24 00 00 00 c6 05 3d a6 02 00 01 e8 f3 12 ff ff 48 c7 c7 60 e0 5c a0 89 c6 e8 7b a3 ae e0 <0f> 0b eb c1 90 41 57 41 56 41 89 d6 41 55 41 54 55 48 89 fd 53
[    9.025840] ---[ end trace 2b1291a95dbb2916 ]---
...
[   10.090420] iwlwifi 0000:3d:00.0: Could not load the [0] uCode section
[   10.090426] iwlwifi 0000:3d:00.0: Failed to start INIT ucode: -5
...
[   12.212970] iwlwifi 0000:3d:00.0: Failed to run INIT ucode: -5

With 4.14.143 it looks like this:
[    9.250495] iwlwifi 0000:3d:00.0: enabling device (0000 -> 0002)
[    9.256063] iwlwifi 0000:3d:00.0: loaded firmware version 17.3216344376.0 op_mode iwlmvm
[    9.289753] iwlwifi 0000:3d:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
[    9.307393] iwlwifi 0000:3d:00.0: base HW address: 10:4a:7d:ab:2c:a0
[    9.528596] iwlwifi 0000:3d:00.0 wlp61s0: renamed from wlan0


This is on a HP ZBook (as you can see in the above output).
And as I said it was working fine with 4.14.143.

Any suggestions?

Regards,
Dan
Comment 1 Dan Johansson 2019-12-30 13:31:43 UTC
iwlwifi-7260-17.ucode does not help in this case.
The kernel > 4.14.143 still "crashes" when the iwlwifi module loads.
Comment 2 Dan Johansson 2020-01-31 14:48:31 UTC
After updating to sys-kernel/gentoo-sources-4.14.166 the problem has go away.
Everything is working as expected again.

Regards,
Dan
Comment 3 Dan Johansson 2020-04-22 06:42:54 UTC
Spoke to soon, I still have the issue... 
But I have found a workaround:
If the iwlwifi fails to start I have created a small script that I can manually execute to get wifi running after a boot.
The script does the following:
1) lspci | grep "Wireless"  to get the pciid
  lspci | grep "Intel Corporation Wireless 7260"
  3d:00.0 Network controller: Intel Corporation Wireless 7260 (rev 6b)
2) "Remove" the pci-device
  echo 1 > /sys/bus/pci/devices/0000:${pciid}/remove
3) Sleep for 5 secs
4) Unload the iwlwifi and iwlmvm
   rmmod iwlmvm iwlwifi
5) Sleep for 5 more secs
6) Rescan the pci bus
  echo 1 > /sys/bus/pci/rescan

After this the Wifi works as it should.
This makes me think that there is a timing issue while booting.

-- 
Dan
Comment 4 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-29 14:45:57 UTC
Package removed.