OSDN Git Service

ath10k: enable alt data of TX path for sdio
authorWen Gong <wgong@codeaurora.org>
Tue, 21 Apr 2020 12:09:35 +0000 (15:09 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 22 Apr 2020 06:43:32 +0000 (09:43 +0300)
commit2f918ea98606100f3a6d47db7ff7c200838ec4f3
tree1b76582b29e812fb9db2701d8c265b4bf60ce185
parentc8334512f3dd1b94844baca629f9bedca4271593
ath10k: enable alt data of TX path for sdio

The default credit size is 1792 bytes, but the IP mtu is 1500 bytes,
then it has about 290 bytes's waste for each data packet on sdio
transfer path for TX bundle, it will reduce the transmission utilization
ratio for data packet.

This patch enable the small credit size in firmware, firmware will use
the new credit size 1556 bytes, it will increase the transmission
utilization ratio for data packet on TX patch. It results in significant
performance improvement on TX path.

This patch only effect sdio chip, it will not effect PCI, SNOC etc.

Tested with QCA6174 SDIO with firmware
WLAN.RMH.4.4.1-00017-QCARMSWP-1.

Signed-off-by: Wen Gong <wgong@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20200410061400.14231-3-wgong@codeaurora.org
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/htc.c
drivers/net/wireless/ath/ath10k/htc.h