Received: by 2002:a05:7412:b130:b0:e2:908c:2ebd with SMTP id az48csp247412rdb; Thu, 16 Nov 2023 18:54:12 -0800 (PST) X-Google-Smtp-Source: AGHT+IGUmh3c4Xf+jqrEvYEgCuFyhDgKJEveGjoeP6I4YT8XaMunkKUn0Xu+lCA1EtpCwIFHfE61 X-Received: by 2002:a05:6358:90c:b0:16b:c810:b98d with SMTP id r12-20020a056358090c00b0016bc810b98dmr12344933rwi.21.1700189652173; Thu, 16 Nov 2023 18:54:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700189652; cv=none; d=google.com; s=arc-20160816; b=iFBciSp3JWGjoleif++MB0MBB5BzJxdzPwuHknjoA0E5CqbGiiLajOlNORFfOzrSFy QTxhNg7ywxww20gkrF1eIaGdbfrluGZk8cY6ILEhu4IhUUGYN9PDXiMVUvgK09DHt/8w HWmhBIQWmX+Guqt7m8GfoLXvjbQvbg6s8TsbsPboCbleIqr7k5NY0sHAdy2HrfodauJX HdiBMTq0dvlq+80tcd17LhSHNrwTqwMJiOocy/BRMAlMXpCnwzyGD9SNY4axuwMCQxKh tH/0Dm8MWRf5AFZMxAPonA0TZDb94fSv7CkBEcmQe484mpe9HjM0Ma09O6ILDz/tfX1l VP3w== 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; bh=6egTrrvIuGSZ5XWyhlAzo4NwyhEi6Ycmm/L+pOymYY8=; fh=D82Y81ZM/X+qVN/NYbu9uSxKBhYHyD5sO6QFsPEjsSU=; b=jB1BegDCRf4zAqm36+YaY/cnhzucbG1XMJ9VFBjSFu4Zu/AbDXFOw7PPC/pKD8VMaE hEKkzISdwy8+7obuMWXA43IFvRKYywTfeBqYfSiTmLYLl4mwtTFRywufRzugYHrCHapP PS4NJ6dbXCRIKtTg2WTN8wf9bt7r4yU+Q4Vo/kcHd4Ngc1mG2NJEvoGHjGXhvHgo6jWp +r1xX6JA0q9Gyt0vGyWt9EyxihgKEy+/6B9J8P6jSizZiSZ7K2zQ0X0/ZwvTmy7lBIeX QQgIGaBfGjKTobb436Ie4fZfjJ7K92ma+h20CDDhugmb4jvUoZkYL1xdHFTLb4TL4O/m MhOA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from groat.vger.email (groat.vger.email. [23.128.96.35]) by mx.google.com with ESMTPS id m10-20020a65530a000000b005b8f6936eb4si805348pgq.773.2023.11.16.18.54.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 16 Nov 2023 18:54:12 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) client-ip=23.128.96.35; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.35 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id BF9BA8266586; Thu, 16 Nov 2023 18:54:05 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345623AbjKQCyG convert rfc822-to-8bit (ORCPT + 53 others); Thu, 16 Nov 2023 21:54:06 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60472 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjKQCyG (ORCPT ); Thu, 16 Nov 2023 21:54:06 -0500 Received: from rtits2.realtek.com.tw (rtits2.realtek.com [211.75.126.72]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B2E061A8; Thu, 16 Nov 2023 18:54:02 -0800 (PST) X-SpamFilter-By: ArmorX SpamTrap 5.78 with qID 3AH2rrHyB2827004, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (rtexh36506.realtek.com.tw[172.21.6.27]) by rtits2.realtek.com.tw (8.15.2/2.95/5.92) with ESMTPS id 3AH2rrHyB2827004 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 17 Nov 2023 10:53:53 +0800 Received: from RTEXDAG02.realtek.com.tw (172.21.6.101) by RTEXH36506.realtek.com.tw (172.21.6.27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.17; Fri, 17 Nov 2023 10:53:53 +0800 Received: from RTEXMBS04.realtek.com.tw (172.21.6.97) by RTEXDAG02.realtek.com.tw (172.21.6.101) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.7; Fri, 17 Nov 2023 10:53:52 +0800 Received: from RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7]) by RTEXMBS04.realtek.com.tw ([fe80::40c2:6c24:2df4:e6c7%5]) with mapi id 15.01.2375.007; Fri, 17 Nov 2023 10:53:52 +0800 From: Ping-Ke Shih To: Su Hui , "Jes.Sorensen@gmail.com" CC: "kvalo@kernel.org" , "linux-wireless@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "kernel-janitors@vger.kernel.org" Subject: RE: [PATCH v2] wifi: rtl8xxxu: correct the error value of 'timeout' Thread-Topic: [PATCH v2] wifi: rtl8xxxu: correct the error value of 'timeout' Thread-Index: AQHaF4Do9v4vXgLKQEi53aoMdH/MCbB90spQ Date: Fri, 17 Nov 2023 02:53:52 +0000 Message-ID: References: <20231115050123.951862-1-suhui@nfschina.com> In-Reply-To: <20231115050123.951862-1-suhui@nfschina.com> Accept-Language: en-US, zh-TW Content-Language: zh-TW x-originating-ip: [172.21.69.94] x-kse-serverinfo: RTEXDAG02.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-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Thu, 16 Nov 2023 18:54:06 -0800 (PST) > -----Original Message----- > From: Su Hui > Sent: Wednesday, November 15, 2023 1:01 PM > To: Ping-Ke Shih ; Jes.Sorensen@gmail.com > Cc: Su Hui ; kvalo@kernel.org; linux-wireless@vger.kernel.org; > linux-kernel@vger.kernel.org; kernel-janitors@vger.kernel.org > Subject: [PATCH v2] wifi: rtl8xxxu: correct the error value of 'timeout' > > When 'rtl8xxxu_dma_agg_pages <= page_thresh', 'timeout' should equal to > 'page_thresh' rather than '4'. Change the code order to fix this problem. > > Fixes: fd83f1227826 ("rtl8xxxu: gen1: Add module parameters to adjust DMA aggregation parameters") > Signed-off-by: Su Hui > --- Checking logic of agg_pages and agg_timeout, I think we should correct it by below changes. So, NACK this patch. diff --git a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c index 43ee7592bc6e..c9e227aed685 100644 --- a/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c +++ b/drivers/net/wireless/realtek/rtl8xxxu/rtl8xxxu_core.c @@ -4760,7 +4760,7 @@ void rtl8xxxu_gen1_init_aggregation(struct rtl8xxxu_priv *priv) page_thresh = (priv->fops->rx_agg_buf_size / 512); if (rtl8xxxu_dma_agg_pages >= 0) { if (rtl8xxxu_dma_agg_pages <= page_thresh) - timeout = page_thresh; + page_thresh = rtl8xxxu_dma_agg_pages; else if (rtl8xxxu_dma_agg_pages <= 6) dev_err(&priv->udev->dev, "%s: dma_agg_pages=%i too small, minimum is 6\n",