From 625276bc31e307e3404dec1cc999d14c1c2bccf9 Mon Sep 17 00:00:00 2001 From: "Pamidipati, Vijay" Date: Mon, 18 Sep 2017 14:19:45 +0530 Subject: [PATCH] qcacmn: Increase number of Tx descriptors for 1024 clients Increase the Tx descriptor pool size to 32K to take care of 1024 client requirement Change-Id: If6e0711204479e602d7cb468270ee2279a5c4dfe --- dp/wifi3.0/dp_tx_desc.h | 10 +++++----- wlan_cfg/wlan_cfg.c | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dp/wifi3.0/dp_tx_desc.h b/dp/wifi3.0/dp_tx_desc.h index 9cbe6ad3b0ab..0d306ed0d91c 100644 --- a/dp/wifi3.0/dp_tx_desc.h +++ b/dp/wifi3.0/dp_tx_desc.h @@ -25,14 +25,14 @@ /** * 21 bits cookie - * 3 bits ring id 0 ~ 7, - * 8 bits page id 0 ~ 512 + * 2 bits pool id 0 ~ 3, + * 10 bits page id 0 ~ 1023 * 5 bits offset id 0 ~ 31 (Desc size = 128, Num descs per page = 4096/128 = 32) */ /* ???Ring ID needed??? */ -#define DP_TX_DESC_ID_POOL_MASK 0x01C000 -#define DP_TX_DESC_ID_POOL_OS 14 -#define DP_TX_DESC_ID_PAGE_MASK 0x003FE0 +#define DP_TX_DESC_ID_POOL_MASK 0x018000 +#define DP_TX_DESC_ID_POOL_OS 15 +#define DP_TX_DESC_ID_PAGE_MASK 0x007FE0 #define DP_TX_DESC_ID_PAGE_OS 5 #define DP_TX_DESC_ID_OFFSET_MASK 0x00001F #define DP_TX_DESC_ID_OFFSET_OS 0 diff --git a/wlan_cfg/wlan_cfg.c b/wlan_cfg/wlan_cfg.c index 645675b7d88a..56b258a1b0a9 100644 --- a/wlan_cfg/wlan_cfg.c +++ b/wlan_cfg/wlan_cfg.c @@ -65,7 +65,7 @@ #define WLAN_LRO_ENABLE 0 /* Tx Descriptor and Tx Extension Descriptor pool sizes */ -#define WLAN_CFG_NUM_TX_DESC (16 << 10) +#define WLAN_CFG_NUM_TX_DESC (32 << 10) #define WLAN_CFG_NUM_TX_EXT_DESC (8 << 10)