]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
wifi: rtw89: pci: enlarge retry times of RX tag to 1000
authorPing-Ke Shih <pkshih@realtek.com>
Fri, 9 May 2025 01:34:33 +0000 (09:34 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 16 May 2025 00:31:54 +0000 (08:31 +0800)
RX tag is sequence number to ensure RX DMA is complete. On platform
Gigabyte X870 AORUS ELITE WIFI7, sometimes it needs longer retry times
to complete RX DMA, or driver throws warnings and connection drops:

  rtw89_8922ae 0000:07:00.0: failed to update 162 RXBD info: -11
  rtw89_8922ae 0000:07:00.0: failed to update 163 RXBD info: -11
  rtw89_8922ae 0000:07:00.0: failed to update 32 RXBD info: -11
  rtw89_8922ae 0000:07:00.0: failed to release TX skbs

Fixes: 0bc7d1d4e63c ("wifi: rtw89: pci: validate RX tag for RXQ and RPQ")
Reported-by: Samuel Reyes <zohrlaffz@gmail.com>
Closes: https://lore.kernel.org/linux-wireless/f4355539f3ac46bbaf9c586d059a8cbb@realtek.com/T/#t
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250509013433.7573-1-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/pci.c

index b5cdc18f802a963d86cf92923b22db352919682a..064f6a9401073136e7c385d87c8f009147421dfb 100644 (file)
@@ -228,7 +228,7 @@ int rtw89_pci_sync_skb_for_device_and_validate_rx_info(struct rtw89_dev *rtwdev,
                                                       struct sk_buff *skb)
 {
        struct rtw89_pci_rx_info *rx_info = RTW89_PCI_RX_SKB_CB(skb);
-       int rx_tag_retry = 100;
+       int rx_tag_retry = 1000;
        int ret;
 
        do {