1. 08 4月, 2011 1 次提交
    • S
      iwlwifi: fix enqueue hcmd race conditions · 3598e177
      Stanislaw Gruszka 提交于
      We mark command as huge by using meta->flags from other (non huge) command,
      but flags can be possibly overridden, when non huge command is enqueued,
      what can lead to:
      
      WARNING: at lib/dma-debug.c:696 dma_debug_device_change+0x1a3/0x1f0()
      DMA-API: device driver has pending DMA allocations while released from device [count=1]
      
      To fix introduce additional CMD_MAPPED to mark command as mapped and
      serialize iwl_enqueue_hcmd() with iwl_tx_cmd_complete() using
      hcmd_lock. Serialization will also fix possible race conditions,
      because q->read_ptr, q->write_ptr are modified/used in parallel.
      
      On the way fix whitespace.
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Acked-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      3598e177
  2. 25 3月, 2011 1 次提交
  3. 12 3月, 2011 1 次提交
  4. 05 3月, 2011 1 次提交
    • S
      iwlwifi: avoid too frequent recover from statistics · 410f2bb3
      Stanislaw Gruszka 提交于
      Usually H/W generate statistics notify once per about 100ms, but
      sometimes we can receive notify in shorter time, even 2 ms.
      
      This can be problem for plcp health and ack health checking.
      
      I.e. with 2 plcp errors happens randomly in 2 ms duration, we
      exceed plcp delta threshold equal to 100 (2*100/2).
      
      Also checking ack's in short time, can results not necessary false
      positive and firmware reset, for example when channel is noised and
      we do not receive ACKs frames or when remote device does not send
      ACKs at the moment.
      
      Patch change code to do statistic check and possible recovery only
      if 99ms elapsed from last check. Forced delay should assure we have
      good statistic data to estimate hardware state.
      Signed-off-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Acked-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      410f2bb3
  5. 22 2月, 2011 4 次提交
  6. 01 2月, 2011 2 次提交
  7. 29 1月, 2011 1 次提交
  8. 22 1月, 2011 3 次提交
  9. 14 12月, 2010 1 次提交
  10. 07 12月, 2010 1 次提交
  11. 16 11月, 2010 3 次提交
  12. 15 10月, 2010 1 次提交
  13. 08 10月, 2010 3 次提交
  14. 29 9月, 2010 1 次提交
    • S
      iwlwifi: send DC calib config to runtime ucode · 6d6a1afd
      Shanyu Zhao 提交于
      Since uCode is responsible for doing DC calibration, there's no need
      to let init uCode to do initial DC calibration then send results
      back to driver, then driver sends the results to runtime uCode.
      Driver can simply tell runtime uCode to do DC calibration.
      
      Actually, this patch does not disable DC calib for init uCode. It just
      prevent driver from saving and sending the DC calib results (from init
      ucode) to runtime uCode. The driver still uses 0xffffffff in
      CALIB_CFG_CMD for init ucode.
      Signed-off-by: NShanyu Zhao <shanyu.zhao@intel.com>
      Signed-off-by: NWey-Yi Guy <wey-yi.w.guy@intel.com>
      6d6a1afd
  15. 18 9月, 2010 2 次提交
  16. 11 9月, 2010 2 次提交
  17. 28 8月, 2010 12 次提交