diff mbox series

[4.19] iwlwifi: 1000: set the TFD queue size

Message ID 20180925135653.24094-1-luca@coelho.fi (mailing list archive)
State Accepted
Commit 3baafeffa48a12b3cec9a0b6d4049fba02d53cea
Delegated to: Kalle Valo
Headers show
Series [4.19] iwlwifi: 1000: set the TFD queue size | expand

Commit Message

Luca Coelho Sept. 25, 2018, 1:56 p.m. UTC
From: Pavel Machek <pavel@ucw.cz>

.max_tfd_queue_size was ommited for 1000 card serries leading to oops in
swiotlb.

Fixes: 7b3e42ea2ead ("iwlwifi: support multiple tfd queue max sizes for different devices")
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/cfg/1000.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Kalle Valo Sept. 27, 2018, 6:21 p.m. UTC | #1
Luca Coelho <luca@coelho.fi> wrote:

> From: Pavel Machek <pavel@ucw.cz>
> 
> .max_tfd_queue_size was ommited for 1000 card serries leading to oops in
> swiotlb.
> 
> Fixes: 7b3e42ea2ead ("iwlwifi: support multiple tfd queue max sizes for different devices")
> Tested-by: Randy Dunlap <rdunlap@infradead.org>
> Signed-off-by: Pavel Machek <pavel@ucw.cz>
> Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
> Signed-off-by: Luca Coelho <luciano.coelho@intel.com>

Patch applied to wireless-drivers.git, thanks.

3baafeffa48a iwlwifi: 1000: set the TFD queue size
diff mbox series

Patch

diff --git a/drivers/net/wireless/intel/iwlwifi/cfg/1000.c b/drivers/net/wireless/intel/iwlwifi/cfg/1000.c
index 591687984962..497fd766d87c 100644
--- a/drivers/net/wireless/intel/iwlwifi/cfg/1000.c
+++ b/drivers/net/wireless/intel/iwlwifi/cfg/1000.c
@@ -51,6 +51,7 @@ 
 
 static const struct iwl_base_params iwl1000_base_params = {
 	.num_of_queues = IWLAGN_NUM_QUEUES,
+	.max_tfd_queue_size = 256,
 	.eeprom_size = OTP_LOW_IMAGE_SIZE,
 	.pll_cfg = true,
 	.max_ll_items = OTP_MAX_LL_ITEMS_1000,