Patch "wifi: rtw88: usb: silence log flooding error message" has been added to the 6.4-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: rtw88: usb: silence log flooding error message

to the 6.4-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-rtw88-usb-silence-log-flooding-error-message.patch
and it can be found in the queue-6.4 subdirectory.

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



commit 91145d6d4d9944d6573d27816995fb9655cec4b9
Author: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
Date:   Wed May 24 12:39:34 2023 +0200

    wifi: rtw88: usb: silence log flooding error message
    
    [ Upstream commit 1f1784a59caf3eefd127908a1a3cf224017ff9c7 ]
    
    When receiving more rx packets than the kernel can handle the driver
    drops the packets and issues an error message. This is bad for two
    reasons. The logs are flooded with myriads of messages, but then time
    consumed for printing messages in that critical code path brings down
    the device. After some time of excessive rx load the driver responds
    with:
    
    rtw_8822cu 1-1:1.2: failed to get tx report from firmware
    rtw_8822cu 1-1:1.2: firmware failed to report density after scan
    rtw_8822cu 1-1:1.2: firmware failed to report density after scan
    
    The device stops working until being replugged.
    
    Fix this by lowering the priority to debug level and also by
    ratelimiting it.
    
    Fixes: a82dfd33d1237 ("wifi: rtw88: Add common USB chip support")
    Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx>
    Reviewed-by: Ping-Ke Shih <pkshih@xxxxxxxxxxx>
    Signed-off-by: Kalle Valo <kvalo@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20230524103934.1019096-1-s.hauer@xxxxxxxxxxxxxx
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/wireless/realtek/rtw88/usb.c b/drivers/net/wireless/realtek/rtw88/usb.c
index 44a5fafb99055..976eafa739a2d 100644
--- a/drivers/net/wireless/realtek/rtw88/usb.c
+++ b/drivers/net/wireless/realtek/rtw88/usb.c
@@ -535,7 +535,7 @@ static void rtw_usb_rx_handler(struct work_struct *work)
 		}
 
 		if (skb_queue_len(&rtwusb->rx_queue) >= RTW_USB_MAX_RXQ_LEN) {
-			rtw_err(rtwdev, "failed to get rx_queue, overflow\n");
+			dev_dbg_ratelimited(rtwdev->dev, "failed to get rx_queue, overflow\n");
 			dev_kfree_skb_any(skb);
 			continue;
 		}



[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