1. 06 9月, 2019 4 次提交
  2. 29 6月, 2019 2 次提交
    • E
      iwlwifi: fix RF-Kill interrupt while FW load for gen2 devices · ed3e4c6d
      Emmanuel Grumbach 提交于
      Newest devices have a new firmware load mechanism. This
      mechanism is called the context info. It means that the
      driver doesn't need to load the sections of the firmware.
      The driver rather prepares a place in DRAM, with pointers
      to the relevant sections of the firmware, and the firmware
      loads itself.
      At the end of the process, the firmware sends the ALIVE
      interrupt. This is different from the previous scheme in
      which the driver expected the FH_TX interrupt after each
      section being transferred over the DMA.
      
      In order to support this new flow, we enabled all the
      interrupts. This broke the assumption that we have in the
      code that the RF-Kill interrupt can't interrupt the firmware
      load flow.
      
      Change the context info flow to enable only the ALIVE
      interrupt, and re-enable all the other interrupts only
      after the firmware is alive. Then, we won't see the RF-Kill
      interrupt until then. Getting the RF-Kill interrupt while
      loading the firmware made us kill the firmware while it is
      loading and we ended up dumping garbage instead of the firmware
      state.
      
      Re-enable the ALIVE | RX interrupts from the ISR when we
      get the ALIVE interrupt to be able to get the RX interrupt
      that comes immediately afterwards for the ALIVE
      notification. This is needed for non MSI-X only.
      
      Cc: stable@vger.kernel.org
      Signed-off-by: NEmmanuel Grumbach <emmanuel.grumbach@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      ed3e4c6d
    • S
      iwlwifi: dbg: move trans debug fields to a separate struct · 91c28b83
      Shahar S Matityahu 提交于
      Unite iwl_trans debug related fields under iwl_trans_debug struct to
      increase readability and keep iwl_trans clean.
      Signed-off-by: NShahar S Matityahu <shahar.s.matityahu@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      91c28b83
  3. 01 6月, 2019 1 次提交
  4. 29 4月, 2019 1 次提交
  5. 19 4月, 2019 1 次提交
  6. 03 4月, 2019 1 次提交
  7. 22 3月, 2019 2 次提交
  8. 21 2月, 2019 1 次提交
  9. 14 2月, 2019 1 次提交
    • S
      iwlwifi: pcie: fix TX while flushing · 2ae48edc
      Sara Sharon 提交于
      When flushing TX queues no new TX should go into the system.
      However, in the following scenario we get TX:
      1. Queues are stopped and there are packets in overflow queue
      2. Station is removed and flush begins
      3. Flush empties space, and reclaim path TXes SKB from overflow
         queue.
      
      Note that the fact the queues are stopped during the process
      doesn't matter - the packet will be TXed since the TX path
      doesn't care if TX queues are stopped or not, just if there is
      space in the queue, which there is, since we just freed a
      packet.
      
      A fix here is rather complicated, since the flow is very racy.
      
      Change code not to warn if we are TXing from overflow TX.
      In case there is TX from both overflow TX and TX path we will
      miss a warning we optimally had, but we can live with that.
      
      Make sure we don't return before overflow queue is empty, otherwise
      we will think queues are empty, but they will be refilled, resulting
      with assert.
      Signed-off-by: NSara Sharon <sara.sharon@intel.com>
      Fixes: 3955525d ("iwlwifi: pcie: buffer packets to avoid overflowing Tx queues")
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      2ae48edc
  10. 04 2月, 2019 2 次提交
  11. 29 1月, 2019 1 次提交
    • J
      iwlwifi: pcie: align licensing to dual GPL/BSD · cefec29e
      Johannes Berg 提交于
      These files have a long history of code changes, but analysing
      the remaining code leads to having only a few changes that are
      not already owned by Intel, notably from
       - Andy Lutomirski <luto@amacapital.net>
       - Joonwoo Park <joonwpark81@gmail.com>
       - Kirtika Ruchandani <kirtika@chromium.org>
       - Rajat Jain <rajatja@google.com>
       - Stanislaw Gruszka <sgruszka@redhat.com>
      remaining in the code today.
      
      Note that
       - I myself was working for Intel and for any possibly code
         that might be before my employment there give permission
       - Wizery employees were working for Intel
      
      More specifically, we identified the following commits that
      (partially may) remain today:
      
      25c03d8e Joonwoo Park <joonwpark81@gmail.com>      ("iwlwifi: do not schedule tasklet when rcv unused irq")
      f36d04ab Stanislaw Gruszka <sgruszka@redhat.com>   ("iwlwifi: use dma_alloc_coherent")
      387f3381 Stanislaw Gruszka <sgruszka@redhat.com>   ("iwlwifi: fix dma mappings and skbs leak")
      2624e96c Stanislaw Gruszka <sgruszka@redhat.com>   ("iwlwifi: fix possible data overwrite in hcmd callback")
      bfe4b80e Stanislaw Gruszka <sgruszka@redhat.com>   ("iwlwifi: always check if got h/w access before write")
      d536c32b Andy Lutomirski <luto@amacapital.net>     ("iwlwifi: pcie: log when waking the NIC for hcmd submission fails")
      a6d24fad Rajat Jain <rajatja@google.com>           ("iwlwifi: pcie: dump registers when HW becomes inaccessible")
      fb12777a Kirtika Ruchandani <kirtika@chromium.org> ("iwlwifi: Add more call-sites for pcie reg dumper")
      3a73a300 Stanislaw Gruszka <sgruszka@redhat.com>   ("iwlwifi: cleanup/fix memory barriers")
      aa5affba Stanislaw Gruszka <sgruszka@redhat.com>   ("iwlwifi: dump stack when fail to gain access to the device")
      
      Align the licenses with their permission to clean up and to
      make it all identical.
      
      CC: Joonwoo Park <joonwpark81@gmail.com>
      CC: Stanislaw Gruszka <sgruszka@redhat.com>
      CC: Andy Lutomirski <luto@amacapital.net>
      CC: Rajat Jain <rajatja@google.com>
      CC: Kirtika Ruchandani <kirtika@chromium.org>
      Acked-by: NJohannes Berg <johannes@sipsolutions.net>
      Acked-by: NKirtika Ruchandani <kirtika@chromium.org>
      Acked-by: NStanislaw Gruszka <sgruszka@redhat.com>
      Acked-by: NJoonwoo Park <joonwpark81@gmail.com>
      Acked-by: NRajat Jain <rajatja@google.com>
      Acked-by: NAndy Lutomirski <luto@kernel.org>
      Signed-off-by: NJohannes Berg <johannes.berg@intel.com>
      Signed-off-by: NLuca Coelho <luciano.coelho@intel.com>
      cefec29e
  12. 26 1月, 2019 1 次提交
  13. 14 12月, 2018 1 次提交
  14. 23 11月, 2018 1 次提交
  15. 28 9月, 2018 1 次提交
  16. 31 8月, 2018 10 次提交
  17. 02 8月, 2018 3 次提交
  18. 26 7月, 2018 6 次提交