linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* iwlwifi Microcode SW error and subsequent WARNINGs
@ 2014-05-21  6:28 Krzysztof Hałasa
  2014-05-21  7:38 ` Emmanuel Grumbach
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Hałasa @ 2014-05-21  6:28 UTC (permalink / raw)
  To: linux-wireless

Hi,

I'm having problems with an Intel Corporation Wireless 7260 (rev 6b)
adapter running in ad hoc mode. Any ideas?

The hardware is Getac F110 tablet, Core i5 Haswell. I've tried to use
Linux v. 3.13, 3.14, 3.15-rc5+ with microcode v. 22.24.8.0 and
23.214.9.0.

What I'm trying to do is:

# iwconfig wlan0 mode ad-hoc essid xxx txpower 16 channel 11
# ip link set up dev wlan0
# sleep 1
# iwconfig wlan0 mode ad-hoc essid xxx txpower 16 channel 11 rate 6M
# sleep 10
# iwconfig wlan0 mode ad-hoc essid xxx txpower 16 channel 11 rate 6M

wlan0 works in ad hoc mode after "sleep 10" and subsequent iwconfig.

0b:00.0 0280: 8086:08b1 Network controller: Intel Corporation Wireless 7260 (rev 6b)
        Subsystem: 8086:c070 Intel Corporation Dual Band Wireless-AC 7260
        Flags: bus master, fast devsel, latency 0, IRQ 59
        Memory at f1c00000 (64-bit, non-prefetchable) [size=8K]
        Capabilities: [c8] Power Management version 3
        Capabilities: [d0] MSI: Enable+ Count=1/1 Maskable- 64bit+
        Capabilities: [40] Express Endpoint, MSI 00

iwlwifi 0000:0b:00.0: irq 59 for MSI/MSI-X
iwlwifi 0000:0b:00.0: loaded firmware version 23.214.9.0 op_mode iwlmvm
iwlwifi 0000:0b:00.0: Detected Intel(R) Dual Band Wireless AC 7260, REV=0x144
iwlwifi 0000:0b:00.0: L1 Enabled; Disabling L0S
iwlwifi 0000:0b:00.0: L1 Enabled; Disabling L0S
ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
iwlwifi 0000:0b:00.0: L1 Enabled; Disabling L0S
iwlwifi 0000:0b:00.0: L1 Enabled; Disabling L0S
iwlwifi 0000:0b:00.0: Microcode SW error detected.  Restarting 0x2000000.
iwlwifi 0000:0b:00.0: CSR values:
iwlwifi 0000:0b:00.0: (2nd byte of CSR_INT_COALESCING is CSR_INT_PERIODIC_REG)
iwlwifi 0000:0b:00.0:        CSR_HW_IF_CONFIG_REG: 0X40489204
iwlwifi 0000:0b:00.0:          CSR_INT_COALESCING: 0X8000ff40
iwlwifi 0000:0b:00.0:                     CSR_INT: 0X10000000
iwlwifi 0000:0b:00.0:                CSR_INT_MASK: 0X00000000
iwlwifi 0000:0b:00.0:           CSR_FH_INT_STATUS: 0X00000000
iwlwifi 0000:0b:00.0:                 CSR_GPIO_IN: 0X00000000
iwlwifi 0000:0b:00.0:                   CSR_RESET: 0X00000000
iwlwifi 0000:0b:00.0:                CSR_GP_CNTRL: 0X080403cd
iwlwifi 0000:0b:00.0:                  CSR_HW_REV: 0X00000144
iwlwifi 0000:0b:00.0:              CSR_EEPROM_REG: 0X00000000
iwlwifi 0000:0b:00.0:               CSR_EEPROM_GP: 0X80000000
iwlwifi 0000:0b:00.0:              CSR_OTP_GP_REG: 0X803a0000
iwlwifi 0000:0b:00.0:                 CSR_GIO_REG: 0X00080042
iwlwifi 0000:0b:00.0:            CSR_GP_UCODE_REG: 0X00000000
iwlwifi 0000:0b:00.0:           CSR_GP_DRIVER_REG: 0X00000000
iwlwifi 0000:0b:00.0:           CSR_UCODE_DRV_GP1: 0X00000000
iwlwifi 0000:0b:00.0:           CSR_UCODE_DRV_GP2: 0X00000000
iwlwifi 0000:0b:00.0:                 CSR_LED_REG: 0X00000060
iwlwifi 0000:0b:00.0:        CSR_DRAM_INT_TBL_REG: 0X88032ee7
iwlwifi 0000:0b:00.0:        CSR_GIO_CHICKEN_BITS: 0X27800200
iwlwifi 0000:0b:00.0:             CSR_ANA_PLL_CFG: 0Xd55555d5
iwlwifi 0000:0b:00.0:      CSR_MONITOR_STATUS_REG: 0X3d0801bd
iwlwifi 0000:0b:00.0:           CSR_HW_REV_WA_REG: 0X0001001a
iwlwifi 0000:0b:00.0:        CSR_DBG_HPET_MEM_REG: 0Xffff0000
iwlwifi 0000:0b:00.0: FH register values:
iwlwifi 0000:0b:00.0:         FH_RSCSR_CHNL0_STTS_WPTR_REG: 0X032fbd00
iwlwifi 0000:0b:00.0:        FH_RSCSR_CHNL0_RBDCB_BASE_REG: 0X0032fbc0
iwlwifi 0000:0b:00.0:                  FH_RSCSR_CHNL0_WPTR: 0X00000018
iwlwifi 0000:0b:00.0:         FH_MEM_RCSR_CHNL0_CONFIG_REG: 0X80801114
iwlwifi 0000:0b:00.0:          FH_MEM_RSSR_SHARED_CTRL_REG: 0X000000fc
iwlwifi 0000:0b:00.0:            FH_MEM_RSSR_RX_STATUS_REG: 0X07030000
iwlwifi 0000:0b:00.0:    FH_MEM_RSSR_RX_ENABLE_ERR_IRQ2DRV: 0X00000000
iwlwifi 0000:0b:00.0:                FH_TSSR_TX_STATUS_REG: 0X07ff0001
iwlwifi 0000:0b:00.0:                 FH_TSSR_TX_ERROR_REG: 0X00000000
iwlwifi 0000:0b:00.0: Start IWL Error Log Dump:
iwlwifi 0000:0b:00.0: Status: 0x00000000, count: 6
iwlwifi 0000:0b:00.0: Loaded firmware version: 23.214.9.0
iwlwifi 0000:0b:00.0: 0x00002B00 | ADVANCED_SYSASSERT
iwlwifi 0000:0b:00.0: 0x000002F0 | uPc
iwlwifi 0000:0b:00.0: 0x00000000 | branchlink1
iwlwifi 0000:0b:00.0: 0x00000BA4 | branchlink2
iwlwifi 0000:0b:00.0: 0x000166A4 | interruptlink1
iwlwifi 0000:0b:00.0: 0x00907B64 | interruptlink2
iwlwifi 0000:0b:00.0: 0x00000002 | data1
iwlwifi 0000:0b:00.0: 0xDEADBEEF | data2
iwlwifi 0000:0b:00.0: 0xDEADBEEF | data3
iwlwifi 0000:0b:00.0: 0x00309CDE | beacon time
iwlwifi 0000:0b:00.0: 0x000F6320 | tsf low
iwlwifi 0000:0b:00.0: 0x00000000 | tsf hi
iwlwifi 0000:0b:00.0: 0x00000000 | time gp1
iwlwifi 0000:0b:00.0: 0x000F6321 | time gp2
iwlwifi 0000:0b:00.0: 0x00000000 | time gp3
iwlwifi 0000:0b:00.0: 0x000417D6 | uCode version
iwlwifi 0000:0b:00.0: 0x00000144 | hw version
iwlwifi 0000:0b:00.0: 0x40489204 | board version
iwlwifi 0000:0b:00.0: 0x091C0019 | hcmd
iwlwifi 0000:0b:00.0: 0x00022080 | isr0
iwlwifi 0000:0b:00.0: 0x00000000 | isr1
iwlwifi 0000:0b:00.0: 0x00000002 | isr2
iwlwifi 0000:0b:00.0: 0x004000C0 | isr3
iwlwifi 0000:0b:00.0: 0x00000001 | isr4
iwlwifi 0000:0b:00.0: 0x01000112 | isr_pref
iwlwifi 0000:0b:00.0: 0x00000000 | wait_event
iwlwifi 0000:0b:00.0: 0x00003FC5 | l2p_control
iwlwifi 0000:0b:00.0: 0x00000000 | l2p_duration
iwlwifi 0000:0b:00.0: 0x00000000 | l2p_mhvalid
iwlwifi 0000:0b:00.0: 0x00000000 | l2p_addr_match
iwlwifi 0000:0b:00.0: 0x00000007 | lmpm_pmg_sel
iwlwifi 0000:0b:00.0: 0x18051651 | timestamp
iwlwifi 0000:0b:00.0: 0x00001828 | flow_handler
ieee80211 phy0: Hardware restart was requested
iwlwifi 0000:0b:00.0: FW error in SYNC CMD REMOVE_STA
CPU: 3 PID: 805 Comm: iwconfig Not tainted 3.15.0-rc5+ #37
Hardware name: GETAC            F110/F110, BIOS R1.04.070520 01/02/2014
 00000000 00000000 cad77ca8 c13e04c0 fffffffb cad77cf0 f8609557 f2d71064
 00000000 00000000 f860dbdd f883cce7 00000000 0000001c c028de88 00000000
 c034b240 c1062b40 cad77cdc cad77cdc cad77d1c 00000019 cad77d40 cad77d14
Call Trace:
 [<c13e04c0>] dump_stack+0x41/0x52
 [<f8609557>] iwl_trans_pcie_send_hcmd+0x497/0x4b0 [iwlwifi]
 [<c1062b40>] ? __wake_up_sync+0x20/0x20
 [<f882d3db>] iwl_mvm_send_cmd+0x2b/0xb0 [iwlmvm]
 [<f8837e10>] ? iwl_mvm_bt_coex_reduced_txp+0xf0/0xf0 [iwlmvm]
 [<c13ca7bb>] ? __iterate_active_interfaces+0x8b/0xe0
 [<f882d49a>] iwl_mvm_send_cmd_pdu+0x3a/0x50 [iwlmvm]
 [<f88309ff>] iwl_mvm_rm_sta_common+0x3f/0xa0 [iwlmvm]
 [<f8831701>] iwl_mvm_send_rm_bcast_sta+0x11/0x40 [iwlmvm]
 [<f882971d>] iwl_mvm_stop_ap_ibss+0x6d/0xa0 [iwlmvm]
 [<c13b64c4>] ieee80211_ibss_disconnect+0x184/0x1e0
 [<c1099bd8>] ? lru_cache_add+0x8/0x10
 [<c10b319e>] ? page_add_new_anon_rmap+0x8e/0x100
 [<c13b73cd>] ieee80211_ibss_leave+0xd/0x80
 [<c13be3fe>] ieee80211_leave_ibss+0xe/0x10
 [<c13a28a5>] __cfg80211_leave_ibss+0x25/0x50
 [<c13a2d87>] cfg80211_ibss_wext_siwessid+0xd7/0x130
 [<c13a747b>] cfg80211_wext_siwessid+0x4b/0x60
 [<c13a8cc1>] ioctl_standard_call+0x131/0x380
 [<c130ddd1>] ? dev_get_by_name_rcu+0x51/0x70
 [<c13a910b>] wext_handle_ioctl+0x13b/0x190
 [<c13a7430>] ? cfg80211_wext_giwessid+0x70/0x70
 [<c1324aee>] dev_ioctl+0x25e/0x4d0
 [<c10a8845>] ? tlb_flush_mmu_free+0x25/0x40
 [<c12fee4e>] sock_ioctl+0x12e/0x250
 [<c12fed20>] ? ___sys_recvmsg.part.38+0x190/0x190
 [<c10cfe42>] do_vfs_ioctl+0x302/0x4e0
 [<c10b01fe>] ? do_munmap+0x21e/0x2c0
 [<c10d0058>] SyS_ioctl+0x38/0x70
 [<c13e564a>] sysenter_do_call+0x12/0x26
iwlwifi 0000:0b:00.0: Failed to remove station. Id=2
iwlwifi 0000:0b:00.0: Failed sending remove station
------------[ cut here ]------------
WARNING: CPU: 3 PID: 805 at /home/khalasa/src/linux-stable/drivers/net/wireless/iwlwifi/mvm/binding.c:201 iwl_mvm_binding_remove_vif+0x87/0x90 [iwlmvm]()
Modules linked in: hid_multitouch i2c_i801 e1000e ptp iwlmvm pps_core i915 iwlwifi cfbfillrect cfbimgblt intel_gtt i2c_algo_bit cfbcopyarea drm_kms_helper drm battery ac button
CPU: 3 PID: 805 Comm: iwconfig Not tainted 3.15.0-rc5+ #37
Hardware name: GETAC            F110/F110, BIOS R1.04.070520 01/02/2014
 00000000 00000000 cad77d30 c13e04c0 00000000 cad77d60 c1034e64 c149c288
 00000003 00000325 f883c124 000000c9 f8830307 f8830307 c0265b8c c0265b8c
 c0146d60 cad77d70 c1034efd 00000009 00000000 cad77d90 f8830307 cad77d90
Call Trace:
 [<c13e04c0>] dump_stack+0x41/0x52
 [<c1034e64>] warn_slowpath_common+0x74/0x90
 [<f8830307>] ? iwl_mvm_binding_remove_vif+0x87/0x90 [iwlmvm]
 [<f8830307>] ? iwl_mvm_binding_remove_vif+0x87/0x90 [iwlmvm]
 [<c1034efd>] warn_slowpath_null+0x1d/0x20
 [<f8830307>] iwl_mvm_binding_remove_vif+0x87/0x90 [iwlmvm]
 [<f883171a>] ? iwl_mvm_send_rm_bcast_sta+0x2a/0x40 [iwlmvm]
 [<f8829726>] iwl_mvm_stop_ap_ibss+0x76/0xa0 [iwlmvm]
 [<c13b64c4>] ieee80211_ibss_disconnect+0x184/0x1e0
 [<c1099bd8>] ? lru_cache_add+0x8/0x10
 [<c10b319e>] ? page_add_new_anon_rmap+0x8e/0x100
 [<c13b73cd>] ieee80211_ibss_leave+0xd/0x80
 [<c13be3fe>] ieee80211_leave_ibss+0xe/0x10
 [<c13a28a5>] __cfg80211_leave_ibss+0x25/0x50
 [<c13a2d87>] cfg80211_ibss_wext_siwessid+0xd7/0x130
 [<c13a747b>] cfg80211_wext_siwessid+0x4b/0x60
 [<c13a8cc1>] ioctl_standard_call+0x131/0x380
 [<c130ddd1>] ? dev_get_by_name_rcu+0x51/0x70
 [<c13a910b>] wext_handle_ioctl+0x13b/0x190
 [<c13a7430>] ? cfg80211_wext_giwessid+0x70/0x70
 [<c1324aee>] dev_ioctl+0x25e/0x4d0
 [<c10a8845>] ? tlb_flush_mmu_free+0x25/0x40
 [<c12fee4e>] sock_ioctl+0x12e/0x250
 [<c12fed20>] ? ___sys_recvmsg.part.38+0x190/0x190
 [<c10cfe42>] do_vfs_ioctl+0x302/0x4e0
 [<c10b01fe>] ? do_munmap+0x21e/0x2c0
 [<c10d0058>] SyS_ioctl+0x38/0x70
 [<c13e564a>] sysenter_do_call+0x12/0x26
---[ end trace c683f56639800424 ]---
------------[ cut here ]------------
WARNING: CPU: 3 PID: 805 at /home/khalasa/src/linux-stable/drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c:1208 iwl_mvm_mac_ctxt_remove+0x13a/0x150 [iwlmvm]()
Removing inactive MAC 7c:7a:91:0d:39:96/1
Modules linked in: hid_multitouch i2c_i801 e1000e ptp iwlmvm pps_core i915 iwlwifi cfbfillrect cfbimgblt intel_gtt i2c_algo_bit cfbcopyarea drm_kms_helper drm battery ac button
CPU: 3 PID: 805 Comm: iwconfig Tainted: G        W     3.15.0-rc5+ #37
Hardware name: GETAC            F110/F110, BIOS R1.04.070520 01/02/2014
 00000000 00000000 cad77c88 c13e04c0 cad77cc8 cad77cb8 c1034e64 f883d2d8
 cad77ce4 00000325 f883be08 000004b8 f882d32a f882d32a c0265c60 c0265b8c
 c0146d60 cad77cd0 c1034eae 00000009 cad77cc8 f883d2d8 cad77ce4 cad77d90
Call Trace:
 [<c13e04c0>] dump_stack+0x41/0x52
 [<c1034e64>] warn_slowpath_common+0x74/0x90
 [<f882d32a>] ? iwl_mvm_mac_ctxt_remove+0x13a/0x150 [iwlmvm]
 [<f882d32a>] ? iwl_mvm_mac_ctxt_remove+0x13a/0x150 [iwlmvm]
 [<c1034eae>] warn_slowpath_fmt+0x2e/0x30
 [<f882d32a>] iwl_mvm_mac_ctxt_remove+0x13a/0x150 [iwlmvm]
 [<c13df01e>] ? printk+0x38/0x3a
 [<c1034dea>] ? print_oops_end_marker+0x2a/0x30
 [<c13ca7bb>] ? __iterate_active_interfaces+0x8b/0xe0
 [<f8836bc0>] ? iwl_mvm_tx_protection+0x60/0x60 [iwlmvm]
 [<c13ca822>] ? ieee80211_iterate_active_interfaces_atomic+0x12/0x20
 [<f8837316>] ? iwl_mvm_power_update_mac+0x76/0x100 [iwlmvm]
 [<f8829738>] iwl_mvm_stop_ap_ibss+0x88/0xa0 [iwlmvm]
 [<c13b64c4>] ieee80211_ibss_disconnect+0x184/0x1e0
 [<c1099bd8>] ? lru_cache_add+0x8/0x10
 [<c10b319e>] ? page_add_new_anon_rmap+0x8e/0x100
 [<c13b73cd>] ieee80211_ibss_leave+0xd/0x80
 [<c13be3fe>] ieee80211_leave_ibss+0xe/0x10
 [<c13a28a5>] __cfg80211_leave_ibss+0x25/0x50
 [<c13a2d87>] cfg80211_ibss_wext_siwessid+0xd7/0x130
 [<c13a747b>] cfg80211_wext_siwessid+0x4b/0x60
 [<c13a8cc1>] ioctl_standard_call+0x131/0x380
 [<c130ddd1>] ? dev_get_by_name_rcu+0x51/0x70
 [<c13a910b>] wext_handle_ioctl+0x13b/0x190
 [<c13a7430>] ? cfg80211_wext_giwessid+0x70/0x70
 [<c1324aee>] dev_ioctl+0x25e/0x4d0
 [<c10a8845>] ? tlb_flush_mmu_free+0x25/0x40
 [<c12fee4e>] sock_ioctl+0x12e/0x250
 [<c12fed20>] ? ___sys_recvmsg.part.38+0x190/0x190
 [<c10cfe42>] do_vfs_ioctl+0x302/0x4e0
 [<c10b01fe>] ? do_munmap+0x21e/0x2c0
 [<c10d0058>] SyS_ioctl+0x38/0x70
 [<c13e564a>] sysenter_do_call+0x12/0x26
---[ end trace c683f56639800425 ]---
iwlwifi 0000:0b:00.0: L1 Enabled; Disabling L0S
iwlwifi 0000:0b:00.0: L1 Enabled; Disabling L0S
wlan0: Creating new IBSS network, BSSID xxx
wlan0: Selected IBSS BSSID xxx based on configured SSID

-- 
Krzysztof Halasa

Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: iwlwifi Microcode SW error and subsequent WARNINGs
  2014-05-21  6:28 iwlwifi Microcode SW error and subsequent WARNINGs Krzysztof Hałasa
@ 2014-05-21  7:38 ` Emmanuel Grumbach
  2014-05-23  6:29   ` Krzysztof Hałasa
  0 siblings, 1 reply; 4+ messages in thread
From: Emmanuel Grumbach @ 2014-05-21  7:38 UTC (permalink / raw)
  To: Krzysztof Hałasa; +Cc: linux-wireless

> Hi,
>
> I'm having problems with an Intel Corporation Wireless 7260 (rev 6b)
> adapter running in ad hoc mode. Any ideas?
>
> The hardware is Getac F110 tablet, Core i5 Haswell. I've tried to use
> Linux v. 3.13, 3.14, 3.15-rc5+ with microcode v. 22.24.8.0 and
> 23.214.9.0.
>
> What I'm trying to do is:
>
> # iwconfig wlan0 mode ad-hoc essid xxx txpower 16 channel 11
> # ip link set up dev wlan0
> # sleep 1
> # iwconfig wlan0 mode ad-hoc essid xxx txpower 16 channel 11 rate 6M
> # sleep 10
> # iwconfig wlan0 mode ad-hoc essid xxx txpower 16 channel 11 rate 6M
>
> wlan0 works in ad hoc mode after "sleep 10" and subsequent iwconfig.
>

Please use iw instead of iwconfig. If it reproduces with iw, please
reprdoduce with debug=0xf. Or even better while tracing:
As root:
trace-cmd record -e cfg80211 -e mac80211 -e iwlwifi
and then send me the trace.dat file that it will create.

thanks.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: iwlwifi Microcode SW error and subsequent WARNINGs
  2014-05-21  7:38 ` Emmanuel Grumbach
@ 2014-05-23  6:29   ` Krzysztof Hałasa
  2014-05-26 11:13     ` Krzysztof Hałasa
  0 siblings, 1 reply; 4+ messages in thread
From: Krzysztof Hałasa @ 2014-05-23  6:29 UTC (permalink / raw)
  To: Emmanuel Grumbach; +Cc: linux-wireless

Emmanuel Grumbach <egrumbach@gmail.com> writes:

> Please use iw instead of iwconfig. If it reproduces with iw, please
> reprdoduce with debug=0xf.

This problem doesn't show up with iw:

# iw wlan0 set type ibss
# ip link set up wlan0
# iw wlan0 set bitrates legacy-2.4 6
# iw wlan0 ibss join XXX 2462

However, the card doesn't join the ad hoc network. It creates a new IBSS
instead.

Repeating:
# iw wlan0 ibss leave
# iw wlan0 ibss join XXX 2462
doesn't fix it, the card comes with a new IBSS (almost) each time.

# ip link set wlan0 down
# ip link set wlan0 up
# iw wlan0 ibss join XXX 2462
doesn't fix it either.

It seems that after some time (scan interval?) the join command starts
to work - it manages to see the old existing IBSS. It doesn't
automatically join, though - I have to re-issue the join command.

I did:
insmod iwlwifi debug=65535
and the initial dmesg differences between "bad" (new IBSS) and "good"
(joining existing IBSS) are:

--- bad
+++ good
 I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command POWER_TABLE_CMD
 U iwl_mvm_up RT uCode started.
 I iwl_mvm_prepare_multicast mcast addr (0): 01:00:5e:00:00:01

The bad case: too early to scan for other BSSIDs (net/mac80211/ibss.c):
-wlan0: Creating new IBSS network, BSSID 7e:16:f5:00:11:d2
-U iwl_mvm_add_chanctx Add channel context
-U iwl_pcie_send_hcmd_sync Attempting to send sync command PHY_CONTEXT_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command PHY_CONTEXT_CMD
-I iwl_pcie_enqueue_hcmd Sending command PHY_CONTEXT_CMD (#8), seq: 0x091A, 40 bytes at 26[26]:9
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command PHY_CONTEXT_CMD
-U iwl_pcie_send_hcmd_sync Attempting to send sync command PHY_CONTEXT_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command PHY_CONTEXT_CMD
-I iwl_pcie_enqueue_hcmd Sending command PHY_CONTEXT_CMD (#8), seq: 0x091B, 40 bytes at 27[27]:9
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command PHY_CONTEXT_CMD
-U iwl_mvm_bt_udpate_ctrl_kill_msk Update kill_msk: 0 - SCO inactive A2DP inactive SNIFF inactive
-I iwl_pcie_enqueue_hcmd Sending command BEACON_TEMPLATE_CMD (#91), seq: 0x091C, 149 bytes at 28[28]:9
-U iwl_pcie_send_hcmd_sync Attempting to send sync command MAC_CONTEXT_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command MAC_CONTEXT_CMD
-I iwl_pcie_enqueue_hcmd Sending command MAC_CONTEXT_CMD (#28), seq: 0x091D, 152 bytes at 29[29]:9
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command MAC_CONTEXT_CMD
-I iwl_pcie_enqueue_hcmd Sending command REPLY_SF_CFG_CMD (#d1), seq: 0x091E, 96 bytes at 30[30]:9
-U iwl_pcie_send_hcmd_sync Attempting to send sync command BINDING_CONTEXT_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command BINDING_CONTEXT_CMD
-I iwl_pcie_enqueue_hcmd Sending command BINDING_CONTEXT_CMD (#2b), seq: 0x091F, 28 bytes at 31[31]:9
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command BINDING_CONTEXT_CMD
-U iwl_pcie_send_hcmd_sync Attempting to send sync command ADD_STA
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command ADD_STA
-I iwl_pcie_enqueue_hcmd Sending command ADD_STA (#18), seq: 0x0920, 48 bytes at 32[0]:9
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command ADD_STA
-U iwl_mvm_add_int_sta_common Internal station added.
-U iwl_pcie_send_hcmd_sync Attempting to send sync command TIME_QUOTA_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command TIME_QUOTA_CMD
-I iwl_pcie_enqueue_hcmd Sending command TIME_QUOTA_CMD (#2c), seq: 0x0921, 52 bytes at 33[1]:9
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command TIME_QUOTA_CMD
-U iwl_mvm_bt_udpate_ctrl_kill_msk Update kill_msk: 0 - SCO inactive A2DP inactive SNIFF inactive
-U iwl_pcie_send_hcmd_sync Attempting to send sync command MAC_CONTEXT_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command MAC_CONTEXT_CMD
-I iwl_pcie_enqueue_hcmd Sending command MAC_CONTEXT_CMD (#28), seq: 0x0922, 152 bytes at 34[2]:9
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command MAC_CONTEXT_CMD
-I iwl_pcie_enqueue_hcmd Sending command BEACON_TEMPLATE_CMD (#91), seq: 0x0923, 149 bytes at 35[3]:9

The good case:
+wlan0: Trigger new scan to find an IBSS to join
 U iwl_mvm_scan_request Handling mac80211 scan request
 U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
 U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD

I think the problems is somewhere here - multiple scans don't find our
existing IBSS:
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x0924, 1054 bytes at 36[4]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=13
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x0925, 1254 bytes at 37[5]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=25
-wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x0926, 1029 bytes at 38[6]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=11
-wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x0927, 1029 bytes at 39[7]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=11
-wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x0928, 1029 bytes at 40[8]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=11
-wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x0929, 1029 bytes at 41[9]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=11
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x092A, 1054 bytes at 42[10]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=13
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x092B, 1254 bytes at 43[11]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=25
-wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x092C, 1029 bytes at 44[12]:9
-U iwl_mvm_rx_scan_response Scan response received. status 0x1
-I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
-U iwl_mvm_scan_request Scan request was sent successfully
-U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=11
-wlan0: No active IBSS STAs - trying to scan for other IBSS networks with same SSID (merge)
-U iwl_mvm_scan_request Handling mac80211 scan request
-U iwl_pcie_send_hcmd_sync Attempting to send sync command SCAN_REQUEST_CMD
-U iwl_pcie_send_hcmd_sync Setting HCMD_ACTIVE for command SCAN_REQUEST_CMD
-I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x092D, 1029 bytes at 45[13]:9
+I iwl_pcie_enqueue_hcmd Sending command SCAN_REQUEST_CMD (#80), seq: 0x091A, 1029 bytes at 26[26]:9
 U iwl_mvm_rx_scan_response Scan response received. status 0x1
 I iwl_pcie_hcmd_complete Clearing HCMD_ACTIVE for command SCAN_REQUEST_CMD
 U iwl_mvm_scan_request Scan request was sent successfully
 U iwl_mvm_rx_scan_complete Scan complete: status=0x1 scanned channels=11

When it works:
+wlan0: Selected IBSS BSSID 82:3c:82:2a:c2:90 based on configured SSID


Another issue I found in the logs today:
wlan0: Creating new IBSS network, BSSID ce:bd:57:f4:48:73
------------[ cut here ]------------
WARNING: CPU: 1 PID: 683 at net/mac80211/rate.c:249 __rate_control_send_low+0x105/0x110()
CPU: 1 PID: 683 Comm: kworker/u8:3 Not tainted 3.15.0-rc5+ #42
Hardware name: GETAC            F110/F110, BIOS R1.04.070520 01/02/2014
Workqueue: phy0 ieee80211_iface_work
 00000000 00000000 f2d9fbd8 c13e04c0 00000000 f2d9fc08 c1034e64 c149c288
 00000001 000002ab c14ed3d4 000000f9 c13baa35 c13baa35 00000000 00000010
 00000001 f2d9fc18 c1034efd 00000009 00000000 f2d9fc3c c13baa35 cb178360
Call Trace:
 [<c13e04c0>] dump_stack+0x41/0x52
 [<c1034e64>] warn_slowpath_common+0x74/0x90
 [<c13baa35>] ? __rate_control_send_low+0x105/0x110
 [<c13baa35>] ? __rate_control_send_low+0x105/0x110
 [<c1034efd>] warn_slowpath_null+0x1d/0x20
 [<c13baa35>] __rate_control_send_low+0x105/0x110
 [<c13bab77>] rate_control_send_low+0x47/0x110
 [<f8588771>] rs_get_rate+0x41/0xd0 [iwlmvm]
 [<c13bb525>] rate_control_get_rate+0xa5/0xe0
 [<c13c66a4>] invoke_tx_handlers+0x724/0x1380
 [<c13e4ae3>] ? _raw_spin_unlock_bh+0x13/0x20
 [<c138c226>] ? cfg80211_put_bss+0x36/0x60
 [<c13b0332>] ? ieee80211_rx_bss_put+0x12/0x20
 [<c13b5e01>] ? ieee80211_rx_mgmt_probe_beacon+0x261/0x6b0
 [<c13c7b9e>] ieee80211_tx+0x5e/0xd0
 [<c13c81e1>] ieee80211_xmit+0x81/0xb0
 [<c13c8fc5>] __ieee80211_tx_skb_tid_band+0x55/0x70
 [<c13cc34a>] ieee80211_send_auth+0x12a/0x190
 [<c13b6c57>] ieee80211_ibss_rx_queued_mgmt+0x3a7/0x3f0
 [<c10592c4>] ? sched_clock_cpu+0x104/0x110
 [<c105e464>] ? pick_next_task_fair+0x234/0x3d0
 [<c1305b90>] ? skb_dequeue+0x40/0x60
 [<c13b864a>] ieee80211_iface_work+0x22a/0x300
 [<c1047691>] process_one_work+0xd1/0x2f0
 [<c1048159>] worker_thread+0xf9/0x330
 [<c1048060>] ? manage_workers.isra.30+0x250/0x250
 [<c104c9cc>] kthread+0x9c/0xb0
 [<c13e55c1>] ret_from_kernel_thread+0x21/0x30
 [<c104c930>] ? kthread_create_on_node+0x100/0x100
---[ end trace a3876c6586762df6 ]---
wlan0: Selected IBSS BSSID 6e:f7:6f:75:67:57 based on configured SSID

Thanks for looking at this.
-- 
Krzysztof Halasa

Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: iwlwifi Microcode SW error and subsequent WARNINGs
  2014-05-23  6:29   ` Krzysztof Hałasa
@ 2014-05-26 11:13     ` Krzysztof Hałasa
  0 siblings, 0 replies; 4+ messages in thread
From: Krzysztof Hałasa @ 2014-05-26 11:13 UTC (permalink / raw)
  To: Emmanuel Grumbach; +Cc: linux-wireless

khalasa@piap.pl (Krzysztof Hałasa) writes:

> However, the card doesn't join the ad hoc network. It creates a new IBSS
> instead.

This seems to be caused by uninitialized sdata->u.ibss.last_scan_completed.

I'll post a patch to net/mac80211/ibss.c.
-- 
Krzysztof Halasa

Research Institute for Automation and Measurements PIAP
Al. Jerozolimskie 202, 02-486 Warsaw, Poland

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-05-26 11:17 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-21  6:28 iwlwifi Microcode SW error and subsequent WARNINGs Krzysztof Hałasa
2014-05-21  7:38 ` Emmanuel Grumbach
2014-05-23  6:29   ` Krzysztof Hałasa
2014-05-26 11:13     ` Krzysztof Hałasa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).