Patch "wifi: rtw89: pci: enlarge RX DMA buffer to consider size of RX descriptor" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    wifi: rtw89: pci: enlarge RX DMA buffer to consider size of RX descriptor

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     wifi-rtw89-pci-enlarge-rx-dma-buffer-to-consider-siz.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 247ba156aca721230ce55265a5ba141a54b83334
Author: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
Date:   Sun Jan 21 15:18:26 2024 +0800

    wifi: rtw89: pci: enlarge RX DMA buffer to consider size of RX descriptor
    
    [ Upstream commit c108b4a50dd7650941d4f4ec5c161655a73711db ]
    
    Hardware puts RX descriptor and packet in RX DMA buffer, so it could be
    over one buffer size if packet size is 11454, and then it will be split
    into two segments. WiFi 7 chips use larger size of RX descriptor, so
    enlarge DMA buffer size according to RX descriptor to have better
    performance and simple flow.
    
    Signed-off-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
    Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxx>
    Link: https://msgid.link/20240121071826.10159-5-pkshih@xxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/realtek/rtw89/pci.h b/drivers/net/wireless/realtek/rtw89/pci.h
index 2f3d1ad3b0f7d..4259b79b138fb 100644
--- a/drivers/net/wireless/realtek/rtw89/pci.h
+++ b/drivers/net/wireless/realtek/rtw89/pci.h
@@ -559,7 +559,7 @@
 #define RTW89_PCI_TXWD_NUM_MAX		512
 #define RTW89_PCI_TXWD_PAGE_SIZE	128
 #define RTW89_PCI_ADDRINFO_MAX		4
-#define RTW89_PCI_RX_BUF_SIZE		11460
+#define RTW89_PCI_RX_BUF_SIZE		(11454 + 40) /* +40 for rtw89_rxdesc_long_v2 */
 
 #define RTW89_PCI_POLL_BDRAM_RST_CNT	100
 #define RTW89_PCI_MULTITAG		8




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux