1. 19 3月, 2014 1 次提交
    • E
      iwlwifi: mvm: send udev event upon firmware error to dump logs · 1bd3cbc1
      Emmanuel Grumbach 提交于
      When the firmware asserts, the driver will dump the firmware
      state to an internal buffer. This buffer is kept aside until
      it is dumped through debugfs. Once an external application
      fetched the data, the buffer is freed and a new buffer can
      be allocated in case another assert occurs.
      
      A udev event is sent to trigger an external application.
      
      A simple rule like:
      DRIVER=="iwlwifi", ACTION=="change", RUN+="/sbin/dump_sram.sh"
      
      can fetch the data from debugfs.
      
      Here is my dump_sram.sh:
      
      phyname=$(basename ${DEVPATH})
      date=$(date +%F_%H_%M)
      filename=/var/log/iwl-sram-${phyname}-${date}.bin
      cat /sys/kernel/debug/ieee80211/${phyname}/iwlwifi/iwlmvm/fw_error_dump > ${filename}
      
      The current SRAM size is 80KB so, currently:
      $ ls -lh iwl-sram-phy0-2014-03-16_13_14.bin
      -rw-r--r-- 1 emmanuel emmanuel 81K Mar 16 13:15 iwl-sram-phy0-2014-03-16_13_14.bin
      
      and after compression:
      $ ls -lh iwl-sram-phy0-2014-03-16_13_14.bin.xz
      -rw-r--r-- 1 emmanuel emmanuel 13K Mar 16 13:15 iwl-sram-phy0-2014-03-16_13_14.bin.xz
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      1bd3cbc1
  2. 16 3月, 2014 3 次提交
  3. 10 3月, 2014 3 次提交
  4. 20 2月, 2014 1 次提交
  5. 13 2月, 2014 3 次提交
  6. 07 2月, 2014 1 次提交
  7. 04 2月, 2014 16 次提交
  8. 31 1月, 2014 1 次提交
  9. 14 1月, 2014 4 次提交
  10. 01 1月, 2014 4 次提交
  11. 18 12月, 2013 3 次提交
    • I
      iwlwifi: mvm: Do not allow AP MAC context update if not active · be2056fc
      Ilan Peer 提交于
      Fix a regression introduced in "iwlwifi: mvm: fix ht protection flags"
      where an AP/IBSS MAC context could have been updated even before the
      context was added to the FW. This fix avoids the following warning:
      
      WARNING: ... at .../drivers/net/wireless/iwlwifi/mvm/mac-ctxt.c:1132
          iwl_mvm_mac_ctxt_changed+0x75/0x90 [iwlmvm]()
      Changing inactive MAC 0c:8b:fd:01:1a:30/3
      Modules linked in: [...]
      Call Trace:
      [<c16041fd>] dump_stack+0x41/0x52
      [<c1041074>] warn_slowpath_common+0x84/0xa0
      [<f80d8f45>] ? iwl_mvm_mac_ctxt_changed+0x75/0x90 [iwlmvm]
      [<f80d8f45>] ? iwl_mvm_mac_ctxt_changed+0x75/0x90 [iwlmvm]
      [<c1041133>] warn_slowpath_fmt+0x33/0x40
      [<f80d8f45>] iwl_mvm_mac_ctxt_changed+0x75/0x90 [iwlmvm]
      [<f80d517a>] iwl_mvm_bss_info_changed+0x22a/0x4b0 [iwlmvm]
      [<c160831d>] ? mutex_unlock+0xd/0x10
      [<f80d4678>] ? iwl_mvm_configure_filter+0x58/0x70 [iwlmvm]
      [<f80d4f50>] ? iwl_mvm_mac_tx+0xc0/0xc0 [iwlmvm]
      [<f8132d83>] ieee80211_bss_info_change_notify+0xa3/0x1d0 [mac80211]
      [<f8149247>] ? ieee80211_del_virtual_monitor+0x127/0x1f0 [mac80211]
      [<f8149cac>] ieee80211_do_open+0x12c/0xeb0 [mac80211]
      [<c106c6de>] ? __raw_notifier_call_chain+0x1e/0x30
      [<c106c70f>] ? raw_notifier_call_chain+0x1f/0x30
      [<f814aa8d>] ieee80211_open+0x5d/0x60 [mac80211]
      [<c1500c7b>] __dev_open+0xab/0x140
      [<c160b39a>] ? _raw_spin_unlock_bh+0x2a/0x30
      [<c1500f41>] __dev_change_flags+0x81/0x160
      [<c10ab6fc>] ? __lock_is_held+0x3c/0x60
      [<c15010d1>] dev_change_flags+0x21/0x60
      Signed-off-by: NIlan Peer <ilan.peer@intel.com>
      Reported-by: NJohannes Berg <johannes.berg@intel.com>
      Reviewed-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      be2056fc
    • A
      iwlwifi: trans: divide stop_hw into stop_device/op_mode_leave · a4082843
      Arik Nemtsov 提交于
      The stop_hw trans callback is not well defined. It is missing in many
      cleanup flows and the division of labor between stop_device/stop_hw
      is cumbersome. Remove stop_hw and use stop_device to perform both.
      Implement this for all current transports.
      
      PCIE needs some extra configuration the op-mode is leaving to configure
      RF kill. Expose this explicitly as a new op_mode_leave trans callback.
      Take the call to stop_device outside iwl_run_mvm_init_ucode, this
      makes more sense and WARN when we want to run the INIT firmware while
      it has run already.
      Signed-off-by: NArik Nemtsov <arik@wizery.com>
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      a4082843
    • E
      iwlwifi: mvm: configure phy_ctxt with min_def · dcbc3e1a
      Eliad Peller 提交于
      Configure the phy context to the minimum required
      bandwidth, given by ctx->min_def.
      
      Tuning to a narrower bandwidth should reduce the
      noise level and consume less power.
      Signed-off-by: NEliad Peller <eliad@wizery.com>
      Reviewed-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      dcbc3e1a