Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp281367rwd; Wed, 24 May 2023 18:16:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4WG1LLH0Q/XpPY7lNgNnYftvgDpiE0mJfGaK66Fyn7RfNg0SE5v0bB/AVXphzUJ+286beJ X-Received: by 2002:a17:902:b596:b0:19e:e001:6a75 with SMTP id a22-20020a170902b59600b0019ee0016a75mr17312013pls.6.1684977388625; Wed, 24 May 2023 18:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1684977388; cv=none; d=google.com; s=arc-20160816; b=wnQLf3zDJp13BChDzB/rZnUpqmTIkUgxs5OnHfmhnVsWueoPZxOnI8rp594CS4EkTN l+zeliwNF2hi+8ifxxw9zrEiRaTrF/ip98Zt2lEDVaMl0eXzznAtZDjEMzudPcjdwwpX zCYzfKuFl7G2Nrzskn6PhjBU8FKagNAnrdKhEeL42fFg8qH1yRudvBewEUtFlHno7NaW wZdpQxPI5Vs5YqTjjg4bpPcySf8kxmKKpxaCWCo6Mzjq5jqIF423kr4cBf0WooVIPSVq TFtlOB03dOcZiLsQUwDpRniWuiUGVINe08JP0OiWeZDuS2Q9ZupDBx4tuM7i/OQa9qci rJbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=+yOfRPiug0rdNrZLSwxlfZXuTFyxBSN/FxQEunwJNF8=; b=uCUtQBKXVW0qKpWANSz3ftb3SXaW0M7kLeCyi1L4uFI5shmdB4Eg3bRuH7NJ79q60V MsxRle9MoCOAiIlFsVTlZBprXzXhyT6CYZWlw3xvvIZXwnq8ThCl3Ddl/Jw7X30xE8pP il05prqYOWRd9ZMmOI9aiDPQ0q7LUuO9UnLfJZh8QPmat7+R2y1wd9Xp7rf5rhxPf5Hb 9ratgoYb26GQGjWNsT7LGnjjIPDLmVZg5sgUk+Ke780icmROdLTMgFTPJt9jgi6uuQ34 y+hx83Dl+ebLrE0RKqjgubFf1pcTvYNhNtt7tHYZLWE148qf9EBa4aGGZGjA0dTxyptb 57aQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l12-20020a170902f68c00b0019b090e497esi223673plg.298.2023.05.24.18.16.06; Wed, 24 May 2023 18:16:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233797AbjEYAqv convert rfc822-to-8bit (ORCPT + 62 others); Wed, 24 May 2023 20:46:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229661AbjEYAqt (ORCPT ); Wed, 24 May 2023 20:46:49 -0400 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AD98D3 for ; Wed, 24 May 2023 17:46:45 -0700 (PDT) Authenticated-By: X-SpamFilter-By: ArmorX SpamTrap 5.77 with qID 34P0jCRk9023752, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36505.realtek.com.tw[172.21.6.25]) by rtits2.realtek.com.tw (8.15.2/2.81/5.90) with ESMTPS id 34P0jCRk9023752 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128 verify=OK); Thu, 25 May 2023 08:45:12 +0800 Received: from RTEXMBS05.realtek.com.tw (172.21.6.98) by RTEXH36505.realtek.com.tw (172.21.6.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.32; Thu, 25 May 2023 08:45:23 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXMBS05.realtek.com.tw (172.21.6.98) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.34; Thu, 25 May 2023 08:45:23 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d]) by RTEXMBS04.realtek.com.tw ([fe80::e138:e7f1:4709:ff4d%5]) with mapi id 15.01.2375.007; Thu, 25 May 2023 08:45:23 +0800 From: Ping-Ke Shih To: Sascha Hauer , linux-wireless CC: Hans Ulli Kroll , Larry Finger , Tim K , "Alex G ." , Nick Morrow , Viktor Petrenko , Andreas Henriksson , ValdikSS , "kernel@pengutronix.de" , "petter@technux.se" Subject: RE: [PATCH] wifi: rtw88: usb: silence log flooding error message Thread-Topic: [PATCH] wifi: rtw88: usb: silence log flooding error message Thread-Index: AQHZjiwhpaOYDLChaE6ysR4gEzG9Hq9qJPMQ Date: Thu, 25 May 2023 00:45:23 +0000 Message-ID: <290b05447cc542a9b35c25ff89ba8ff3@realtek.com> References: <20230524103934.1019096-1-s.hauer@pengutronix.de> In-Reply-To: <20230524103934.1019096-1-s.hauer@pengutronix.de> Accept-Language: en-US, zh-TW Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.69.188] x-kse-serverinfo: RTEXMBS05.realtek.com.tw, 9 x-kse-antispam-interceptor-info: fallback x-kse-antivirus-interceptor-info: fallback Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-ServerInfo: RTEXH36505.realtek.com.tw, 9 X-KSE-AntiSpam-Interceptor-Info: fallback X-KSE-Antivirus-Interceptor-Info: fallback X-KSE-AntiSpam-Interceptor-Info: fallback X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org > -----Original Message----- > From: Sascha Hauer > Sent: Wednesday, May 24, 2023 6:40 PM > To: linux-wireless > Cc: Hans Ulli Kroll ; Larry Finger ; Ping-Ke Shih > ; Tim K ; Alex G . ; Nick Morrow > ; Viktor Petrenko ; Andreas Henriksson ; > ValdikSS ; kernel@pengutronix.de; petter@technux.se; Sascha Hauer > > Subject: [PATCH] wifi: rtw88: usb: silence log flooding error message > > When receiving more rx packets than the kernel can handle the driver > drops the packets and issues an error message. The workqueue rtw88_usb is using is: rtwusb->rxwq = create_singlethread_workqueue("rtw88_usb: rx wq"); Have you tried workqueue with flags WQ_UNBOUND and WQ_HIGHPRI? Like, rtwusb->rxwq = alloc_workqueue("rtw88_usb: rx wq", WQ_UNBOUND | WQ_HIGHPRI, 0); or rtwusb->rxwq = alloc_ordered_workqueue("rtw88_usb: rx wq", WQ_HIGHPRI); Then, driver get more time to process RX, so it could ease flooding messages. Ping-Ke