Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp929300pxk; Mon, 31 Aug 2020 05:27:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyLmvtJ6PC/O7osdDgJgSI0cqNA9LMUJYsBMCo0+vpdjiE4fyiCU3XhR5KHJfRZbIR/IOQM X-Received: by 2002:a17:906:3506:: with SMTP id r6mr923710eja.55.1598876838307; Mon, 31 Aug 2020 05:27:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1598876838; cv=none; d=google.com; s=arc-20160816; b=RD9B1SP7IF1/TQnTjPA9enzy3g7ZwXRccni+2cWrmf0RNYCGTDni50KWhapRQJZiR/ 2cwLHe72ulNwtcE8alJZLGqcvUVSdizbp3m1pri03bZ/E+hySEKWhcS2WiRnr/U8vwcB +nWsDmO6QvdDyr40doQaGXlOvMfiQuhyTknLa3Hqpko0EFFibwewqySmrlVps8rNaQQF 2p1B9XhpGPYf8nTNYRQM3m5nz4dOoqz0uy1EzbGN6r/4waviXYFF2QR7LLSyKlEl2DqT r9AT31jgr2qjd8L3T8f3KTkgyofANhQ/3OAyrWJoAfkE8VTA8RBC3sRx52xIZijERz5m FZDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=48lYLp6z1A5P9C32cVXbH73W/YTGMaabPmcrwtWidz8=; b=kXzsrg7KnI2V+WcRhze8Yvo51lPHnV735jv5lZZTGHEupvWAWwmh9tfq5qr+aI3or2 ArIB4q7G60a9LZCIMjnyA6+omF0PsVTSehgdtYGsswlZzqFaemzLlaMdmh7gciL+KSB6 9FFUffALv/aPdi0ENnq7IN2C3HFttKrW0Kxunq0YHfK6VehJ9otA3UTLsYEhwm8nRu3O mxqp1cFuA1zoJPVB1XMo9TXUXj4qao6+vkR3KgQSKIJ4jiu9OdvECaKenjvCkvxplGHh yaTGvKzcefbg5fKNtyUJ533/VeTCRXh8UJ+vqkQiyQR/Gwaedey0tna94tOKjP8cZ1vF BdGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=pf5B8lcw; 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 a8si5558691ejx.387.2020.08.31.05.26.53; Mon, 31 Aug 2020 05:27:18 -0700 (PDT) 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=pf5B8lcw; 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 S1727019AbgHaM0f (ORCPT + 99 others); Mon, 31 Aug 2020 08:26:35 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726839AbgHaM0N (ORCPT ); Mon, 31 Aug 2020 08:26:13 -0400 Received: from nbd.name (nbd.name [IPv6:2a01:4f8:221:3d45::2]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 10D93C06123B for ; Mon, 31 Aug 2020 05:26:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nbd.name; s=20160729; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: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=48lYLp6z1A5P9C32cVXbH73W/YTGMaabPmcrwtWidz8=; b=pf5B8lcw8fcIhvyoc7x9XUHeRY ytbk3R5/uVoL/gBzBHQ39M7ftj0AZ4BFdf+irB3aMZIRJBztdp1zfXkxy9ZdcPx2EWOJtv5OsKoro cm0n01jZXK1VdmV0Xq/nUcg8Em5x8gxOg410oBBq8GlqVD/Y/MVa1ctMhr1trEB7CSaQ=; Received: from p4ff13fcb.dip0.t-ipconnect.de ([79.241.63.203] helo=localhost.localdomain) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_CBC_SHA1:128) (Exim 4.89) (envelope-from ) id 1kCiss-0000Ok-T9 for linux-wireless@vger.kernel.org; Mon, 31 Aug 2020 14:26:02 +0200 From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 8/9] mt76: mt7603: tune tx ring size Date: Mon, 31 Aug 2020 14:25:57 +0200 Message-Id: <20200831122558.1388-8-nbd@nbd.name> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200831122558.1388-1-nbd@nbd.name> References: <20200831122558.1388-1-nbd@nbd.name> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Stop relying on global tx ring size, reduce size for PS/mgmt queue Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7603/dma.c | 4 ++-- drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/dma.c b/drivers/net/wireless/mediatek/mt76/mt7603/dma.c index 4ab35d2f8cef..b51b894a6d84 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/dma.c +++ b/drivers/net/wireless/mediatek/mt76/mt7603/dma.c @@ -192,13 +192,13 @@ int mt7603_dma_init(struct mt7603_dev *dev) for (i = 0; i < ARRAY_SIZE(wmm_queue_map); i++) { ret = mt7603_init_tx_queue(dev, i, wmm_queue_map[i], - MT_TX_RING_SIZE); + MT7603_TX_RING_SIZE); if (ret) return ret; } ret = mt7603_init_tx_queue(dev, MT_TXQ_PSD, - MT_TX_HW_QUEUE_MGMT, MT_TX_RING_SIZE); + MT_TX_HW_QUEUE_MGMT, MT7603_PSD_RING_SIZE); if (ret) return ret; diff --git a/drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h b/drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h index f40dbfa7d2da..2a6e4332ad06 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h +++ b/drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h @@ -17,6 +17,8 @@ #define MT7603_MCU_RX_RING_SIZE 64 #define MT7603_RX_RING_SIZE 128 +#define MT7603_TX_RING_SIZE 256 +#define MT7603_PSD_RING_SIZE 128 #define MT7603_FIRMWARE_E1 "mt7603_e1.bin" #define MT7603_FIRMWARE_E2 "mt7603_e2.bin" -- 2.28.0