Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2418012pxu; Fri, 18 Dec 2020 12:46:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJxiYTter8ROOh58U3i7kYvePJpza4LB5of8tYBrah8/5pImxLHyLVyshy4WgYB0mP8Ziuu4 X-Received: by 2002:a17:906:6c94:: with SMTP id s20mr5893328ejr.0.1608324411531; Fri, 18 Dec 2020 12:46:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1608324411; cv=none; d=google.com; s=arc-20160816; b=PEs9ITNyAd7b9UWpWpajmfB+cBs4tXrEz1ZkaCBa/7yPCkPFt+xrCftOWr1P5od801 DsPnHU8LqM0WF6zMT8IX08L2tdrxfYLnuKBNxb0AjfS5cMa97sqo2GEiqgFpUuHXHkXV PSLST3wzUqCtHbhAy539we9RbNcGIBaxNrCSeay1yBSU+3epbhrHE8CrZEUsnkZk35ro L+FE3vRji1fWkYmdH0VR5zK6YD62OZRENHZYeNDno036a69WT3gKdZ519KBYIz/R+1ss Ilb14fDiqZ38vkbf4nl5JwgZ86duWozIXKgkZwLnvNSYuHVdhF3CLSNQvBp0HVV/JxZJ 1DPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=zRFXMkRycyC0MVrPiA/mwwIXpjM3W0G2IVjoa+Cfnm0=; b=tzXb1/8XiB5glFuR+eYm3ESJNxyxhxNIynEbYX5ofaZoihXeM/gN4kpENEn9azO3oK hZ8x/d1LBXIhKB0E4nIqsU5XzfUfVuc4fFrQ3RHbCTuVMmbCzQfyBUckP3ntPvqYdG+r 8LG1CugFx4DL/3fCwfoMwojZmJHoeStHVERYvAHO1Rd4tMBF4RPMOkK/EXJ1x6M3+PYK lCnNQg54JZUtEmNUkBbhffwMXEpbbq5z7ZPFN5wTr6jMA3tnpyfS5Ih9kYM58ao06eWH cLQurISm+pNmtxN0PGpFTvoC+SGM2XPy3HJNHhmhoCfDOl2pNyHAwhrICU7dhQB2gLLP tOvA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=teC4mz03; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bm5si6656077edb.21.2020.12.18.12.46.28; Fri, 18 Dec 2020 12:46:51 -0800 (PST) Received-SPF: pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=teC4mz03; spf=pass (google.com: domain of linux-wireless-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726497AbgLRSt5 (ORCPT + 99 others); Fri, 18 Dec 2020 13:49:57 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43544 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726481AbgLRSt5 (ORCPT ); Fri, 18 Dec 2020 13:49:57 -0500 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 96561C0617A7 for ; Fri, 18 Dec 2020 10:49:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:Cc:To:Subject:Sender:Reply-To: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=zRFXMkRycyC0MVrPiA/mwwIXpjM3W0G2IVjoa+Cfnm0=; b=teC4mz03EdIm/6Zt5z6VvfC9jp b6OafvRT5ZiiaXaVAjWNbgxVaOtY82YvTiYUcVQ1GqH4wmyZuaWB/SbKcufNVrY0gsXlycjBoOYke rXMGwN5dJlX5Z/okcp5oXGW201OhzLgo/maraGt/yaEvvX8rnImrGjsoXA/4BX5RSr34=; Received: from p4ff13815.dip0.t-ipconnect.de ([79.241.56.21] helo=nf.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.89) (envelope-from ) id 1kqKoF-0000MY-2a; Fri, 18 Dec 2020 19:48:59 +0100 Subject: Re: [PATCH] mt76: mt7915: increase buffer size to receive large MPDUs To: Ryder Lee , Lorenzo Bianconi Cc: Shayne Chen , linux-wireless@vger.kernel.org, linux-mediatek@lists.infradead.org References: <00af8edba9bad0e3635ca6024fcf56b3bcd407f8.1608139125.git.ryder.lee@mediatek.com> From: Felix Fietkau Message-ID: <9b4df998-b73c-011b-11cc-007785e3fba5@nbd.name> Date: Fri, 18 Dec 2020 19:48:58 +0100 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:78.0) Gecko/20100101 Thunderbird/78.5.0 MIME-Version: 1.0 In-Reply-To: <00af8edba9bad0e3635ca6024fcf56b3bcd407f8.1608139125.git.ryder.lee@mediatek.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org On 2020-12-16 18:24, Ryder Lee wrote: > This improves 5G/HE Rx performance around 70mbps. > > Tested-by: Chih-Min Chen > Signed-off-by: Ryder Lee > --- > drivers/net/wireless/mediatek/mt76/mt7915/dma.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c > index 8c1f9c77b14f..a8c783be297f 100644 > --- a/drivers/net/wireless/mediatek/mt76/mt7915/dma.c > +++ b/drivers/net/wireless/mediatek/mt76/mt7915/dma.c > @@ -203,7 +203,7 @@ int mt7915_dma_init(struct mt7915_dev *dev) > { > /* Increase buffer size to receive large VHT/HE MPDUs */ > struct mt76_bus_ops *bus_ops; > - int rx_buf_size = MT_RX_BUF_SIZE * 2; > + int rx_buf_size = MT_RX_BUF_SIZE * 4; This will not be needed after adding rx decapsulation offload. - Felix