1. 20 12月, 2015 2 次提交
  2. 13 12月, 2015 3 次提交
  3. 18 11月, 2015 1 次提交
  4. 05 8月, 2015 1 次提交
  5. 04 8月, 2015 6 次提交
  6. 31 7月, 2015 1 次提交
    • E
      iwlwifi: pcie: fix stuck queue detection for sleeping clients · aecdc63d
      Emmanuel Grumbach 提交于
      The stuck queue detection mechanism allows to detect queues
      that are stuck. For sleeping clients, a queue may rightfully
      be stuck: if a poor client implementation stays asleep for
      more than 10s, then we don't want to trigger recovery flows
      because of that client.
      In order to cope with this, I added a mechanism that
      monitors the state of the client: when a client goes to
      sleep, the timer of his queues is frozen. When he wakes up,
      the timer is reset to the right value so that if a client
      was awake for more than 10s and the queues are stuck, only
      then, the recovery flow will kick in.
      This is valid only on non-shared queues: A-MPDU queues.
      
      There was a bug in case we Tx to a sleeping client that has
      an empty A-MPDU queue: the timer was armed to now + 10s.
      This is bad, but pretty harmless.
      The problem is that when the client wakes up, the timer is
      modified to be now + remainder. But remainder is 0 since the
      queue was empty when that client went to sleep...
      
      Fix this by checking the state of the client before playing
      with the timer when we add a packet to an empty queue.
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      aecdc63d
  7. 28 5月, 2015 2 次提交
  8. 12 3月, 2015 2 次提交
    • E
      iwlwifi: pcie: allow the op_mode to freeze the stuck queue timer · e0b8d405
      Emmanuel Grumbach 提交于
      This allows the op_mode to let the transport know that a
      queue is currently frozen and that its timer should be
      stopped.
      When the queue is unfrozen, its timer should be set to
      expire after the remainder of the timeout has elapsed.
      This can be used when stations go to sleep. When a station
      goes to sleep, the op_mode can freeze the timer so that the
      queue will never be considered as stuck. When the station
      wakes up, the queue will be unfrozen.
      This is meant to avoid false positives that would happen if
      a buggy station goes to sleep for a very long time. In case
      we have a dedicated queue for this station (BA agreement)
      and it goes to sleep for a very long time, the queue would
      rightfully be stopped during all that time. In this case,
      the stuck queue timer could fire and that would be a false
      positive.
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      e0b8d405
    • E
      iwlwifi: pcie: speed up the Tx DMA stop flow · 36277234
      Emmanuel Grumbach 提交于
      We don't need to acquire MAC access for each access, it
      makes much more sense to keep the MAC access. This speeds
      up the Tx DMA stop flow significantly.
      Moreover, if one channel can't be stopped, stop the others
      but don't poll for them to avoid being stuck there for a
      long time.
      
      This solves a situation in which we were stuck in that flow
      for way too long with a spinlock held which led to a kernel
      panic.
      Reviewed-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      36277234
  9. 01 2月, 2015 5 次提交
  10. 22 1月, 2015 1 次提交
  11. 29 12月, 2014 1 次提交
  12. 01 12月, 2014 1 次提交
  13. 11 11月, 2014 1 次提交
    • E
      iwlwifi: pcie: introduce delay when waking up the device · 01e58a28
      Emmanuel Grumbach 提交于
      In some rare cases, the firmware can put the device to
      sleep after the driver requested the access. This is
      because the access request can take a short time to be
      propagated to the firmware.
      
      If that happens, the driver may think that it has access
      since the firmware hasn't put the device to sleep yet, but
      right after the driver's check, the firmware might put the
      device to sleep.
      
      Warn when this happens by allowing the firmware to finish
      the "put the device sleep" flow so that the driver will
      not get access to the device. This will make the issue
      visible.
      
      This still doesn't fix the race, but at least it makes
      it more visible.
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      01e58a28
  14. 14 9月, 2014 2 次提交
  15. 04 9月, 2014 6 次提交
  16. 25 6月, 2014 1 次提交
  17. 16 5月, 2014 1 次提交
  18. 13 5月, 2014 1 次提交
    • E
      iwlwifi: pcie: disable BHs in iwl_pcie_txq_check_wrptrs · d090f878
      Emmanuel Grumbach 提交于
      This fixes:
      
      =================================
      [ INFO: inconsistent lock state ]
      3.14.3+ #5 Tainted: G           O
      ---------------------------------
      inconsistent {SOFTIRQ-ON-W} -> {IN-SOFTIRQ-W} usage.
      swapper/3/0 [HC0[0]:SC1[3]:HE1:SE0] takes:
       (&(&txq->lock)->rlock){+.?...}, at: [<ffffffffa059803c>] iwl_pcie_enqueue_hcmd+0x12c/0x1000 [iwlwifi]
      {SOFTIRQ-ON-W} state was registered at:
        [<ffffffff810d9071>] __lock_acquire+0x5f1/0x13b0
        [<ffffffff810d9ee0>] lock_acquire+0xb0/0x1f0
        [<ffffffff817ef80e>] _raw_spin_lock+0x3e/0x80
        [<ffffffffa0598f7a>] iwl_pcie_txq_check_wrptrs+0x6a/0xb0 [iwlwifi]
        [<ffffffffa0594b5a>] iwl_pcie_irq_handler+0xdba/0x2670 [iwlwifi]
        [<ffffffff810ef1e0>] irq_thread_fn+0x20/0x50
        [<ffffffff810ef77f>] irq_thread+0x11f/0x150
        [<ffffffff810a04f0>] kthread+0xf0/0x110
        [<ffffffff817fa4bc>] ret_from_fork+0x7c/0xb0
      irq event stamp: 1142192
      hardirqs last  enabled at (1142192): [<ffffffff817efb6c>] _raw_spin_unlock_irq+0x2c/0x40
      hardirqs last disabled at (1142191): [<ffffffff817ef9ef>] _raw_spin_lock_irq+0x1f/0x80
      softirqs last  enabled at (1142188): [<ffffffff81079082>] _local_bh_enable+0x22/0x50
      softirqs last disabled at (1142189): [<ffffffff8107ad35>] irq_exit+0xe5/0xf0
      
      other info that might help us debug this:
       Possible unsafe locking scenario:
      
             CPU0
             ----
        lock(&(&txq->lock)->rlock);
        <Interrupt>
          lock(&(&txq->lock)->rlock);
      
      Fixes: ea68f460 ("iwlwifi: pcie: clarify TX queue need_update handling")
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      d090f878
  19. 07 5月, 2014 2 次提交