2017-05-26 03:15:07

by Marc MERLIN

[permalink] [raw]
Subject: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

Howdy,

First I tried [email protected] which is now dead
Then [email protected], but no reply.
So I'm trying here next.

Any ideas?
Sadly before that I was on 4.4 due to bugs in the NVME ACPI suspend
support that only got fixed in 4.11, so it's a big jump, my apologies
for that.
That said, I've used this wireless driver for 1.5 years with that
firmware without issues before that (kernel 4.4).


When it works, it loads with
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: loaded firmware version 19.277230.0 op_mode iwlmvm
iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0x208
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled


3 different ways it's failing now:
1) CPU: 3 PID: 9349 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1913 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)

2)
iwlwifi 0000:04:00.0: loaded firmware version 19.277230.0 op_mode iwlmvm
iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: Could not load the [0] uCode section
iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5 <<<< this

3) iwlwifi 0000:04:00.0: Refused to change power state, currently in D3



Long details below:

I noted that https://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
says I should use iwlwifi-8000-ucode-16.242414.0.tgz
which only ships iwlwifi-8000C-16.ucode while I have iwlwifi-8000C-19.ucode

Either way, I just had to reboot my system as the only way for the driver
to work again. Once it's loaded, it works, but it's not ok that I have
to reboot to get it working again after a suspend/resume module
load/unload.

Is it a known problem, and is there a fix?

Before the reboot, trying to load the module, gave this:
Intel(R) Wireless WiFi driver for Linux
Copyright(c) 2003- 2015 Intel Corporation
------------[ cut here ]------------
WARNING: CPU: 3 PID: 9349 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1913 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
Modules linked in: iwlwifi(+) cfg80211 hfs ntfs msdos jfs reiserfs e1000e msr cmac rpcsec_gss_krb5 nfsv4 dns_resolver ccm ipt_MASQUERADE nf_nat_masquerade_ipv4 ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle rfcomm ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables bnep pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) autofs4 binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat configs input_polldev loop firewire_sbp2 firewire_core crc_itu_t cuse ecryptfs ppdev parport_pc lp parport uvcvideo hid_generic videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 videobuf2_core
 btusb videodev btrtl btbcm btintel media bluetooth usbhid hid joydev arc4 coretemp snd_hda_codec_realtek snd_hda_codec_generic x86_pkg_temp_thermal intel_powerclamp kvm_intel kvm snd_hda_intel irqbypass snd_hda_codec crct10dif_pclmul crc32_pclmul snd_hda_core iTCO_wdt snd_hwdep rtsx_pci_ms snd_pcm ghash_clmulni_intel efi_pstore mei_wdt memstick rtsx_pci_sdmmc iTCO_vendor_support intel_cstate snd_seq nouveau snd_seq_device mxm_wmi intel_rapl_perf thinkpad_acpi efivars xhci_pci snd_timer psmouse pcspkr ttm nvram xhci_hcd nvidiafb i2c_i801 rtsx_pci vgastate snd sg usbcore fb_ddc soundcore mei_me intel_pch_thermal rfkill hwmon ac battery tpm_crb tpm_tis wmi tpm_tis_core tpm sata_sil24 r8169 mii fuse fan raid456 multipath mmc_block mmc_core dm_snapshot dm_bufio dm_mirror dm_region_hash dm_log
 dm_crypt dm_mod async_raid6_recov async_pq async_xor async_memcpy async_tx blowfish_x86_64 blowfish_common crc32c_intel bcache aesni_intel aes_x86_64 crypto_simd ptp input_leds cryptd i915 glue_helper serio_raw pps_core shpchp thermal evdev [last unloaded: cfg80211]
CPU: 3 PID: 9349 Comm: modprobe Tainted: G W OE 4.11.1-amd64-preempt-sysrq-20170406 #4
Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015
Call Trace:
 dump_stack+0x61/0x7d
 __warn+0xc2/0xdd
 warn_slowpath_fmt+0x5a/0x76
 ? iwl_read32+0x1f/0x7f [iwlwifi]
 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
 iwl_trans_pcie_alloc+0x2fb/0x7d4 [iwlwifi]
 iwl_pci_probe+0x30/0x301 [iwlwifi]
 ? _raw_spin_unlock_irqrestore+0x14/0x24
 ? __pm_runtime_resume+0x4d/0x58
 local_pci_probe+0x3d/0x80
 pci_device_probe+0xf9/0x13c
 driver_probe_device+0x19d/0x3f2
 __driver_attach+0x80/0xdb
 ? driver_probe_device+0x3f2/0x3f2
 bus_for_each_dev+0x69/0xa7
 driver_attach+0x1e/0x20
 bus_add_driver+0xfd/0x239
 driver_register+0x88/0xbf
 ? 0xffffffffc0ade000
 __pci_register_driver+0x4c/0x4e
 iwl_pci_register_driver+0x24/0x3b [iwlwifi]
 ? 0xffffffffc0ade000
 iwl_drv_init+0x65/0x67 [iwlwifi]
 do_one_initcall+0x9f/0x160
 ? slab_pre_alloc_hook+0x1a/0x44
 ? slab_post_alloc_hook.isra.47+0xe/0x1d
 ? kmem_cache_alloc_trace+0xec/0xfc
 do_init_module+0x5f/0x1f7
 load_module+0x1e6e/0x2595
 ? strstarts+0x28/0x28
 ? vfs_read+0xb5/0xdc
 SYSC_finit_module+0xa2/0xe6
 ? SYSC_finit_module+0xa2/0xe6
 SyS_finit_module+0xe/0x10
 do_syscall_64+0x6b/0x7d
 entry_SYSCALL64_slow_path+0x25/0x25
RIP: 0033:0x7fb53c159119
RSP: 002b:00007ffc09e768c8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 00005575b423a390 RCX: 00007fb53c159119
RDX: 0000000000000000 RSI: 00005575b3464246 RDI: 0000000000000004
RBP: 00005575b3464246 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
R13: 00005575b423c650 R14: 0000000000040000 R15: 0000000000040000
---[ end trace 09ee15383e01988c ]---
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
[89427.433471] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.436126] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-27.ucode failed with error -2
[89427.436136] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.437043] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-26.ucode failed with error -2
[89427.437050] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.437832] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-25.ucode failed with error -2
[89427.437841] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.438477] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-24.ucode failed with error -2
[89427.438482] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.439181] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-23.ucode failed with error -2
[89427.439187] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.439928] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-22.ucode failed with error -2
[89427.439936] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.440562] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-21.ucode failed with error -2
[89427.440583] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.441053] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-20.ucode failed with error -2
[89427.441058] iwlwifi 0000:04:00.0: Falling back to user helper
[89427.448083] iwlwifi 0000:04:00.0: loaded firmware version 19.277230.0 op_mode iwlmvm
iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 4 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 4 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 4 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 4 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 4 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 4 pages, ret: -12
iwlwifi 0000:04:00.0: Could not load the [0] uCode section
iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled

Thanks,
Marc

----- End forwarded message -----

----- Forwarded message from Marc MERLIN <[email protected]> -----

Date: Wed, 24 May 2017 12:34:04 -0700
From: Marc MERLIN <[email protected]>
To: [email protected]
Subject: Re: After upgrading to 4.11.1, wifi driver refused to load after being unloaded once.
X-URL: http://marc.merlins.org/
User-Agent: NeoMutt/20160916 (1.7.0)

Now, I'm getting this:
iwlwifi 0000:04:00.0: Refused to change power state, currently in D3
This is bad, I can't reboot every time I come out of sleep just for wifi
to work again.

Is there a workaround? This is bad enough that I'm about to get another
wifi card to plug into USB.


