1. 31 7月, 2018 2 次提交
  2. 02 7月, 2018 8 次提交
    • M
      wil6210: remove crash dump collection from OTP section · 9a53d0b6
      Maya Erez 提交于
      In some cases where the device is stuck, reading from OTP
      can timeout. As OTP section is known there is no need to read
      it during device crash dump collection.
      Adding a new field to struct fw_map to indicate if to include
      this section in crash dump collection.
      Signed-off-by: NMaya Erez <merez@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      9a53d0b6
    • M
      wil6210: add support for Talyn-MB boot flow · f1dbb6c1
      Maya Erez 提交于
      Talyn-MB introduces various of FW download options:
      FW download via PCIe, SPI or PBL for secured access.
      The boot and FW download path is determined based on the
      OTP HW register. Driver reads this register as part of the
      SW reset flow and performs the appropriate initialization
      sequence.
      Signed-off-by: NMaya Erez <merez@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      f1dbb6c1
    • M
      wil6210: add support for enhanced DMA debugfs · d98b8539
      Maya Erez 提交于
      Add debugfs support for enhanced DMA TX and RX descriptor rings,
      TX and RX status rings and RX buffer management.
      
      Run the following command to print the TX and RX status rings:
      cat srings
      
      Run the following command in order to select the status ring:
      echo STATUS_RING_IDX > dbg_sring_index
      
      Run the following command in order to select the status message:
      echo STATUS_MSG_IDX > dbg_status_msg_index
      
      Run the following command in order to print the selected status
      message from the selected status ring:
      cat status_msg
      
      Run the following command in order to print the RX buffer management
      debug information:
      cat rx_buff_mgmt
      Signed-off-by: NGidon Studinski <gidons@codeaurora.org>
      Signed-off-by: NMaya Erez <merez@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      d98b8539
    • G
      wil6210: add support for enhanced DMA RX data flows · 7be13fc3
      Gidon Studinski 提交于
      Enhanced DMA RX data path is handled using a single
      RX descriptor ring for all VIFs.
      Multiple RX status rings are supported, to allow RSS
      and multi MSI support.
      The driver gets the RX completions via the RX status rings.
      The RX status message includes the completed RX buffer ID,
      which points to the allocated SKB.
      
      The enhanced DMA RX data flow supports RX chaining, where
      multiple SKBs are merged into a single packet.
      
      Enhanced DMA HW supports RX HW reorder offload, enabled by
      default for Talyn-MB.
      
      amsdu_en debugfs entry was added to allow control MSDU aggregation.
      Use the following command to disable AMSDU (enabled by default):
      echo 0 > amsdu_en
      Signed-off-by: NGidon Studinski <gidons@codeaurora.org>
      Signed-off-by: NMaya Erez <merez@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      7be13fc3
    • M
      wil6210: add support for enhanced DMA TX data flows · 9202d7b6
      Maya Erez 提交于
      The enhanced DMA TX data path is handled using a descriptor
      ring per connection and a single status ring.
      
      The driver gets TX completions via the TX status ring. Each
      status message points to the completed descriptor ring and
      includes the number of completed descriptors in this ring.
      
      Non TSO enhanced DMA TX descriptors are similar to legacy DMA
      TX descriptors, hence the same transmit function can be used.
      
      However, enhanced DMA TSO frames division is performed by the
      HW, hence a new function is added to handle enhanced DMA TSO.
      Signed-off-by: NGidon Studinski <gidons@codeaurora.org>
      Signed-off-by: NMaya Erez <merez@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      9202d7b6
    • G
      wil6210: initialize TX and RX enhanced DMA rings · 96c93589
      Gidon Studinski 提交于
      Enhanced DMA design includes the following rings:
      - Single RX descriptor ring is used for all VIFs
      - Multiple RX status rings are supported, to allow RSS
      - TX descriptor ring is allocated per connection
      - A single TX status ring is used for all TX descriptor rings
      
      This patch initializes and frees the above descriptor and
      status rings.
      
      The RX SKBs are handled by a new entity of RX buffers manager,
      which handles RX buffers, each one points to an allocated SKB.
      During Rx completion processing, the driver extracts a buffer
      ID which is used as an index to the buffers array.
      After the SKB is freed the buffer is moved from the 'active'
      list to the 'free' list, indicating it can be used for another
      descriptor. During Rx refill, SKBs are allocated and attached
      to 'free' buffers. Those buffers are attached to new descriptors
      and moved to the 'active' list.
      
      New debugfs entries were added to allow edma configuration:
      
      Run the following command to configure the number of status rings:
      echo NUM_OF_STATUS_RINGS > num_rx_status_rings
      
      Run the following command to use extended RX status message for
      additional debug fields from HW:
      echo 0 > compressed_rx_status
      
      Run the following command to control the size of the TX status ring:
      echo TX_STATUS_RING_ORDER > tx_status_ring_order
      The status ring size will be 1 << tx_status_ring_order
      
      Run the following command to control the size of the RX status ring:
      echo RX_STATUS_RING_ORDER > rx_status_ring_order
      Due to HW constrains RX sring order should be bigger than RX ring order
      The status ring size will be 1 << rx_status_ring_order
      
      Run the following command to change the number of RX buffer IDs:
      echo RX_BUFF_ID_COUNT > rx_buff_id_count
      Signed-off-by: NGidon Studinski <gidons@codeaurora.org>
      Signed-off-by: NMaya Erez <merez@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      96c93589
    • G
      wil6210: add support for enhanced DMA structures · 10590c6a
      Gidon Studinski 提交于
      In enhanced DMA the vrings are handled internally by the FW
      and are not exposed to the driver.
      Instead, the driver handles descriptor rings, which are mapped
      by the FW to vrings.
      The completions of the TX and RX descriptors are notified to
      the driver using status rings. Each status ring descriptor
      includes information of the completed descriptors and the ring id
      of their descriptor ring.
      
      This patch changes struct vring to generic wil_ring to allow
      its reuse for enhanced DMA descriptor rings and adds the descriptor
      and status rings specific descriptors.
      
      The vring debugfs entries have changed as follows:
      - dbg_vring_index has changed to dbg_ring_index
      - vrings has changed to rings
      - vring_idle_trsh has changed to ring_idle_trsh
      - vring_index has changed to ring_index
      Signed-off-by: NGidon Studinski <gidons@codeaurora.org>
      Signed-off-by: NMaya Erez <merez@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      10590c6a
    • M
      wil6210: add support for Talyn-MB (Talyn ver 2.0) device · 485790d0
      Maya Erez 提交于
      Add changes to support initialization of Talyn-MB wil6210
      device:
      - Add definition for Talyn-MB new JTAG id
      - Define talyn_mb_fw_mapping array
      - Add Talyn-MB reset sequence
      Signed-off-by: NMaya Erez <merez@codeaurora.org>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      485790d0
  3. 28 6月, 2018 1 次提交
    • O
      wireless-drivers: use BIT_ULL for NL80211_STA_INFO_ attribute types · 22d0d2fa
      Omer Efrat 提交于
      The BIT macro uses unsigned long which some architectures handle as 32 bit
      and therefore might cause macro's shift to overflow when used on a value
      equals or larger than 32 (NL80211_STA_INFO_RX_DURATION and afterwards).
      
      Since 'filled' member in station_info changed to u64, BIT_ULL macro
      should be used with all NL80211_STA_INFO_* attribute types instead of BIT
      to prevent future possible bugs when one will use BIT macro for higher
      attributes by mistake.
      
      This commit cleans up all usages of BIT macro with the above field
      in wireless-drivers by changing it to BIT_ULL instead. In addition, there are
      some places which don't use BIT nor BIT_ULL macros so align those as well.
      Signed-off-by: NOmer Efrat <omer.efrat@tandemg.com>
      Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
      22d0d2fa
  4. 12 5月, 2018 9 次提交
  5. 10 4月, 2018 1 次提交
  6. 28 2月, 2018 8 次提交
  7. 26 2月, 2018 1 次提交
  8. 19 2月, 2018 1 次提交
  9. 25 1月, 2018 8 次提交
  10. 09 1月, 2018 1 次提交