1. 13 2月, 2014 1 次提交
  2. 04 2月, 2014 1 次提交
  3. 20 1月, 2014 1 次提交
    • E
      iwlwifi: pcie: don't panic on host commands in iwldvm · 23e76d1a
      Emmanuel Grumbach 提交于
      None of the devices supported by iwldvm have support for
      shadow registers. This means that we wake the NIC
      when we increment the write pointer on Tx ring.
      This happened even before my bad commit mentionned below.
      Since my commit below, we wake up the NIC when we put a
      host command on the ring regardless of shadow register
      support. This means that in iwldvm (when the NIC doesn't
      support shadow register), we wake up the NIC twice:
      
      pcie_enqueue_hcmd:
      	wake up the NIC
      	iwl_pcie_txq_inc_wr_ptr:
      		wake up the NIC - no shadow reg support
      
      Since waking up the NIC means that we need to acquire a
      spinlock, this obviously leads to a recursive spinlock
      and hence a freeze.
      
      Fixes: b9439491 ("iwlwifi: pcie: keep the NIC awake when commands are in flight")
      Reported-by: NJanusz Dziedzic <janusz.dziedzic@gmail.com>
      Reviewed-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      23e76d1a
  4. 01 1月, 2014 3 次提交
  5. 22 12月, 2013 1 次提交
  6. 18 12月, 2013 3 次提交
  7. 10 12月, 2013 2 次提交
  8. 26 11月, 2013 1 次提交
  9. 29 10月, 2013 1 次提交
  10. 11 10月, 2013 2 次提交
  11. 03 10月, 2013 1 次提交
  12. 02 10月, 2013 1 次提交
  13. 12 8月, 2013 1 次提交
  14. 09 8月, 2013 1 次提交
  15. 06 8月, 2013 2 次提交
  16. 16 7月, 2013 1 次提交
  17. 13 6月, 2013 3 次提交
  18. 04 6月, 2013 1 次提交
  19. 17 5月, 2013 2 次提交
  20. 14 5月, 2013 2 次提交
  21. 04 4月, 2013 1 次提交
  22. 20 3月, 2013 2 次提交
  23. 15 3月, 2013 1 次提交
  24. 06 3月, 2013 1 次提交
  25. 28 2月, 2013 3 次提交
    • J
      iwlwifi: use coherent DMA memory for command header · 38c0f334
      Johannes Berg 提交于
      Recently in commit 8a964f44
      ("iwlwifi: always copy first 16 bytes of commands") we fixed
      the problem that the hardware writes back to the command and
      that could overwrite parts of the data that was still needed
      and would thus be corrupted.
      
      Investigating this problem more closely we found that this
      write-back isn't really ordered very well with respect to
      other DMA traffic. Therefore, it sometimes happened that the
      write-back occurred after unmapping the command again which
      is clearly an issue and could corrupt the next allocation
      that goes to that spot, or (better) cause IOMMU faults.
      
      To fix this, allocate coherent memory for the first 16 bytes
      of each command, containing the write-back part, and use it
      for all queues. All the dynamic DMA mappings only need to be
      TO_DEVICE then. This ensures that even when the write-back
      happens "too late" it can't hit memory that has been freed
      or a mapping that doesn't exist any more.
      
      Since now the actual command is no longer modified, we can
      also remove CMD_WANT_HCMD and get rid of the DMA sync that
      was necessary to update the scratch pointer.
      Reviewed-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      38c0f334
    • J
      iwlwifi: rename IWL_MAX_CMD_TFDS to IWL_MAX_CMD_TBS_PER_TFD · 1afbfb60
      Johannes Berg 提交于
      The IWL_MAX_CMD_TFDS name for this constant is wrong, the
      constant really indicates how many TBs we can use in the
      driver for a single command TFD, rename the constant and
      also add a comment explaining it.
      Reviewed-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      1afbfb60
    • J
      iwlwifi: don't map complete commands bidirectionally · 98891754
      Johannes Berg 提交于
      The reason we mapped them bidirectionally was that not doing
      so had caused IOMMU exceptions, due to the fact that the HW
      writes back into the command. Now that the first part of the
      command including the write-back part is always in the first
      buffer, we don't need to map the remaining buffer(s) bidi
      and can get rid of the special-casing for commands.
      
      This is a requisite patch for another one to fix DMA mapping.
      Reviewed-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      98891754
  26. 27 2月, 2013 1 次提交
    • J
      iwlwifi: always copy first 16 bytes of commands · 8a964f44
      Johannes Berg 提交于
      The FH hardware will always write back to the scratch field
      in commands, even host commands not just TX commands, which
      can overwrite parts of the command. This is problematic if
      the command is re-used (with IWL_HCMD_DFL_NOCOPY) and can
      cause calibration issues.
      
      Address this problem by always putting at least the first
      16 bytes into the buffer we also use for the command header
      and therefore make the DMA engine write back into this.
      
      For commands that are smaller than 16 bytes also always map
      enough memory for the DMA engine to write back to.
      
      Cc: stable@vger.kernel.org
      Reviewed-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      8a964f44