Intel(R) Wireless WiFi driver for Linux
Copyright(c) 2003- 2015 Intel Corporation
iwlwifi 0000:04:00.0: Refused to change power state, currently in D3
------------[ cut here ]------------
WARNING: CPU: 7 PID: 20712 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1913 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
Modules linked in: iwlwifi(+) cfg80211 msr cmac uas usb_storage rpcsec_gss_krb5 nfsv4 dns_resolver ipt_MASQUERADE nf_nat_masquerade_ipv4 ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle ccm rfcomm ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables bnep pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) autofs4 binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat configs input_polldev loop firewire_sbp2 firewire_core crc_itu_t cuse ecryptfs ppdev parport_pc lp parport uvcvideo btusb videobuf2_vmalloc btrtl videobuf2_memops btbcm videobuf2_v4l2 btintel hid_generic videobuf2_core
videodev bluetooth usbhid media hid joydev arc4 coretemp x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek snd_hda_codec_generic kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_intel intel_cstate rtsx_pci_ms iTCO_wdt iTCO_vendor_support snd_hda_codec rtsx_pci_sdmmc memstick mei_wdt snd_hda_core nouveau snd_seq snd_hwdep mxm_wmi intel_rapl_perf efi_pstore snd_pcm snd_seq_device xhci_pci pcspkr psmouse thinkpad_acpi efivars xhci_hcd nvram i2c_i801 snd_timer ttm rtsx_pci sg nvidiafb usbcore snd vgastate fb_ddc mei_me intel_pch_thermal soundcore rfkill wmi hwmon battery ac tpm_crb tpm_tis tpm_tis_core tpm sata_sil24 r8169 mii fuse fan raid456 multipath mmc_block mmc_core dm_snapshot dm_bufio dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov
async_pq async_xor async_memcpy async_tx blowfish_x86_64 blowfish_common crc32c_intel bcache aesni_intel aes_x86_64 crypto_simd input_leds ptp cryptd i915 glue_helper serio_raw pps_core shpchp thermal evdev [last unloaded: cfg80211]
CPU: 7 PID: 20712 Comm: modprobe Tainted: G W OE 4.11.1-amd64-preempt-sysrq-20170406 #4
Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015
Call Trace:
dump_stack+0x61/0x7d
__warn+0xc2/0xdd
warn_slowpath_fmt+0x5a/0x76
? iwl_read32+0x1f/0x7f [iwlwifi]
iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
iwl_trans_pcie_alloc+0x2fb/0x7d4 [iwlwifi]
iwl_pci_probe+0x30/0x301 [iwlwifi]
? _raw_spin_unlock_irqrestore+0x14/0x24
? __pm_runtime_resume+0x4d/0x58
local_pci_probe+0x3d/0x80
pci_device_probe+0xf9/0x13c
driver_probe_device+0x19d/0x3f2
__driver_attach+0x80/0xdb
? driver_probe_device+0x3f2/0x3f2
bus_for_each_dev+0x69/0xa7
driver_attach+0x1e/0x20
bus_add_driver+0xfd/0x239
driver_register+0x88/0xbf
? 0xffffffffc088e000
__pci_register_driver+0x4c/0x4e
iwl_pci_register_driver+0x24/0x3b [iwlwifi]
? 0xffffffffc088e000
iwl_drv_init+0x65/0x67 [iwlwifi]
do_one_initcall+0x9f/0x160
? slab_pre_alloc_hook+0x1a/0x44
? slab_post_alloc_hook.isra.47+0xe/0x1d
? kmem_cache_alloc_trace+0xec/0xfc
do_init_module+0x5f/0x1f7
load_module+0x1e6e/0x2595
? strstarts+0x28/0x28
? vfs_read+0xb5/0xdc
SYSC_finit_module+0xa2/0xe6
? SYSC_finit_module+0xa2/0xe6
SyS_finit_module+0xe/0x10
do_syscall_64+0x6b/0x7d
entry_SYSCALL64_slow_path+0x25/0x25



----- Forwarded message from Marc MERLIN <[email protected]> -----

And just in case it helps, another one:
iwlwifi 0000:04:00.0: loaded firmware version 19.277230.0 op_mode iwlmvm
iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: Could not load the [0] uCode section
iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5

full log:
Intel(R) Wireless WiFi driver for Linux
Copyright(c) 2003- 2015 Intel Corporation
------------[ cut here ]------------
WARNING: CPU: 1 PID: 26389 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1913 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
Modules linked in: iwlwifi(+) cfg80211 msr cmac uas usb_storage rpcsec_gss_krb5 nfsv4 dns_resolver ipt_MASQUERADE nf_nat_masquerade_ipv4 ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle ccm rfcomm ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables bnep pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) autofs4 binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat configs input_polldev loop firewire_sbp2 firewire_core crc_itu_t cuse ecryptfs ppdev parport_pc lp parport uvcvideo btusb videobuf2_vmalloc btrtl videobuf2_memops btbcm videobuf2_v4l2 btintel hid_generic videobuf2_core
videodev bluetooth usbhid media hid joydev arc4 coretemp x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek snd_hda_codec_generic kvm_intel kvm irqbypass crct10dif_pclmul crc32_pclmul ghash_clmulni_intel snd_hda_intel intel_cstate rtsx_pci_ms iTCO_wdt iTCO_vendor_support snd_hda_codec rtsx_pci_sdmmc memstick mei_wdt snd_hda_core nouveau snd_seq snd_hwdep mxm_wmi intel_rapl_perf efi_pstore snd_pcm snd_seq_device xhci_pci pcspkr psmouse thinkpad_acpi efivars xhci_hcd nvram i2c_i801 snd_timer ttm rtsx_pci sg nvidiafb usbcore snd vgastate fb_ddc mei_me intel_pch_thermal soundcore rfkill wmi hwmon battery ac tpm_crb tpm_tis tpm_tis_core tpm sata_sil24 r8169 mii fuse fan raid456 multipath mmc_block mmc_core dm_snapshot dm_bufio dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov
async_pq async_xor async_memcpy async_tx blowfish_x86_64 blowfish_common crc32c_intel bcache aesni_intel aes_x86_64 crypto_simd input_leds ptp cryptd i915 glue_helper serio_raw pps_core shpchp thermal evdev [last unloaded: cfg80211]
CPU: 1 PID: 26389 Comm: modprobe Tainted: G W OE 4.11.1-amd64-preempt-sysrq-20170406 #4
Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015
Call Trace:
dump_stack+0x61/0x7d
__warn+0xc2/0xdd
warn_slowpath_fmt+0x5a/0x76
? iwl_read32+0x1f/0x7f [iwlwifi]
iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
iwl_trans_pcie_alloc+0x2fb/0x7d4 [iwlwifi]
iwl_pci_probe+0x30/0x301 [iwlwifi]
? _raw_spin_unlock_irqrestore+0x14/0x24
? __pm_runtime_resume+0x4d/0x58
local_pci_probe+0x3d/0x80
pci_device_probe+0xf9/0x13c
driver_probe_device+0x19d/0x3f2
__driver_attach+0x80/0xdb
? driver_probe_device+0x3f2/0x3f2
bus_for_each_dev+0x69/0xa7
driver_attach+0x1e/0x20
bus_add_driver+0xfd/0x239
driver_register+0x88/0xbf
? 0xffffffffc053a000
__pci_register_driver+0x4c/0x4e
iwl_pci_register_driver+0x24/0x3b [iwlwifi]
? 0xffffffffc053a000
iwl_drv_init+0x65/0x67 [iwlwifi]
do_one_initcall+0x9f/0x160
? slab_pre_alloc_hook+0x1a/0x44
? slab_post_alloc_hook.isra.47+0xe/0x1d
? kmem_cache_alloc_trace+0xec/0xfc
do_init_module+0x5f/0x1f7
load_module+0x1e6e/0x2595
? strstarts+0x28/0x28
? vfs_read+0xb5/0xdc
SYSC_finit_module+0xa2/0xe6
? SYSC_finit_module+0xa2/0xe6
SyS_finit_module+0xe/0x10
do_syscall_64+0x6b/0x7d
entry_SYSCALL64_slow_path+0x25/0x25
RIP: 0033:0x7f63b112c119
RSP: 002b:00007ffc72003288 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 0000562cda31c390 RCX: 00007f63b112c119
RDX: 0000000000000000 RSI: 0000562cd9ce1246 RDI: 0000000000000004
RBP: 0000562cd9ce1246 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
R13: 0000562cda31e650 R14: 0000000000040000 R15: 0000000000040000
---[ end trace b88c5bce363ce978 ]---
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-27.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-26.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-25.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-24.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-23.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-22.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-21.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-20.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: loaded firmware version 19.277230.0 op_mode iwlmvm
iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: Could not load the [0] uCode section
iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled



----- End forwarded message -----

--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901


2017-06-03 16:59:54

by Marc MERLIN

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

On Fri, Jun 02, 2017 at 12:42:55PM +0300, Luca Coelho wrote:
> I kernel v4.9, we stopped supporting firmware versions smaller than 22
> for the 8260. But unfortunately I made a mistake in the patch[1] when I
> removed support for those firmwares and I used 17, which is the lowest
> version for 7260 devices.
>
> I have just sent out a patch[2] with a fix for that.
>
> You can probably solve your problem by getting the latest firmware we
> have released, which is version 27. You can get it from the linux-
> firmware.git repository[3]. Please try that and let us know how it
> goes.

Thanks. I think the other problem is that
https://wireless.wiki.kernel.org/en/users/drivers/iwlwifihttps://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
says to use 'iwlwifi-8000-ucode-16.242414.0.tgz' for 4.3+ kenrels.
and strangely says "iwlwifi-8000-ucode-25.30.13.0.tgz" for 4.1+ kernels.

Unless I'm crazy, it didn't have -25 when I looked last time.
Is there a way to keep what I thought was the canonical page, up to date?

Firmware 27 seems to work, but I'm getting allocation error/warnings?

iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
Intel(R) Wireless WiFi driver for Linux
Copyright(c) 2003- 2015 Intel Corporation
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: capa flags index 3 larger than supported by driver
iwlwifi 0000:04:00.0: loaded firmware version 27.455470.0 op_mode iwlmvm
iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0x208
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
cma: cma_alloc: alloc failed, req-size: 1 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 24 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 32 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 6 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 7 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 1 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 16 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
thermal thermal_zone3: failed to read out thermal zone (-5)
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
cma: cma_alloc: alloc failed, req-size: 1 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 24 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 32 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 6 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 7 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 1 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 16 pages, ret: -12
cma: cma_alloc: alloc failed, req-size: 8 pages, ret: -12
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled

Thanks,
Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/

2017-06-02 09:42:58

by Luca Coelho

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

On Thu, 2017-05-25 at 19:48 -0700, Marc MERLIN wrote:
> Howdy,
>
> First I tried [email protected] which is now dead
> Then [email protected], but no reply.
> So I'm trying here next.

Sorry, Marc. Somehow your emails really slipped through the cracks and
I hadn't seen them before.

> 3 different ways it's failing now:
> 1) CPU: 3 PID: 9349 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1913 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
> Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
>
> 2)
> iwlwifi 0000:04:00.0: loaded firmware version 19.277230.0 op_mode iwlmvm

I kernel v4.9, we stopped supporting firmware versions smaller than 22
for the 8260. But unfortunately I made a mistake in the patch[1] when I
removed support for those firmwares and I used 17, which is the lowest
version for 7260 devices.

