ath11k: Increase Tx idr size to avoid Tx fail
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
Signed-off-by Karthikeyan Periyasamy <[email protected]>
--- 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
@@ -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
@@ -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
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 -28Signed-off-by Karthikeyan Periyasamy <[email protected]>
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