Re: iwlwifi/iwlmvm dies on resume when rfkill is set

2015-06-02 Thread Coelho, Luciano
On Mon, 2015-06-01 at 23:30 +, Grumbach, Emmanuel wrote:
 On Mon, 2015-06-01 at 15:51 -0700, Andy Lutomirski wrote:
  If I switch my laptop into airplane mode (hardware switch) and then
  suspend and resume, my wireless is dead on resume and it spews all
  over the kernel log (see below).  I can rescue it by switching
  airplane mode off and then suspending and resuming again.
  
 
 This one is tracked here:
 https://bugzilla.kernel.org/show_bug.cgi?id=98591
 
 
  This problem has existed on all kernel versions I've tried, although I
  haven't tried a 4.0 kernel yet.
  
 
 This is a tricky HW timing issues which (as you can imagine) we can't
 reproduce internally.
 You seem to have a LENOVO whereas the submitted of the bugzilla above
 has some other OEM.
 We are currently checking with our System people (who know the HW) how
 we should address that.

Right, I'm investigating this.  The problem seems to be a quick toggle
of the rfkill interrupt that may be caused by the way we reset the
device when resuming.  I have involved our System and HW people and I'll
let you know how it is going as soon as I have more info.

Thanks for reporting!

--
Luca.
N�r��yb�X��ǧv�^�)޺{.n�+{��*ޕ�,�{ay�ʇڙ�,j��f���h���z��w���
���j:+v���w�j�mzZ+�ݢj��!�i

iwlwifi/iwlmvm dies on resume when rfkill is set

2015-06-01 Thread Andy Lutomirski
If I switch my laptop into airplane mode (hardware switch) and then
suspend and resume, my wireless is dead on resume and it spews all
over the kernel log (see below).  I can rescue it by switching
airplane mode off and then suspending and resuming again.

This problem has existed on all kernel versions I've tried, although I
haven't tried a 4.0 kernel yet.

--Andy

[70699.024982] iwlwifi :03:00.0: RF_KILL bit toggled to enable radio.
[70699.036852] iwlwifi :03:00.0: L1 Enabled - LTR Disabled
[70699.095638] iwlwifi :03:00.0: L1 Enabled - LTR Disabled
[70699.188983] [ cut here ]
[70699.189002] WARNING: CPU: 1 PID: 910 at
drivers/net/wireless/iwlwifi/pcie/trans.c:1361
iwl_trans_pcie_grab_nic_access+0x128/0x140 [iwlwifi]()
[70699.189004] Timeout waiting for hardware access (CSR_GP_CNTRL 0x080003dc)
[70699.189005] Modules linked in: nfnetlink_queue nfnetlink_log
nfnetlink rfcomm vfat fat uas usb_storage fuse ccm xt_CHECKSUM
iptable_mangle bridge stp llc tun ip6t_REJECT nf_reject_ipv6
nf_conntrack_ipv6 nf_defrag_ipv6 ipt_MASQUERADE nf_nat_masquerade_ipv4
iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_nat_ipv4
ip6table_filter nf_nat bnep nf_conntrack ip6_tables arc4 intel_rapl
iosf_mbi iTCO_wdt x86_pkg_temp_thermal iTCO_vendor_support coretemp
kvm_intel btusb snd_hda_codec_hdmi kvm iwlmvm bluetooth
snd_hda_codec_conexant snd_hda_codec_generic mac80211 snd_hda_intel
snd_hda_controller snd_hda_codec iwlwifi snd_hwdep snd_seq
snd_seq_device snd_pcm joydev cfg80211 serio_raw sdhci_pci i2c_i801
sdhci thinkpad_acpi mmc_core snd_timer tpm_tis wmi mei_me rfkill tpm
mei snd lpc_ich shpchp soundcore
[70699.189040]  mfd_core nfsd auth_rpcgss nfs_acl lockd grace sunrpc
binfmt_misc dm_crypt i915 crct10dif_pclmul crc32_pclmul crc32c_intel
e1000e i2c_algo_bit drm_kms_helper ghash_clmulni_intel drm ptp
pps_core video
[70699.189054] CPU: 1 PID: 910 Comm: NetworkManager Not tainted
3.19.7-200.fc21.x86_64 #1
[70699.189055] Hardware name: LENOVO 4286CTO/4286CTO, BIOS 8DET69WW
(1.39 ) 07/18/2013
[70699.189057]   e8df4a59 8800d66972e8
8176f1f7
[70699.189060]   8800d6697340 8800d6697328
8109bc1a
[70699.189062]  8800d6697380 8800d6698000 
8800d669bc30
[70699.189065] Call Trace:
[70699.189072]  [8176f1f7] dump_stack+0x45/0x57
[70699.189077]  [8109bc1a] warn_slowpath_common+0x8a/0xc0
[70699.189080]  [8109bca5] warn_slowpath_fmt+0x55/0x70
[70699.189085]  [813a3248] ? delay_tsc+0x48/0x80
[70699.189092]  [a046da78]
iwl_trans_pcie_grab_nic_access+0x128/0x140 [iwlwifi]
[70699.189098]  [a04604ce] iwl_set_bits_mask_prph+0x3e/0xa0 [iwlwifi]
[70699.189103]  [a046cce3] iwl_pcie_set_pwr+0x43/0x70 [iwlwifi]
[70699.189108]  [a046edec]
iwl_trans_pcie_start_fw+0xec/0x710 [iwlwifi]
[70699.189115]  [a0639266]
iwl_mvm_load_ucode_wait_alive+0x106/0x300 [iwlmvm]
[70699.189119]  [a0639000] ? 0xa0639000
[70699.189125]  [a06399bc] iwl_mvm_up+0x6c/0x460 [iwlmvm]
[70699.189131]  [a063e5cc] __iwl_mvm_mac_start+0x2c/0x370 [iwlmvm]
[70699.189135]  [816dca28] ? ip_mc_up+0x48/0x80
[70699.189140]  [a063e938] iwl_mvm_mac_start+0x28/0x40 [iwlmvm]
[70699.189155]  [a04ed1c1] ieee80211_do_open+0x311/0xda0 [mac80211]
[70699.189167]  [a04edcc1] ieee80211_open+0x71/0x80 [mac80211]
[70699.189171]  [8165e03e] __dev_open+0xce/0x150
[70699.189175]  [8165e381] __dev_change_flags+0xa1/0x170
[70699.189178]  [8165e479] dev_change_flags+0x29/0x70
[70699.189181]  [813b1491] ? list_del+0x11/0x40
[70699.189185]  [8166e0ef] do_setlink+0x39f/0xb70
[70699.189189]  [811bc230] ? zone_statistics+0x80/0xa0
[70699.189192]  [811bc230] ? zone_statistics+0x80/0xa0
[70699.189195]  [813c1252] ? nla_parse+0x32/0x120
[70699.189198]  [8166effd] rtnl_newlink+0x5fd/0x7a0
[70699.189203]  [8131f2c8] ? security_capable+0x18/0x20
[70699.189206]  [810a413d] ? ns_capable+0x2d/0x60
[70699.189209]  [8166b011] rtnetlink_rcv_msg+0xa1/0x260
[70699.189212]  [8168b07d] ? __netlink_lookup+0x4d/0x70
[70699.189215]  [8166af70] ? rtnetlink_rcv+0x40/0x40
[70699.189217]  [8168f0e9] netlink_rcv_skb+0xb9/0xe0
[70699.189220]  [8166af5c] rtnetlink_rcv+0x2c/0x40
[70699.189222]  [8168e7fd] netlink_unicast+0x12d/0x1c0
[70699.189225]  [8168ebb0] netlink_sendmsg+0x320/0x680
[70699.189227]  [81322712] ? sock_has_perm+0x72/0x90
[70699.189231]  [8163f47c] do_sock_sendmsg+0x9c/0x110
[70699.189235]  [8163edec] ? copy_msghdr_from_user+0x15c/0x210
[70699.189238]  [8163fac0] ___sys_sendmsg+0x330/0x340
[70699.189241]  [811ca250] ? tlb_flush_mmu_free+0x40/0x60
[70699.189244]  [811caf8c] ? tlb_finish_mmu+0x1c/0x50
[70699.189247]  [81238bb5] ? __fget_light+0x25/0x70

Re: iwlwifi/iwlmvm dies on resume when rfkill is set

2015-06-01 Thread Grumbach, Emmanuel
On Mon, 2015-06-01 at 15:51 -0700, Andy Lutomirski wrote:
 If I switch my laptop into airplane mode (hardware switch) and then
 suspend and resume, my wireless is dead on resume and it spews all
 over the kernel log (see below).  I can rescue it by switching
 airplane mode off and then suspending and resuming again.
 

This one is tracked here:
https://bugzilla.kernel.org/show_bug.cgi?id=98591


 This problem has existed on all kernel versions I've tried, although I
 haven't tried a 4.0 kernel yet.
 

This is a tricky HW timing issues which (as you can imagine) we can't
reproduce internally.
You seem to have a LENOVO whereas the submitted of the bugzilla above
has some other OEM.
We are currently checking with our System people (who know the HW) how
we should address that.

 --Andy
 
 [70699.024982] iwlwifi :03:00.0: RF_KILL bit toggled to enable radio.
 [70699.036852] iwlwifi :03:00.0: L1 Enabled - LTR Disabled
 [70699.095638] iwlwifi :03:00.0: L1 Enabled - LTR Disabled
 [70699.188983] [ cut here ]
 [70699.189002] WARNING: CPU: 1 PID: 910 at
 drivers/net/wireless/iwlwifi/pcie/trans.c:1361
 iwl_trans_pcie_grab_nic_access+0x128/0x140 [iwlwifi]()
 [70699.189004] Timeout waiting for hardware access (CSR_GP_CNTRL 0x080003dc)
 [70699.189005] Modules linked in: nfnetlink_queue nfnetlink_log
 nfnetlink rfcomm vfat fat uas usb_storage fuse ccm xt_CHECKSUM
 iptable_mangle bridge stp llc tun ip6t_REJECT nf_reject_ipv6
 nf_conntrack_ipv6 nf_defrag_ipv6 ipt_MASQUERADE nf_nat_masquerade_ipv4
 iptable_nat nf_conntrack_ipv4 nf_defrag_ipv4 xt_conntrack nf_nat_ipv4
 ip6table_filter nf_nat bnep nf_conntrack ip6_tables arc4 intel_rapl
 iosf_mbi iTCO_wdt x86_pkg_temp_thermal iTCO_vendor_support coretemp
 kvm_intel btusb snd_hda_codec_hdmi kvm iwlmvm bluetooth
 snd_hda_codec_conexant snd_hda_codec_generic mac80211 snd_hda_intel
 snd_hda_controller snd_hda_codec iwlwifi snd_hwdep snd_seq
 snd_seq_device snd_pcm joydev cfg80211 serio_raw sdhci_pci i2c_i801
 sdhci thinkpad_acpi mmc_core snd_timer tpm_tis wmi mei_me rfkill tpm
 mei snd lpc_ich shpchp soundcore
 [70699.189040]  mfd_core nfsd auth_rpcgss nfs_acl lockd grace sunrpc
 binfmt_misc dm_crypt i915 crct10dif_pclmul crc32_pclmul crc32c_intel
 e1000e i2c_algo_bit drm_kms_helper ghash_clmulni_intel drm ptp
 pps_core video
 [70699.189054] CPU: 1 PID: 910 Comm: NetworkManager Not tainted
 3.19.7-200.fc21.x86_64 #1
 [70699.189055] Hardware name: LENOVO 4286CTO/4286CTO, BIOS 8DET69WW
 (1.39 ) 07/18/2013
 [70699.189057]   e8df4a59 8800d66972e8
 8176f1f7
 [70699.189060]   8800d6697340 8800d6697328
 8109bc1a
 [70699.189062]  8800d6697380 8800d6698000 
 8800d669bc30
 [70699.189065] Call Trace:
 [70699.189072]  [8176f1f7] dump_stack+0x45/0x57
 [70699.189077]  [8109bc1a] warn_slowpath_common+0x8a/0xc0
 [70699.189080]  [8109bca5] warn_slowpath_fmt+0x55/0x70
 [70699.189085]  [813a3248] ? delay_tsc+0x48/0x80
 [70699.189092]  [a046da78]
 iwl_trans_pcie_grab_nic_access+0x128/0x140 [iwlwifi]
 [70699.189098]  [a04604ce] iwl_set_bits_mask_prph+0x3e/0xa0 
 [iwlwifi]
 [70699.189103]  [a046cce3] iwl_pcie_set_pwr+0x43/0x70 [iwlwifi]
 [70699.189108]  [a046edec]
 iwl_trans_pcie_start_fw+0xec/0x710 [iwlwifi]
 [70699.189115]  [a0639266]
 iwl_mvm_load_ucode_wait_alive+0x106/0x300 [iwlmvm]
 [70699.189119]  [a0639000] ? 0xa0639000
 [70699.189125]  [a06399bc] iwl_mvm_up+0x6c/0x460 [iwlmvm]
 [70699.189131]  [a063e5cc] __iwl_mvm_mac_start+0x2c/0x370 [iwlmvm]
 [70699.189135]  [816dca28] ? ip_mc_up+0x48/0x80
 [70699.189140]  [a063e938] iwl_mvm_mac_start+0x28/0x40 [iwlmvm]
 [70699.189155]  [a04ed1c1] ieee80211_do_open+0x311/0xda0 [mac80211]
 [70699.189167]  [a04edcc1] ieee80211_open+0x71/0x80 [mac80211]
 [70699.189171]  [8165e03e] __dev_open+0xce/0x150
 [70699.189175]  [8165e381] __dev_change_flags+0xa1/0x170
 [70699.189178]  [8165e479] dev_change_flags+0x29/0x70
 [70699.189181]  [813b1491] ? list_del+0x11/0x40
 [70699.189185]  [8166e0ef] do_setlink+0x39f/0xb70
 [70699.189189]  [811bc230] ? zone_statistics+0x80/0xa0
 [70699.189192]  [811bc230] ? zone_statistics+0x80/0xa0
 [70699.189195]  [813c1252] ? nla_parse+0x32/0x120
 [70699.189198]  [8166effd] rtnl_newlink+0x5fd/0x7a0
 [70699.189203]  [8131f2c8] ? security_capable+0x18/0x20
 [70699.189206]  [810a413d] ? ns_capable+0x2d/0x60
 [70699.189209]  [8166b011] rtnetlink_rcv_msg+0xa1/0x260
 [70699.189212]  [8168b07d] ? __netlink_lookup+0x4d/0x70
 [70699.189215]  [8166af70] ? rtnetlink_rcv+0x40/0x40
 [70699.189217]  [8168f0e9] netlink_rcv_skb+0xb9/0xe0
 [70699.189220]  [8166af5c] rtnetlink_rcv+0x2c/0x40
 [70699.189222]  [8168e7fd] netlink_unicast+0x12d/0x1c0