]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
iwlwifi: move to 512 queues
authorSara Sharon <sara.sharon@intel.com>
Thu, 23 Feb 2017 12:19:45 +0000 (14:19 +0200)
committerLuca Coelho <luciano.coelho@intel.com>
Tue, 25 Apr 2017 20:04:29 +0000 (23:04 +0300)
Avoid using the old define since it will enlarge necessary
structs for previous HW.

Signed-off-by: Sara Sharon <sara.sharon@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
drivers/net/wireless/intel/iwlwifi/iwl-a000.c
drivers/net/wireless/intel/iwlwifi/iwl-config.h
drivers/net/wireless/intel/iwlwifi/iwl-trans.h
drivers/net/wireless/intel/iwlwifi/mvm/mvm.h
drivers/net/wireless/intel/iwlwifi/pcie/internal.h

index 097cb45c8ad92a9172fefb7c317a151d645624c0..c648cfb981a3154643d3c56d11d3d5e11a9dba82 100644 (file)
@@ -85,7 +85,7 @@
 
 static const struct iwl_base_params iwl_a000_base_params = {
        .eeprom_size = OTP_LOW_IMAGE_SIZE_FAMILY_A000,
-       .num_of_queues = 31,
+       .num_of_queues = 512,
        .shadow_ram_support = true,
        .led_compensation = 57,
        .wd_timeout = IWL_LONG_WD_TIMEOUT,
index 4af1267181a96b1c6a33d155b7f05e53c175234f..a12197e3ce7837fe8aeadc71719d8837e93bb9f0 100644 (file)
@@ -170,7 +170,7 @@ struct iwl_base_params {
           apmg_wake_up_wa:1,
           scd_chain_ext_wa:1;
 
-       u8 num_of_queues;       /* def: HW dependent */
+       u16 num_of_queues;      /* def: HW dependent */
 
        u8 max_ll_items;
        u8 led_compensation;
index 626e2703a57f172b415b2ccdf9b106345a00b6f8..181636861cb64f117982c0934b564105f4efbc8d 100644 (file)
@@ -396,6 +396,8 @@ static inline void iwl_free_rxb(struct iwl_rx_cmd_buffer *r)
  * currently supports
  */
 #define IWL_MAX_HW_QUEUES              32
+#define IWL_MAX_TVQM_QUEUES            512
+
 #define IWL_MAX_TID_COUNT      8
 #define IWL_MGMT_TID           15
 #define IWL_FRAME_LIMIT        64
index 204664b578df208f7ba956faee73943678659b29..4e74a6b90e70626d6e0e8bb8092796f078c7d55d 100644 (file)
@@ -788,7 +788,7 @@ struct iwl_mvm {
                u64 on_time_scan;
        } radio_stats, accu_radio_stats;
 
-       u8 hw_queue_to_mac80211[IWL_MAX_HW_QUEUES];
+       u8 hw_queue_to_mac80211[IWL_MAX_TVQM_QUEUES];
 
        struct {
                u8 hw_queue_refcount;
index 30835f06a6e2795b66c27bfe321e8b0e742e84a7..fd4faaaa1484bbe3303f7be448ad63326c9cfb1e 100644 (file)
@@ -414,9 +414,9 @@ struct iwl_trans_pcie {
        struct iwl_dma_ptr kw;
 
        struct iwl_txq *txq_memory;
-       struct iwl_txq *txq[IWL_MAX_HW_QUEUES];
-       unsigned long queue_used[BITS_TO_LONGS(IWL_MAX_HW_QUEUES)];
-       unsigned long queue_stopped[BITS_TO_LONGS(IWL_MAX_HW_QUEUES)];
+       struct iwl_txq *txq[IWL_MAX_TVQM_QUEUES];
+       unsigned long queue_used[BITS_TO_LONGS(IWL_MAX_TVQM_QUEUES)];
+       unsigned long queue_stopped[BITS_TO_LONGS(IWL_MAX_TVQM_QUEUES)];
 
        /* PCI bus related data */
        struct pci_dev *pci_dev;