I have just sent out a patch[2] with a fix for that.

You can probably solve your problem by getting the latest firmware we
have released, which is version 27. You can get it from the linux-
firmware.git repository[3]. Please try that and let us know how it
goes.


[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4b87e5af638b6056bd6c20b0954d09a5a58633be
[2] https://patchwork.kernel.org/patch/9762047/
[3] https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/plain/iwlwifi-8000C-27.ucode

--
Cheers,
Luca.

2017-08-17 00:10:31

by Marc MERLIN

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

On Sat, Jun 03, 2017 at 09:59:50AM -0700, Marc MERLIN wrote:
> On Fri, Jun 02, 2017 at 12:42:55PM +0300, Luca Coelho wrote:
> > I kernel v4.9, we stopped supporting firmware versions smaller than 22
> > for the 8260. But unfortunately I made a mistake in the patch[1] when I
> > removed support for those firmwares and I used 17, which is the lowest
> > version for 7260 devices.
> >
> > I have just sent out a patch[2] with a fix for that.
> >
> > You can probably solve your problem by getting the latest firmware we
> > have released, which is version 27. You can get it from the linux-
> > firmware.git repository[3]. Please try that and let us know how it
> > goes.
>
> Thanks. I think the other problem is that
> https://wireless.wiki.kernel.org/en/users/drivers/iwlwifihttps://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
> says to use 'iwlwifi-8000-ucode-16.242414.0.tgz' for 4.3+ kenrels.
> and strangely says "iwlwifi-8000-ucode-25.30.13.0.tgz" for 4.1+ kernels.
>
> Unless I'm crazy, it didn't have -25 when I looked last time.
> Is there a way to keep what I thought was the canonical page, up to date?
>
> Firmware 27 seems to work, but I'm getting allocation error/warnings?

Ok, now I'm getting this error with 4.11.6 when loading the module
(after having unloaded it while on batteries, to save power):

Intel(R) Wireless WiFi driver for Linux
Copyright(c) 2003- 2015 Intel Corporation
------------[ cut here ]------------
WARNING: CPU: 3 PID: 1147 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1913 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
Modules linked in: iwlwifi(+) cfg80211 uvcvideo e1000e rndis_host cdc_ether usbnet cmac ccm ipt_MASQUERADE nf_nat_masquerade_ipv4 ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle ebtable_filter ebtables ip6table_filter ip6_tables rfcomm iptable_filter ip_tables x_tables bnep pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) autofs4 binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat configs input_polldev loop firewire_sbp2 firewire_core crc_itu_t cuse ecryptfs ppdev parport_pc lp parport hid_generic videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl videobuf2_core btbcm btintel videodev media
usbhid bluetooth hid joydev arc4 snd_hda_codec_realtek snd_hda_codec_generic coretemp snd_hda_intel x86_pkg_temp_thermal intel_powerclamp snd_hda_codec kvm_intel snd_hda_core rtsx_pci_ms iTCO_wdt kvm memstick rtsx_pci_sdmmc iTCO_vendor_support mei_wdt snd_hwdep thinkpad_acpi irqbypass snd_pcm nvram crct10dif_pclmul crc32_pclmul snd_seq ghash_clmulni_intel snd_seq_device intel_cstate efi_pstore intel_rapl_perf snd_timer xhci_pci pcspkr psmouse efivars i2c_i801 xhci_hcd snd rtsx_pci nvidiafb sg usbcore vgastate fb_ddc mei_me intel_pch_thermal soundcore rfkill wmi hwmon battery ac tpm_crb tpm_tis tpm_tis_core tpm sata_sil24 r8169 mii fuse fan raid456 multipath mmc_block mmc_core dm_snapshot dm_bufio dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov async_pq async_xor async_memcpy
async_tx blowfish_x86_64 blowfish_common crc32c_intel bcache aesni_intel i915 ptp aes_x86_64 crypto_simd input_leds cryptd glue_helper serio_raw pps_core shpchp thermal evdev [last unloaded: cfg80211]
CPU: 3 PID: 1147 Comm: modprobe Tainted: G W OE 4.11.6-amd64-preempt-sysrq-20170406 #6
Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015
Call Trace:
dump_stack+0x61/0x7d
__warn+0xc2/0xdd
warn_slowpath_fmt+0x5a/0x76
? iwl_read32+0x1f/0x7f [iwlwifi]
iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
iwl_trans_pcie_alloc+0x2fb/0x7d4 [iwlwifi]
iwl_pci_probe+0x30/0x301 [iwlwifi]
? _raw_spin_unlock_irqrestore+0x14/0x24
? __pm_runtime_resume+0x4d/0x58
local_pci_probe+0x3d/0x80
pci_device_probe+0xf9/0x13c
driver_probe_device+0x19d/0x3f2
__driver_attach+0x80/0xdb
? driver_probe_device+0x3f2/0x3f2
bus_for_each_dev+0x69/0xa7
driver_attach+0x1e/0x20
bus_add_driver+0xfd/0x239
driver_register+0x88/0xbf
? 0xffffffffc06bf000
__pci_register_driver+0x4c/0x4e
iwl_pci_register_driver+0x24/0x3b [iwlwifi]
? 0xffffffffc06bf000
iwl_drv_init+0x65/0x67 [iwlwifi]
do_one_initcall+0x9f/0x160
? slab_pre_alloc_hook+0x1a/0x44
? slab_post_alloc_hook.isra.47+0xe/0x1d
? kmem_cache_alloc_trace+0xec/0xfc
do_init_module+0x5f/0x1f7
load_module+0x1e6e/0x2595
? strstarts+0x28/0x28
? vfs_read+0xb5/0xdc
SYSC_finit_module+0xa2/0xe6
? SYSC_finit_module+0xa2/0xe6
SyS_finit_module+0xe/0x10
do_syscall_64+0x6b/0x7d
entry_SYSCALL64_slow_path+0x25/0x25
RIP: 0033:0x7f3e447ce119
RSP: 002b:00007ffec7b402d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 0000564e79be53e0 RCX: 00007f3e447ce119
RDX: 0000000000000000 RSI: 0000564e79345246 RDI: 0000000000000004
RBP: 0000564e79345246 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
R13: 0000564e79be7770 R14: 0000000000040000 R15: 0000000000040000
---[ end trace 35b5c8836a5906b1 ]---
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: capa flags index 3 larger than supported by driver
iwlwifi 0000:04:00.0: loaded firmware version 27.455470.0 op_mode iwlmvm
iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
[drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=90832 end=90833) time 312 us, min 2146, max 2159, scanline start 2120, end 2162
iwlwifi 0000:04:00.0: Could not load the [0] uCode section
iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
[drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=93049 end=93050) time 335 us, min 2146, max 2159, scanline start 2131, end 2176
iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled

--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901

2017-08-27 00:56:30

by Marc MERLIN

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

Ping?

On Wed, Aug 16, 2017 at 04:38:44PM -0700, Marc MERLIN wrote:
> On Sat, Jun 03, 2017 at 09:59:50AM -0700, Marc MERLIN wrote:
> > On Fri, Jun 02, 2017 at 12:42:55PM +0300, Luca Coelho wrote:
> > > I kernel v4.9, we stopped supporting firmware versions smaller than 22
> > > for the 8260. But unfortunately I made a mistake in the patch[1] when I
> > > removed support for those firmwares and I used 17, which is the lowest
> > > version for 7260 devices.
> > >
> > > I have just sent out a patch[2] with a fix for that.
> > >
> > > You can probably solve your problem by getting the latest firmware we
> > > have released, which is version 27. You can get it from the linux-
> > > firmware.git repository[3]. Please try that and let us know how it
> > > goes.
> >
> > Thanks. I think the other problem is that
> > https://wireless.wiki.kernel.org/en/users/drivers/iwlwifihttps://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
> > says to use 'iwlwifi-8000-ucode-16.242414.0.tgz' for 4.3+ kenrels.
> > and strangely says "iwlwifi-8000-ucode-25.30.13.0.tgz" for 4.1+ kernels.
> >
> > Unless I'm crazy, it didn't have -25 when I looked last time.
> > Is there a way to keep what I thought was the canonical page, up to date?
> >
> > Firmware 27 seems to work, but I'm getting allocation error/warnings?
>
> Ok, now I'm getting this error with 4.11.6 when loading the module
> (after having unloaded it while on batteries, to save power):
>
> Intel(R) Wireless WiFi driver for Linux
> Copyright(c) 2003- 2015 Intel Corporation
> ------------[ cut here ]------------
> WARNING: CPU: 3 PID: 1147 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1913 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
> Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
> Modules linked in: iwlwifi(+) cfg80211 uvcvideo e1000e rndis_host cdc_ether usbnet cmac ccm ipt_MASQUERADE nf_nat_masquerade_ipv4 ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle ebtable_filter ebtables ip6table_filter ip6_tables rfcomm iptable_filter ip_tables x_tables bnep pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) autofs4 binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat configs input_polldev loop firewire_sbp2 firewire_core crc_itu_t cuse ecryptfs ppdev parport_pc lp parport hid_generic videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl videobuf2_core btbcm btintel videodev media
> usbhid bluetooth hid joydev arc4 snd_hda_codec_realtek snd_hda_codec_generic coretemp snd_hda_intel x86_pkg_temp_thermal intel_powerclamp snd_hda_codec kvm_intel snd_hda_core rtsx_pci_ms iTCO_wdt kvm memstick rtsx_pci_sdmmc iTCO_vendor_support mei_wdt snd_hwdep thinkpad_acpi irqbypass snd_pcm nvram crct10dif_pclmul crc32_pclmul snd_seq ghash_clmulni_intel snd_seq_device intel_cstate efi_pstore intel_rapl_perf snd_timer xhci_pci pcspkr psmouse efivars i2c_i801 xhci_hcd snd rtsx_pci nvidiafb sg usbcore vgastate fb_ddc mei_me intel_pch_thermal soundcore rfkill wmi hwmon battery ac tpm_crb tpm_tis tpm_tis_core tpm sata_sil24 r8169 mii fuse fan raid456 multipath mmc_block mmc_core dm_snapshot dm_bufio dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov async_pq async_xor async_memcpy
> async_tx blowfish_x86_64 blowfish_common crc32c_intel bcache aesni_intel i915 ptp aes_x86_64 crypto_simd input_leds cryptd glue_helper serio_raw pps_core shpchp thermal evdev [last unloaded: cfg80211]
> CPU: 3 PID: 1147 Comm: modprobe Tainted: G W OE 4.11.6-amd64-preempt-sysrq-20170406 #6
> Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015
> Call Trace:
> dump_stack+0x61/0x7d
> __warn+0xc2/0xdd
> warn_slowpath_fmt+0x5a/0x76
> ? iwl_read32+0x1f/0x7f [iwlwifi]
> iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
> iwl_trans_pcie_alloc+0x2fb/0x7d4 [iwlwifi]
> iwl_pci_probe+0x30/0x301 [iwlwifi]
> ? _raw_spin_unlock_irqrestore+0x14/0x24
> ? __pm_runtime_resume+0x4d/0x58
> local_pci_probe+0x3d/0x80
> pci_device_probe+0xf9/0x13c
> driver_probe_device+0x19d/0x3f2
> __driver_attach+0x80/0xdb
> ? driver_probe_device+0x3f2/0x3f2
> bus_for_each_dev+0x69/0xa7
> driver_attach+0x1e/0x20
> bus_add_driver+0xfd/0x239
> driver_register+0x88/0xbf
> ? 0xffffffffc06bf000
> __pci_register_driver+0x4c/0x4e
> iwl_pci_register_driver+0x24/0x3b [iwlwifi]
> ? 0xffffffffc06bf000
> iwl_drv_init+0x65/0x67 [iwlwifi]
> do_one_initcall+0x9f/0x160
> ? slab_pre_alloc_hook+0x1a/0x44
> ? slab_post_alloc_hook.isra.47+0xe/0x1d
> ? kmem_cache_alloc_trace+0xec/0xfc
> do_init_module+0x5f/0x1f7
> load_module+0x1e6e/0x2595
> ? strstarts+0x28/0x28
> ? vfs_read+0xb5/0xdc
> SYSC_finit_module+0xa2/0xe6
> ? SYSC_finit_module+0xa2/0xe6
> SyS_finit_module+0xe/0x10
> do_syscall_64+0x6b/0x7d
> entry_SYSCALL64_slow_path+0x25/0x25
> RIP: 0033:0x7f3e447ce119
> RSP: 002b:00007ffec7b402d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
> RAX: ffffffffffffffda RBX: 0000564e79be53e0 RCX: 00007f3e447ce119
> RDX: 0000000000000000 RSI: 0000564e79345246 RDI: 0000000000000004
> RBP: 0000564e79345246 R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
> R13: 0000564e79be7770 R14: 0000000000040000 R15: 0000000000040000
> ---[ end trace 35b5c8836a5906b1 ]---
> iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
> iwlwifi 0000:04:00.0: Falling back to user helper
> iwlwifi 0000:04:00.0: capa flags index 3 larger than supported by driver
> iwlwifi 0000:04:00.0: loaded firmware version 27.455470.0 op_mode iwlmvm
> iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
> iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
> iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
> [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=90832 end=90833) time 312 us, min 2146, max 2159, scanline start 2120, end 2162
> iwlwifi 0000:04:00.0: Could not load the [0] uCode section
> iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
> [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=93049 end=93050) time 335 us, min 2146, max 2159, scanline start 2131, end 2176
> iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
> iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
>
> --
> "A mouse is a device used to point at the xterm you want to type in" - A.S.R.
> Microsoft is to operating systems ....
> .... what McDonalds is to gourmet cooking
> Home page: http://marc.merlins.org/ | PGP 1024R/763BE901
>

--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901

2017-10-21 00:54:55

by Marc MERLIN

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

Mmmh, still seem to have a problem when I reload the module

what now?

saruman:~$ grep IWL /boot/config-4.12.10-amd64-preempt-sysrq-20171018
CONFIG_IWLEGACY=m
CONFIG_IWL4965=m
CONFIG_IWL3945=m
CONFIG_IWLEGACY_DEBUG=y
CONFIG_IWLWIFI=m
CONFIG_IWLWIFI_LEDS=y
CONFIG_IWLDVM=m
CONFIG_IWLMVM=m
CONFIG_IWLWIFI_OPMODE_MODULAR=y
# CONFIG_IWLWIFI_BCAST_FILTERING is not set
# CONFIG_IWLWIFI_PCIE_RTPM is not set
CONFIG_IWLWIFI_DEBUG=y
CONFIG_IWLWIFI_DEVICE_TRACING=y


[95473.132319] Intel(R) Wireless WiFi driver for Linux
[95473.132322] Copyright(c) 2003- 2015 Intel Corporation
[95473.169147] iwlwifi 0000:04:00.0: Refused to change power state, currently in D3
[95473.185656] Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
[95473.185668] ------------[ cut here ]------------
[95473.185695] WARNING: CPU: 1 PID: 512 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1855 iwl_trans_pcie_grab_nic_access+0xc0/0xd7 [iwlwifi]
[95473.185696] Modules linked in: iwlwifi(+) cfg80211 rndis_host cdc_ether usbnet cmac e1000e msr rfcomm uas usb_storage ipt_MASQUERADE nf_nat_masquerade_ipv4 ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_tables bnep pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) autofs4 binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat configs input_polldev loop firewire_sbp2 firewire_core crc_itu_t cuse ecryptfs ppdev parport_pc lp parport uvcvideo btusb videobuf2_vmalloc videobuf2_memops btrtl hid_generic videobuf2_v4l2 btbcm videobuf2_core btintel
[95473.185728] videodev bluetooth media usbhid hid ecdh_generic joydev arc4 coretemp x86_pkg_temp_thermal intel_powerclamp snd_hda_codec_realtek snd_hda_codec_generic kvm_intel rtsx_pci_ms memstick rtsx_pci_sdmmc iTCO_wdt kvm iTCO_vendor_support mei_wdt irqbypass crct10dif_pclmul crc32_pclmul snd_hda_intel ghash_clmulni_intel xhci_pci intel_cstate snd_hda_codec xhci_hcd snd_hda_core efi_pstore intel_rapl_perf pcspkr psmouse snd_seq snd_hwdep thinkpad_acpi snd_pcm snd_seq_device efivars i2c_i801 sg rtsx_pci nvram nvidiafb snd_timer usbcore vgastate fb_ddc snd mei_me intel_pch_thermal soundcore rfkill hwmon battery ac wmi tpm_crb tpm_tis tpm_tis_core tpm sata_sil24 r8169 mii fuse fan raid456 multipath mmc_block mmc_core dm_snapshot dm_bufio dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov
[95473.185759] async_pq async_xor async_memcpy async_tx blowfish_x86_64 blowfish_common crc32c_intel bcache aesni_intel input_leds aes_x86_64 crypto_simd ptp cryptd i915 glue_helper serio_raw pps_core shpchp thermal evdev [last unloaded: cfg80211]
[95473.185770] CPU: 1 PID: 512 Comm: modprobe Tainted: G W OE 4.12.10-amd64-preempt-sysrq-20171018 #2
[95473.185771] Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015
[95473.185772] task: ffff9c0990188000 task.stack: ffffa815102b4000
[95473.185782] RIP: 0010:iwl_trans_pcie_grab_nic_access+0xc0/0xd7 [iwlwifi]
[95473.185783] RSP: 0018:ffffa815102b7a30 EFLAGS: 00010086
[95473.185784] RAX: 000000000000003d RBX: ffff9c06d2da0018 RCX: 0000000000000007
[95473.185785] RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff9c0f6144dd60
[95473.185786] RBP: ffffa815102b7a48 R08: 0000000000000002 R09: 0000000000000000
[95473.185787] R10: 0000000000000000 R11: ffffffffa8f34e67 R12: ffff9c06d2da8f20
[95473.185788] R13: ffffa815102b7a68 R14: ffff9c0f3c62e0a0 R15: 0000000000000000
[95473.185789] FS: 00007fa1d9ede700(0000) GS:ffff9c0f61440000(0000) knlGS:0000000000000000
[95473.185790] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[95473.185792] CR2: 00007fcbb5ecf5dc CR3: 0000000361d10000 CR4: 00000000003406e0
[95473.185793] DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
[95473.185794] DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
[95473.185795] Call Trace:
[95473.185804] iwl_trans_pcie_alloc+0x2f2/0x7ac [iwlwifi]
[95473.185807] ? mutex_unlock+0x22/0x34
[95473.185817] iwl_pci_probe+0x21/0x2ce [iwlwifi]
[95473.185820] ? _raw_spin_unlock_irqrestore+0x14/0x24
[95473.185822] ? __pm_runtime_resume+0x4d/0x58
[95473.185824] local_pci_probe+0x3d/0x80
[95473.185827] pci_device_probe+0x10c/0x13b
[95473.185829] driver_probe_device+0x19b/0x3f6
[95473.185831] __driver_attach+0x80/0xdb
[95473.185834] ? driver_probe_device+0x3f6/0x3f6
[95473.185835] bus_for_each_dev+0x5d/0x85
[95473.185838] driver_attach+0x1e/0x20
[95473.185840] bus_add_driver+0xfd/0x239
[95473.185842] driver_register+0x88/0xbf
[95473.185844] ? 0xffffffffc0795000
[95473.185845] __pci_register_driver+0x4c/0x4e
[95473.185853] iwl_pci_register_driver+0x24/0x3b [iwlwifi]
[95473.185854] ? 0xffffffffc0795000
[95473.185862] iwl_drv_init+0x65/0x67 [iwlwifi]
[95473.185864] do_one_initcall+0x9f/0x156
[95473.185866] ? slab_pre_alloc_hook+0x1a/0x44
[95473.185868] ? slab_post_alloc_hook.isra.47+0xe/0x1d
[95473.185870] ? kmem_cache_alloc_trace+0xec/0xfc
[95473.185873] do_init_module+0x5f/0x1f7
[95473.185874] load_module+0x1e53/0x257a
[95473.185876] ? strstarts+0x28/0x28
[95473.185879] SYSC_finit_module+0x8c/0xb9
[95473.185880] ? SYSC_finit_module+0x8c/0xb9
[95473.185882] SyS_finit_module+0xe/0x10
[95473.185884] do_syscall_64+0x6b/0x7d
[95473.185886] entry_SYSCALL64_slow_path+0x25/0x25
[95473.185887] RIP: 0033:0x7fa1d9a4c119
[95473.185888] RSP: 002b:00007ffde7ac7c38 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
[95473.185889] RAX: ffffffffffffffda RBX: 0000560413f35370 RCX: 00007fa1d9a4c119
[95473.185890] RDX: 0000000000000000 RSI: 00005604139b2246 RDI: 0000000000000004
[95473.185891] RBP: 00005604139b2246 R08: 0000000000000000 R09: 0000000000000000
[95473.185892] R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
[95473.185893] R13: 0000560413f37690 R14: 0000000000040000 R15: 0000000000040000
[95473.185896] Code: 80 3d 0a 9a 01 00 00 75 24 48 89 df be 24 00 00 00 c6 05 f9 99 01 00 01 e8 da 38 ff ff 48 c7 c7 7a 10 88 c0 89 c6 e8 6f e5 8c e7 <0f> ff 49 8b 75 00 4c 89 e7 e8 1e cb e8 e7 31 c0 5b 41 5c 41 5d
[95473.185916] ---[ end trace 6b63fed5320656d4 ]---
[95473.185963] iwlwifi 0000:04:00.0: pci_enable_msi failed - -22
[95473.186841] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-30.ucode failed with error -2
[95473.186844] iwlwifi 0000:04:00.0: Falling back to user helper
[95473.187284] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-29.ucode failed with error -2
[95473.187287] iwlwifi 0000:04:00.0: Falling back to user helper
[95473.187629] iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
[95473.187632] iwlwifi 0000:04:00.0: Falling back to user helper
[95473.189268] iwlwifi 0000:04:00.0: capa flags index 3 larger than supported by driver
[95473.190270] iwlwifi 0000:04:00.0: loaded firmware version 27.455470.0 op_mode iwlmvm
[95473.929483] e1000e 0000:00:1f.6 eth0: Error reading PHY register
[95473.934735] iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
[95473.936779] iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
[95473.936877] iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
[95474.171371] EXT4-fs (sda1): re-mounted. Opts: stripe=128,data=ordered,commit=600
[95474.824009] e1000e 0000:00:1f.6 eth0: Error reading PHY register
[95474.991769] iwlwifi 0000:04:00.0: Could not load the [0] uCode section
[95474.991809] iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
[95475.624341] e1000e 0000:00:1f.6 eth0: Error reading PHY register
[95476.424545] e1000e 0000:00:1f.6 eth0: Error reading PHY register
[95477.223796] e1000e 0000:00:1f.6 eth0: Error reading PHY register
[95477.397905] iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
[95477.397933] iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901

2017-10-18 09:50:12

by Kalle Valo

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

Luca Coelho <[email protected]> writes:

> On Wed, 2017-10-18 at 07:59 +0300, Kalle Valo wrote:
>> Luca Coelho <[email protected]> writes:
>>
>> > On Tue, 2017-10-17 at 14:23 -0700, Marc MERLIN wrote:
>> >
>> > > I don't know how or why, but I seem to:
>> > > saruman:~# grep IWLWIFI /boot/config-4.12.10-amd64-preempt-sysrq-
>> > > 20170406
>> > > CONFIG_IWLWIFI=m
>> > > CONFIG_IWLWIFI_LEDS=y
>> > > CONFIG_IWLWIFI_OPMODE_MODULAR=y
>> > > # CONFIG_IWLWIFI_BCAST_FILTERING is not set
>> > > CONFIG_IWLWIFI_PCIE_RTPM=y
>> > > CONFIG_IWLWIFI_DEBUG=y
>> > > CONFIG_IWLWIFI_DEVICE_TRACING=y
>> > >
>> > > I'll remove that, thanks.
>> >
>> > Cool, I think that might help. If it doesn't, please report a bug
>> > in
>> > buzilla. ;)
>>
>> But a Kconfig option should never break functionality, so IMHO this
>> still sounds like a bug in iwlwifi.
>
> The problem is that to get this to work, some changes need to be made
> in the platform side. In this case, the rootport is not configured
> properly so it won't work.

Yeah, but users or distros might accidentally enable this Kconfig
option and break the driver unintentionally. And subtle bugs like this
are even worse as the user will not realise that it's because of a new
Kconfig option.

So I guess you can't automatically detect it the platform supports RTPM,
right? Maybe there should be a module parameter which has to be set to
enable this? And at least a big fat warning to the user that RTPM is
enabled, bugs are likely and the user has to know what she's doing.

> We discussed this before and that's why this option now depends on
> EXPERT.

Heh, we did? I have no recollection of whatsoever about that :)

--
Kalle Valo

2017-10-18 10:23:03

by Luca Coelho

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

On Wed, 2017-10-18 at 12:50 +0300, Kalle Valo wrote:
> Luca Coelho <[email protected]> writes:
>
> > On Wed, 2017-10-18 at 07:59 +0300, Kalle Valo wrote:
> > > Luca Coelho <[email protected]> writes:
> > >
> > > > On Tue, 2017-10-17 at 14:23 -0700, Marc MERLIN wrote:
> > > >
> > > > > I don't know how or why, but I seem to:
> > > > > saruman:~# grep IWLWIFI /boot/config-4.12.10-amd64-preempt-
> > > > > sysrq-
> > > > > 20170406
> > > > > CONFIG_IWLWIFI=m
> > > > > CONFIG_IWLWIFI_LEDS=y
> > > > > CONFIG_IWLWIFI_OPMODE_MODULAR=y
> > > > > # CONFIG_IWLWIFI_BCAST_FILTERING is not set
> > > > > CONFIG_IWLWIFI_PCIE_RTPM=y
> > > > > CONFIG_IWLWIFI_DEBUG=y
> > > > > CONFIG_IWLWIFI_DEVICE_TRACING=y
> > > > >
> > > > > I'll remove that, thanks.
> > > >
> > > > Cool, I think that might help. If it doesn't, please report a
> > > > bug
> > > > in
> > > > buzilla. ;)
> > >
> > > But a Kconfig option should never break functionality, so IMHO
> > > this
> > > still sounds like a bug in iwlwifi.
> >
> > The problem is that to get this to work, some changes need to be
> > made
> > in the platform side. In this case, the rootport is not configured
> > properly so it won't work.
>
> Yeah, but users or distros might accidentally enable this Kconfig
> option and break the driver unintentionally. And subtle bugs like
> this
> are even worse as the user will not realise that it's because of a
> new
> Kconfig option.
>
> So I guess you can't automatically detect it the platform supports
> RTPM,
> right? Maybe there should be a module parameter which has to be set
> to
> enable this? And at least a big fat warning to the user that RTPM is
> enabled, bugs are likely and the user has to know what she's doing.

I thought this was what EXPERT was used for:

menuconfig EXPERT
bool "Configure standard kernel features (expert users)"
# Unhide debug options, to make the on-by-default options visible
select DEBUG_KERNEL
help
This option allows certain base kernel options and settings
to be disabled or tweaked. This is for specialized
environments which can tolerate a "non-standard" kernel.
Only use this if you really know what you are doing.


But it seems that it's widely used even by people/distros who don't
know what they are doing. :(

Would it be okay if we just add a printk(KERN_ERR, ...)?


> > We discussed this before and that's why this option now depends on
> > EXPERT.
>
> Heh, we did? I have no recollection of whatsoever about that :)

I'm not sure you were involved in the discussion, but that discussion
was the reason we introduced EXPERT as a dependency.

--
Luca.

2017-10-17 14:06:03

by Luca Coelho

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

Hi,

On Tue, 2017-10-17 at 02:44 -0700, Marc MERLIN wrote:
> Was broken in 4.11, still broken in 4.12. This is crippling, I'm not
> running linux so that I have to reboot it to reload an intel wireless
> driver :-/

Can you report a bug in https://bugzilla.kernel.org so it's easier to
track this?

The problem seems to be that the rootport is not leaving D3 for some
reason when the driver is loaded again. Do you have
CONFIG_IWLWIFI_PCIE_RTPM enabled in your .config? (you shouldn't)

In any case, better continue tracking this in bugzilla, so please
report it there and include the full dmesg output so we can better
understand what is going on.

--
Cheers,
Luca.

2017-10-21 10:22:24

by Marc MERLIN

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

On Fri, Oct 20, 2017 at 05:50:38PM -0700, Marc MERLIN wrote:
> Mmmh, still seem to have a problem when I reload the module
>
> what now?

I've entered bug https://bugzilla.kernel.org/show_bug.cgi?id=197341

But I'm still curious what firmware I'm supposed to use:

-rw-rw-r-- 1 merlin merlin 1745176 Jun 18 2015 /lib/firmware/iwlwifi-8000C-13.ucode
-rw-r--r-- 1 root root 2345768 Dec 6 2015 /lib/firmware/iwlwifi-8000C-14.ucode
-rw-r--r-- 1 root root 2351636 Dec 6 2015 /lib/firmware/iwlwifi-8000C-16.ucode
-rw-r--r-- 1 root root 2390004 Feb 12 2016 /lib/firmware/iwlwifi-8000C-17.ucode
-rw-r--r-- 1 merlin merlin 2382972 Feb 25 2016 /lib/firmware/iwlwifi-8000C-19.ucode
-rw-r--r-- 1 merlin merlin 2227284 Jun 3 09:46 /lib/firmware/iwlwifi-8000C-27.ucode

https://www.intel.com/content/www/us/en/support/articles/000005511/network-and-i-o/wireless-networking.html
still says to install
iwlwifi-8000-ucode-25.30.13.0.tgz
which in turn installs
iwlwifi-8000C-13.ucode
while the driver looks for iwlwifi-8000C-30.ucode iwlwifi-8000C-29.ucode iwlwifi-8000C-28.ucode
before loading iwlwifi-8000C-27.ucode

Do I have the right firmware?
loaded firmware version 27.455470.0 op_mode iwlmvm

I'm still getting
[95473.169147] iwlwifi 0000:04:00.0: Refused to change power state, currently in D3
[95473.185656] Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)

Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901

2017-10-17 21:23:23

by Marc MERLIN

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

