Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp2167112rwd; Fri, 26 May 2023 02:45:36 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5e3SXENiVj41nVjJwnsx35eeOIGIqRwckJd3xKgYCD43hyY6mAhe72KXKeCIv81vSshfGf X-Received: by 2002:a05:6a20:54a9:b0:10b:dca5:74e5 with SMTP id i41-20020a056a2054a900b0010bdca574e5mr1856610pzk.0.1685094336639; Fri, 26 May 2023 02:45:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1685094336; cv=none; d=google.com; s=arc-20160816; b=Xpq52K57+oZ8ec9ahX07CpR9sILJCPBX84CdVeMKWV79fflsq7vQQLgclxLg1taWN/ sZVDg90zq6CoBAZIqcfi/9q2HpExKChpkhLLBMGAJ0z9R5lZNpn5S/96SAIZj9z86qg0 AapjHGeexcXwalSKTTibO2dsSkFNqNylV1rLa5PzzN67yCsDjCXbuyfQUfN4vzvkYWG2 Pzr66zfFInupEXxj7peW0o4sKyjhqpC1AQR/xYP4IjKrcQVlM7IdV3/PhX+JNlI2kVhd uCJqKM1gWIm9V4jKYvVY4207yyaQQIuUsInrpIB60D77vNz6XDWDZNrI2J4LYsk9JEuK obLQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=KNLdjL4QBMmB/v7NEr7UGG4X79ttvKZEkdlsRH+XS+s=; b=dFLqSoj27gg9Pfk+ElW6mElnFotXWlgCNE88eerOxR3jC/H20tfuVY7GCq524xBgcB XSoeszhWBOZkV7gtEZTy74j4lYbgn0Roi14hF4FmjFDtMsQMx+JHierby35Ngpw3fxJH TUM7h9aYpOT7qZavkHTYggekQvlUoUDINtWKmgjJN7JXroLk2zh0baOggfie/mFBKO9c uOxUogCG+NdoxH4Jc4kut74i7yMerfOO/Lu7kKiqblsUqAeCckuJzLIDDca4fCO34T75 9kVh+lYP7RU6u8bFrQKaHr/FNaJXPS0eYmmx69jhTIr4RQtXpYLwZbwY2CbQtJeSU9uS uiSQ== 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 r6-20020aa79ec6000000b006455a24291dsi3537016pfq.368.2023.05.26.02.45.27; Fri, 26 May 2023 02:45:36 -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 S243268AbjEZJei (ORCPT + 62 others); Fri, 26 May 2023 05:34:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41874 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243249AbjEZJeP (ORCPT ); Fri, 26 May 2023 05:34:15 -0400 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 49E9110F3 for ; Fri, 26 May 2023 02:33:39 -0700 (PDT) Received: from ptx.hi.pengutronix.de ([2001:67c:670:100:1d::c0]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q2Tp5-0007HF-QH; Fri, 26 May 2023 11:33:23 +0200 Received: from sha by ptx.hi.pengutronix.de with local (Exim 4.92) (envelope-from ) id 1q2Tp1-0007tg-Pm; Fri, 26 May 2023 11:33:19 +0200 Date: Fri, 26 May 2023 11:33:19 +0200 From: Sascha Hauer To: Ping-Ke Shih Cc: linux-wireless , 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 Message-ID: <20230526093319.GR17518@pengutronix.de> References: <20230524103934.1019096-1-s.hauer@pengutronix.de> <290b05447cc542a9b35c25ff89ba8ff3@realtek.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <290b05447cc542a9b35c25ff89ba8ff3@realtek.com> X-Sent-From: Pengutronix Hildesheim X-URL: http://www.pengutronix.de/ X-Accept-Language: de,en X-Accept-Content-Type: text/plain User-Agent: Mutt/1.10.1 (2018-07-13) X-SA-Exim-Connect-IP: 2001:67c:670:100:1d::c0 X-SA-Exim-Mail-From: sha@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Thu, May 25, 2023 at 12:45:23AM +0000, Ping-Ke Shih wrote: > > > > -----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. No, I haven't tried this. Regardless of that, I think it still makes sense to rate limit the messages. There will always be a slower system that can't cope with the number of packets even with a higher priority workqueue. Sascha -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |