diff mbox series

[1/5] rtw88: increse the size of rx buffer size

Message ID 20200925061219.23754-2-tehuang@realtek.com (mailing list archive)
State Accepted
Commit ee755732b7a16af018daa77d9562d2493fb7092f
Delegated to: Kalle Valo
Headers show
Series rtw88: add firmware crash recovery and some fixes | expand

Commit Message

Andy Huang Sept. 25, 2020, 6:12 a.m. UTC
From: Tzu-En Huang <tehuang@realtek.com>

The vht capability of MAX_MPDU_LENGTH is 11454 in rtw88; however, the rx
buffer size for each packet is 8192. When receiving packets that are
larger than rx buffer size, it will leads to rx buffer ring overflow.

Signed-off-by: Tzu-En Huang <tehuang@realtek.com>
---
 drivers/net/wireless/realtek/rtw88/pci.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Kalle Valo Sept. 29, 2020, 8:23 a.m. UTC | #1
<tehuang@realtek.com> wrote:

> From: Tzu-En Huang <tehuang@realtek.com>
> 
> The vht capability of MAX_MPDU_LENGTH is 11454 in rtw88; however, the rx
> buffer size for each packet is 8192. When receiving packets that are
> larger than rx buffer size, it will leads to rx buffer ring overflow.
> 
> Signed-off-by: Tzu-En Huang <tehuang@realtek.com>

5 patches applied to wireless-drivers-next.git, thanks.

ee755732b7a1 rtw88: increse the size of rx buffer size
5c831644e1f4 rtw88: handle and recover when firmware crash
0fbc2f0f34cc rtw88: add dump firmware fifo support
714f71f94ab3 rtw88: add dump fw crash log
fada09311d17 rtw88: show current regulatory in tx power table
diff mbox series

Patch

diff --git a/drivers/net/wireless/realtek/rtw88/pci.h b/drivers/net/wireless/realtek/rtw88/pci.h
index 024c2bc275cb..ca17aa9cf7dc 100644
--- a/drivers/net/wireless/realtek/rtw88/pci.h
+++ b/drivers/net/wireless/realtek/rtw88/pci.h
@@ -9,8 +9,8 @@ 
 #define RTK_BEQ_TX_DESC_NUM	256
 
 #define RTK_MAX_RX_DESC_NUM	512
-/* 8K + rx desc size */
-#define RTK_PCI_RX_BUF_SIZE	(8192 + 24)
+/* 11K + rx desc size */
+#define RTK_PCI_RX_BUF_SIZE	(11454 + 24)
 
 #define RTK_PCI_CTRL		0x300
 #define BIT_RST_TRXDMA_INTF	BIT(20)