Skip to contentSkip to conversation

ath11k: Increase Tx idr size to avoid Tx fail

PATCH In review Karthikeyan Periyasamy 2 participants 2 messages May 6, 2019 – May 8, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: Increase Tx idr size to avoid Tx fail

In data traffic, encounter below warn due to idr resource unavailable. we found that idr alloc size is not good enough to pump the traffic. so increased the idr size by double the TX completion ring size.

Warn:
ath11k c000000.wifi1: failed to transmit frame -28

---
 drivers/net/wireless/ath/ath11k/dp.h    | 1 +
 drivers/net/wireless/ath/ath11k/dp_tx.c | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/dp.h +1 -0
index d4a68a8..3a69f66 100644
@@ -114,6 +114,7 @@ struct dp_link_desc_bank {
 #define DP_WBM_RELEASE_RING_SIZE	64
 #define DP_TCL_DATA_RING_SIZE		512
 #define DP_TX_COMP_RING_SIZE		8192
+#define DP_TX_IDR_SIZE			(DP_TX_COMP_RING_SIZE << 1)
 #define DP_TCL_CMD_RING_SIZE		32
 #define DP_TCL_STATUS_RING_SIZE		32
 #define DP_REO_DST_RING_MAX		4
drivers/net/wireless/ath/ath11k/dp_tx.c +1 -1
index 86e9d01..123985e 100644
@@ -97,7 +97,7 @@ int ath11k_dp_tx(struct ath11k *ar, struct ath11k_vif *arvif,
 
 	spin_lock_bh(&tx_ring->tx_idr_lock);
 	ret = idr_alloc(&tx_ring->txbuf_idr, skb, 0,
-			DP_TX_COMP_RING_SIZE, GFP_ATOMIC);
+			DP_TX_IDR_SIZE - 1, GFP_ATOMIC);
 	spin_unlock_bh(&tx_ring->tx_idr_lock);
 
 	if (ret < 0)
Signature · 7 lines
1.9.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 8 lines · Karthikeyan Periyasamy

In data traffic, encounter below warn due to idr resource unavailable. we found that idr alloc size is not good enough to pump the traffic. so increased the idr size by double the TX completion ring size.

Warn:
ath11k c000000.wifi1: failed to transmit frame -28

Patch applied to ath.git, thanks.

d75d0ebd2a7b ath11k: Increase Tx idr size to avoid Tx fail

Signature · 9 lines
https://patchwork.kernel.org/patch/10931149/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k