On Tue, Oct 17, 2017 at 05:05:57PM +0300, Luca Coelho wrote:
> Hi,
>
> On Tue, 2017-10-17 at 02:44 -0700, Marc MERLIN wrote:
> > Was broken in 4.11, still broken in 4.12. This is crippling, I'm not
> > running linux so that I have to reboot it to reload an intel wireless
> > driver :-/
>
> Can you report a bug in https://bugzilla.kernel.org so it's easier to
> track this?
>
> The problem seems to be that the rootport is not leaving D3 for some
> reason when the driver is loaded again. Do you have
> CONFIG_IWLWIFI_PCIE_RTPM enabled in your .config? (you shouldn't)

I don't know how or why, but I seem to:
saruman:~# grep IWLWIFI /boot/config-4.12.10-amd64-preempt-sysrq-20170406
CONFIG_IWLWIFI=m
CONFIG_IWLWIFI_LEDS=y
CONFIG_IWLWIFI_OPMODE_MODULAR=y
# CONFIG_IWLWIFI_BCAST_FILTERING is not set
CONFIG_IWLWIFI_PCIE_RTPM=y
CONFIG_IWLWIFI_DEBUG=y
CONFIG_IWLWIFI_DEVICE_TRACING=y

I'll remove that, thanks.

Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901

2017-10-17 21:35:05

by Luca Coelho

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

On Tue, 2017-10-17 at 14:23 -0700, Marc MERLIN wrote:
> On Tue, Oct 17, 2017 at 05:05:57PM +0300, Luca Coelho wrote:
> > Hi,
> >
> > On Tue, 2017-10-17 at 02:44 -0700, Marc MERLIN wrote:
> > > Was broken in 4.11, still broken in 4.12. This is crippling, I'm
> > > not
> > > running linux so that I have to reboot it to reload an intel
> > > wireless
> > > driver :-/
> >
> > Can you report a bug in https://bugzilla.kernel.org so it's easier
> > to
> > track this?
> >
> > The problem seems to be that the rootport is not leaving D3 for
> > some
> > reason when the driver is loaded again. Do you have
> > CONFIG_IWLWIFI_PCIE_RTPM enabled in your .config? (you shouldn't)
>
>
> I don't know how or why, but I seem to:
> saruman:~# grep IWLWIFI /boot/config-4.12.10-amd64-preempt-sysrq-
> 20170406
> CONFIG_IWLWIFI=m
> CONFIG_IWLWIFI_LEDS=y
> CONFIG_IWLWIFI_OPMODE_MODULAR=y
> # CONFIG_IWLWIFI_BCAST_FILTERING is not set
> CONFIG_IWLWIFI_PCIE_RTPM=y
> CONFIG_IWLWIFI_DEBUG=y
> CONFIG_IWLWIFI_DEVICE_TRACING=y
>
> I'll remove that, thanks.

Cool, I think that might help. If it doesn't, please report a bug in
buzilla. ;)

--
Cheers,
Luca.

2017-10-17 09:46:10

by Marc MERLIN

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

Was broken in 4.11, still broken in 4.12. This is crippling, I'm not
running linux so that I have to reboot it to reload an intel wireless
driver :-/

I currently have:
-rw-rw-r-- 1 merlin merlin 1745176 Jun 18 2015 /lib/firmware/iwlwifi-8000C-13.ucode
-rw-r--r-- 1 root root 2345768 Dec 6 2015 /lib/firmware/iwlwifi-8000C-14.ucode
-rw-r--r-- 1 root root 2351636 Dec 6 2015 /lib/firmware/iwlwifi-8000C-16.ucode
-rw-r--r-- 1 root root 2390004 Feb 12 2016 /lib/firmware/iwlwifi-8000C-17.ucode
-rw-r--r-- 1 merlin merlin 2382972 Feb 25 2016 /lib/firmware/iwlwifi-8000C-19.ucode
-rw-r--r-- 1 merlin merlin 2227284 Jun 3 09:46 /lib/firmware/iwlwifi-8000C-27.ucode

https://www.intel.com/content/www/us/en/support/articles/000005511/network-and-i-o/wireless-networking.html
still says to install
iwlwifi-8000-ucode-25.30.13.0.tgz
which in turn installs
iwlwifi-8000C-13.ucode
while the driver looks for iwlwifi-8000C-30.ucode iwlwifi-8000C-29.ucode iwlwifi-8000C-28.ucode
before loading iwlwifi-8000C-27.ucode

so, what do I do?

Intel(R) Wireless WiFi driver for Linux
Copyright(c) 2003- 2015 Intel Corporation
iwlwifi 0000:04:00.0: Refused to change power state, currently in D3
Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
------------[ cut here ]------------
WARNING: CPU: 1 PID: 22824 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1855 iwl_trans_pcie_grab_nic_access+0xc0/0xd7 [iwlwifi] Modules linked in: iwlwifi(+) cfg80211 msr cmac tun ccm rfcomm ipt_MASQUERADE nf_nat_masquerade_ipv4 ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack nf_ ntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle ebtable_filter ebtables ip6table_filter ip6_tables iptable_filter ip_tables x_t boxnetflt(OE) vboxdrv(OE) autofs4 binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat configs input_po cuse ecryptfs ppdev parport_pc lp parport uvcvideo btusb videobuf2_vmalloc btrtl hid_generic btbcm videobuf2_memops btintel videobuf2_v4l2 videobuf2_cor ic joydev arc4 rtsx_pci_ms iTCO_wdt memstick iTCO_vendor_support rtsx_pci_sdmmc snd_hda_codec_realtek snd_hda_codec_generic mei_wdt coretemp x86_pkg_temp_t kvm snd_hda_codec snd_hda_core irqbypass crct10dif_pclmul crc32_pclmul snd_hwdep xhci_pci efi_pstore snd_seq ghash_clmulni_intel xhci_hcd intel_cstate nv pi psmouse vgastate intel_rapl_perf efivars i2c_i801 rtsx_pci sg nvram snd_timer fb_ddc usbcore snd mei_me intel_pch_thermal soundcore rfkill tpm_crb hwm ipath mmc_block mmc_core dm_snapshot dm_bufio dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov async_pq async_xor async_memcpy async_tx blowfish_x86_64 blowfish_common crc32c_intel bcache aesni_intel aes_x86_64 input_leds ptp crypto_simd i915 cryptd glue_helper serio_raw pps_core shpchp thermal evdev [last unloaded: cfg80211]
CPU: 1 PID: 22824 Comm: modprobe Tainted: G W OE 4.12.10-amd64-preempt-sysrq-20170406 #1
Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015
task: ffff8ba2de876000 task.stack: ffffa0f213c34000
RIP: 0010:iwl_trans_pcie_grab_nic_access+0xc0/0xd7 [iwlwifi]
RSP: 0018:ffffa0f213c37a30 EFLAGS: 00010086
RAX: 000000000000003d RBX: ffff8ba2bd560018 RCX: 0000000000000007
RDX: 0000000000000000 RSI: 0000000000000002 RDI: ffff8ba52144dd60
RBP: ffffa0f213c37a48 R08: 0000000000000002 R09: 0000000000000000
R10: 0000000000000000 R11: ffffffffa1f34e68 R12: ffff8ba2bd568f20
R13: ffffa0f213c37a68 R14: ffff8ba4fc62e0a0 R15: 0000000000000000
FS: 00007ff1c9816700(0000) GS:ffff8ba521440000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 000056441582aed8 CR3: 00000001b59e8000 CR4: 00000000003406e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
iwl_trans_pcie_alloc+0x2f2/0x7ac [iwlwifi]
? mutex_unlock+0x22/0x34
iwl_pci_probe+0x21/0x2ce [iwlwifi]
? _raw_spin_unlock_irqrestore+0x14/0x24
? __pm_runtime_resume+0x4d/0x58
local_pci_probe+0x3d/0x80
pci_device_probe+0x10c/0x13b
driver_probe_device+0x19b/0x3f6
__driver_attach+0x80/0xdb
? driver_probe_device+0x3f6/0x3f6
bus_for_each_dev+0x5d/0x85
driver_attach+0x1e/0x20
bus_add_driver+0xfd/0x239
driver_register+0x88/0xbf
? 0xffffffffc0940000
__pci_register_driver+0x4c/0x4e
iwl_pci_register_driver+0x24/0x3b [iwlwifi]
? 0xffffffffc0940000
iwl_drv_init+0x65/0x67 [iwlwifi]
do_one_initcall+0x9f/0x156
? slab_pre_alloc_hook+0x1a/0x44
? slab_post_alloc_hook.isra.47+0xe/0x1d
? kmem_cache_alloc_trace+0xec/0xfc
do_init_module+0x5f/0x1f7
load_module+0x1e53/0x257a
? strstarts+0x28/0x28
SYSC_finit_module+0x8c/0xb9
? SYSC_finit_module+0x8c/0xb9
SyS_finit_module+0xe/0x10
do_syscall_64+0x6b/0x7d
entry_SYSCALL64_slow_path+0x25/0x25
RIP: 0033:0x7ff1c9384119
RSP: 002b:00007fff00565518 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
RAX: ffffffffffffffda RBX: 00005619e9a47370 RCX: 00007ff1c9384119
RDX: 0000000000000000 RSI: 00005619e8c63246 RDI: 0000000000000004
RBP: 00005619e8c63246 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
R13: 00005619e9a49690 R14: 0000000000040000 R15: 0000000000040000
Code: 80 3d b7 98 01 00 00 75 24 48 89 df be 24 00 00 00 c6 05 a6 98 01 00 01 e8 87 37 ff ff 48 c7 c7 6f a1 8b c0 89 c6 e8 1c 54 89 e0 <0f> ff 49 8b 75 00 4c 89 e7 e8 cb 39 e5 e0 31 c0 5b 41 5c 41 5d
---[ end trace a54fb45ab58794f3 ]---
iwlwifi 0000:04:00.0: pci_enable_msi failed - -22
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-30.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-29.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
iwlwifi 0000:04:00.0: Falling back to user helper
iwlwifi 0000:04:00.0: capa flags index 3 larger than supported by driver
iwlwifi 0000:04:00.0: loaded firmware version 27.455470.0 op_mode iwlmvm
iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
iwlwifi 0000:04:00.0: Could not load the [0] uCode section
iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled


On Wed, Aug 16, 2017 at 04:38:44PM -0700, Marc MERLIN wrote:
> On Sat, Jun 03, 2017 at 09:59:50AM -0700, Marc MERLIN wrote:
> > On Fri, Jun 02, 2017 at 12:42:55PM +0300, Luca Coelho wrote:
> > > I kernel v4.9, we stopped supporting firmware versions smaller than 22
> > > for the 8260. But unfortunately I made a mistake in the patch[1] when I
> > > removed support for those firmwares and I used 17, which is the lowest
> > > version for 7260 devices.
> > >
> > > I have just sent out a patch[2] with a fix for that.
> > >
> > > You can probably solve your problem by getting the latest firmware we
> > > have released, which is version 27. You can get it from the linux-
> > > firmware.git repository[3]. Please try that and let us know how it
> > > goes.
> >
> > Thanks. I think the other problem is that
> > https://wireless.wiki.kernel.org/en/users/drivers/iwlwifihttps://wireless.wiki.kernel.org/en/users/drivers/iwlwifi
> > says to use 'iwlwifi-8000-ucode-16.242414.0.tgz' for 4.3+ kenrels.
> > and strangely says "iwlwifi-8000-ucode-25.30.13.0.tgz" for 4.1+ kernels.
> >
> > Unless I'm crazy, it didn't have -25 when I looked last time.
> > Is there a way to keep what I thought was the canonical page, up to date?
> >
> > Firmware 27 seems to work, but I'm getting allocation error/warnings?
>
> Ok, now I'm getting this error with 4.11.6 when loading the module
> (after having unloaded it while on batteries, to save power):
>
> Intel(R) Wireless WiFi driver for Linux
> Copyright(c) 2003- 2015 Intel Corporation
> ------------[ cut here ]------------
> WARNING: CPU: 3 PID: 1147 at drivers/net/wireless/intel/iwlwifi/pcie/trans.c:1913 iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
> Timeout waiting for hardware access (CSR_GP_CNTRL 0xffffffff)
> Modules linked in: iwlwifi(+) cfg80211 uvcvideo e1000e rndis_host cdc_ether usbnet cmac ccm ipt_MASQUERADE nf_nat_masquerade_ipv4 ipt_REJECT nf_reject_ipv4 xt_tcpudp xt_conntrack nf_log_ipv4 nf_log_common xt_LOG iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 nf_nat_ipv4 nf_nat nf_conntrack iptable_mangle ebtable_filter ebtables ip6table_filter ip6_tables rfcomm iptable_filter ip_tables x_tables bnep pci_stub vboxpci(OE) vboxnetadp(OE) vboxnetflt(OE) vboxdrv(OE) autofs4 binfmt_misc uinput nfsd auth_rpcgss nfs_acl nfs lockd grace fscache sunrpc nls_utf8 nls_cp437 vfat fat configs input_polldev loop firewire_sbp2 firewire_core crc_itu_t cuse ecryptfs ppdev parport_pc lp parport hid_generic videobuf2_vmalloc videobuf2_memops btusb videobuf2_v4l2 btrtl videobuf2_core btbcm btintel videodev media
> usbhid bluetooth hid joydev arc4 snd_hda_codec_realtek snd_hda_codec_generic coretemp snd_hda_intel x86_pkg_temp_thermal intel_powerclamp snd_hda_codec kvm_intel snd_hda_core rtsx_pci_ms iTCO_wdt kvm memstick rtsx_pci_sdmmc iTCO_vendor_support mei_wdt snd_hwdep thinkpad_acpi irqbypass snd_pcm nvram crct10dif_pclmul crc32_pclmul snd_seq ghash_clmulni_intel snd_seq_device intel_cstate efi_pstore intel_rapl_perf snd_timer xhci_pci pcspkr psmouse efivars i2c_i801 xhci_hcd snd rtsx_pci nvidiafb sg usbcore vgastate fb_ddc mei_me intel_pch_thermal soundcore rfkill wmi hwmon battery ac tpm_crb tpm_tis tpm_tis_core tpm sata_sil24 r8169 mii fuse fan raid456 multipath mmc_block mmc_core dm_snapshot dm_bufio dm_mirror dm_region_hash dm_log dm_crypt dm_mod async_raid6_recov async_pq async_xor async_memcpy
> async_tx blowfish_x86_64 blowfish_common crc32c_intel bcache aesni_intel i915 ptp aes_x86_64 crypto_simd input_leds cryptd glue_helper serio_raw pps_core shpchp thermal evdev [last unloaded: cfg80211]
> CPU: 3 PID: 1147 Comm: modprobe Tainted: G W OE 4.11.6-amd64-preempt-sysrq-20170406 #6
> Hardware name: LENOVO 20ERCTO1WW/20ERCTO1WW, BIOS N1DET41W (1.15 ) 12/31/2015
> Call Trace:
> dump_stack+0x61/0x7d
> __warn+0xc2/0xdd
> warn_slowpath_fmt+0x5a/0x76
> ? iwl_read32+0x1f/0x7f [iwlwifi]
> iwl_trans_pcie_grab_nic_access+0xcc/0xe1 [iwlwifi]
> iwl_trans_pcie_alloc+0x2fb/0x7d4 [iwlwifi]
> iwl_pci_probe+0x30/0x301 [iwlwifi]
> ? _raw_spin_unlock_irqrestore+0x14/0x24
> ? __pm_runtime_resume+0x4d/0x58
> local_pci_probe+0x3d/0x80
> pci_device_probe+0xf9/0x13c
> driver_probe_device+0x19d/0x3f2
> __driver_attach+0x80/0xdb
> ? driver_probe_device+0x3f2/0x3f2
> bus_for_each_dev+0x69/0xa7
> driver_attach+0x1e/0x20
> bus_add_driver+0xfd/0x239
> driver_register+0x88/0xbf
> ? 0xffffffffc06bf000
> __pci_register_driver+0x4c/0x4e
> iwl_pci_register_driver+0x24/0x3b [iwlwifi]
> ? 0xffffffffc06bf000
> iwl_drv_init+0x65/0x67 [iwlwifi]
> do_one_initcall+0x9f/0x160
> ? slab_pre_alloc_hook+0x1a/0x44
> ? slab_post_alloc_hook.isra.47+0xe/0x1d
> ? kmem_cache_alloc_trace+0xec/0xfc
> do_init_module+0x5f/0x1f7
> load_module+0x1e6e/0x2595
> ? strstarts+0x28/0x28
> ? vfs_read+0xb5/0xdc
> SYSC_finit_module+0xa2/0xe6
> ? SYSC_finit_module+0xa2/0xe6
> SyS_finit_module+0xe/0x10
> do_syscall_64+0x6b/0x7d
> entry_SYSCALL64_slow_path+0x25/0x25
> RIP: 0033:0x7f3e447ce119
> RSP: 002b:00007ffec7b402d8 EFLAGS: 00000246 ORIG_RAX: 0000000000000139
> RAX: ffffffffffffffda RBX: 0000564e79be53e0 RCX: 00007f3e447ce119
> RDX: 0000000000000000 RSI: 0000564e79345246 RDI: 0000000000000004
> RBP: 0000564e79345246 R08: 0000000000000000 R09: 0000000000000000
> R10: 0000000000000004 R11: 0000000000000246 R12: 0000000000000000
> R13: 0000564e79be7770 R14: 0000000000040000 R15: 0000000000040000
> ---[ end trace 35b5c8836a5906b1 ]---
> iwlwifi 0000:04:00.0: Direct firmware load for iwlwifi-8000C-28.ucode failed with error -2
> iwlwifi 0000:04:00.0: Falling back to user helper
> iwlwifi 0000:04:00.0: capa flags index 3 larger than supported by driver
> iwlwifi 0000:04:00.0: loaded firmware version 27.455470.0 op_mode iwlmvm
> iwlwifi 0000:04:00.0: Detected Intel(R) Dual Band Wireless AC 8260, REV=0xFFFC
> iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
> iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
> [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=90832 end=90833) time 312 us, min 2146, max 2159, scanline start 2120, end 2162
> iwlwifi 0000:04:00.0: Could not load the [0] uCode section
> iwlwifi 0000:04:00.0: Failed to start INIT ucode: -5
> [drm:intel_pipe_update_end [i915]] *ERROR* Atomic update failure on pipe A (start=93049 end=93050) time 335 us, min 2146, max 2159, scanline start 2131, end 2176
> iwlwifi 0000:04:00.0: Failed to run INIT ucode: -5
> iwlwifi 0000:04:00.0: L1 Enabled - LTR Enabled
>
> --
> "A mouse is a device used to point at the xterm you want to type in" - A.S.R.
> Microsoft is to operating systems ....
> .... what McDonalds is to gourmet cooking
> Home page: http://marc.merlins.org/ | PGP 1024R/763BE901

--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901

2017-10-18 04:59:20

by Kalle Valo

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

Luca Coelho <[email protected]> writes:

> On Tue, 2017-10-17 at 14:23 -0700, Marc MERLIN wrote:
>> On Tue, Oct 17, 2017 at 05:05:57PM +0300, Luca Coelho wrote:
>> > Hi,
>> >
>> > On Tue, 2017-10-17 at 02:44 -0700, Marc MERLIN wrote:
>> > > Was broken in 4.11, still broken in 4.12. This is crippling, I'm
>> > > not
>> > > running linux so that I have to reboot it to reload an intel
>> > > wireless
>> > > driver :-/
>> >
>> > Can you report a bug in https://bugzilla.kernel.org so it's easier
>> > to
>> > track this?
>> >
>> > The problem seems to be that the rootport is not leaving D3 for
>> > some
>> > reason when the driver is loaded again. Do you have
>> > CONFIG_IWLWIFI_PCIE_RTPM enabled in your .config? (you shouldn't)
>>
>>
>> I don't know how or why, but I seem to:
>> saruman:~# grep IWLWIFI /boot/config-4.12.10-amd64-preempt-sysrq-
>> 20170406
>> CONFIG_IWLWIFI=m
>> CONFIG_IWLWIFI_LEDS=y
>> CONFIG_IWLWIFI_OPMODE_MODULAR=y
>> # CONFIG_IWLWIFI_BCAST_FILTERING is not set
>> CONFIG_IWLWIFI_PCIE_RTPM=y
>> CONFIG_IWLWIFI_DEBUG=y
>> CONFIG_IWLWIFI_DEVICE_TRACING=y
>>
>> I'll remove that, thanks.
>
> Cool, I think that might help. If it doesn't, please report a bug in
> buzilla. ;)

But a Kconfig option should never break functionality, so IMHO this
still sounds like a bug in iwlwifi.

--
Kalle Valo

2017-10-18 06:16:15

by Luca Coelho

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

On Wed, 2017-10-18 at 07:59 +0300, Kalle Valo wrote:
> Luca Coelho <[email protected]> writes:
>
> > On Tue, 2017-10-17 at 14:23 -0700, Marc MERLIN wrote:
> > > On Tue, Oct 17, 2017 at 05:05:57PM +0300, Luca Coelho wrote:
> > > > Hi,
> > > >
> > > > On Tue, 2017-10-17 at 02:44 -0700, Marc MERLIN wrote:
> > > > > Was broken in 4.11, still broken in 4.12. This is crippling,
> > > > > I'm
> > > > > not
> > > > > running linux so that I have to reboot it to reload an intel
> > > > > wireless
> > > > > driver :-/
> > > >
> > > > Can you report a bug in https://bugzilla.kernel.org so it's
> > > > easier
> > > > to
> > > > track this?
> > > >
> > > > The problem seems to be that the rootport is not leaving D3 for
> > > > some
> > > > reason when the driver is loaded again. Do you have
> > > > CONFIG_IWLWIFI_PCIE_RTPM enabled in your .config? (you
> > > > shouldn't)
> > >
> > >
> > > I don't know how or why, but I seem to:
> > > saruman:~# grep IWLWIFI /boot/config-4.12.10-amd64-preempt-sysrq-
> > > 20170406
> > > CONFIG_IWLWIFI=m
> > > CONFIG_IWLWIFI_LEDS=y
> > > CONFIG_IWLWIFI_OPMODE_MODULAR=y
> > > # CONFIG_IWLWIFI_BCAST_FILTERING is not set
> > > CONFIG_IWLWIFI_PCIE_RTPM=y
> > > CONFIG_IWLWIFI_DEBUG=y
> > > CONFIG_IWLWIFI_DEVICE_TRACING=y
> > >
> > > I'll remove that, thanks.
> >
> > Cool, I think that might help. If it doesn't, please report a bug
> > in
> > buzilla. ;)
>
> But a Kconfig option should never break functionality, so IMHO this
> still sounds like a bug in iwlwifi.

The problem is that to get this to work, some changes need to be made
in the platform side. In this case, the rootport is not configured
properly so it won't work.

We discussed this before and that's why this option now depends on
EXPERT.

--
Luca.

2017-10-20 06:35:41

by Kalle Valo

[permalink] [raw]
Subject: Re: After upgrading to 4.11.1, wifi driver refuses to load after being unloaded once.

Luca Coelho <[email protected]> writes:

> On Wed, 2017-10-18 at 12:50 +0300, Kalle Valo wrote:
>> Luca Coelho <[email protected]> writes:
>>
>> > On Wed, 2017-10-18 at 07:59 +0300, Kalle Valo wrote:
>> > > Luca Coelho <[email protected]> writes:
>> > >
>> > > > On Tue, 2017-10-17 at 14:23 -0700, Marc MERLIN wrote:
>> > > >
>> > > > > I don't know how or why, but I seem to:
>> > > > > saruman:~# grep IWLWIFI /boot/config-4.12.10-amd64-preempt-
>> > > > > sysrq-
>> > > > > 20170406
>> > > > > CONFIG_IWLWIFI=m
>> > > > > CONFIG_IWLWIFI_LEDS=y
>> > > > > CONFIG_IWLWIFI_OPMODE_MODULAR=y
>> > > > > # CONFIG_IWLWIFI_BCAST_FILTERING is not set
>> > > > > CONFIG_IWLWIFI_PCIE_RTPM=y
>> > > > > CONFIG_IWLWIFI_DEBUG=y
>> > > > > CONFIG_IWLWIFI_DEVICE_TRACING=y
>> > > > >
>> > > > > I'll remove that, thanks.
>> > > >
>> > > > Cool, I think that might help. If it doesn't, please report a
>> > > > bug
>> > > > in
>> > > > buzilla. ;)
>> > >
>> > > But a Kconfig option should never break functionality, so IMHO
>> > > this
>> > > still sounds like a bug in iwlwifi.
>> >
>> > The problem is that to get this to work, some changes need to be
>> > made
>> > in the platform side. In this case, the rootport is not configured
>> > properly so it won't work.
>>
>> Yeah, but users or distros might accidentally enable this Kconfig
>> option and break the driver unintentionally. And subtle bugs like
>> this
>> are even worse as the user will not realise that it's because of a
>> new
>> Kconfig option.
>>
>> So I guess you can't automatically detect it the platform supports
>> RTPM,
>> right? Maybe there should be a module parameter which has to be set
>> to
>> enable this? And at least a big fat warning to the user that RTPM is
>> enabled, bugs are likely and the user has to know what she's doing.
>
> I thought this was what EXPERT was used for:
>
> menuconfig EXPERT
> bool "Configure standard kernel features (expert users)"
> # Unhide debug options, to make the on-by-default options visible
> select DEBUG_KERNEL
> help
> This option allows certain base kernel options and settings
> to be disabled or tweaked. This is for specialized
> environments which can tolerate a "non-standard" kernel.
> Only use this if you really know what you are doing.
>
>
> But it seems that it's widely used even by people/distros who don't
> know what they are doing. :(

Yeah, people seem to just blindly enable kconfig options. I don't blame
them, there are so many options and difficult to know what to choose.

> Would it be okay if we just add a printk(KERN_ERR, ...)?

I think we at least we should do that, preferably even something else to
prevent accidental use if the feature is so fragile.

--
Kalle Valo