Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp1830482ybl; Thu, 30 Jan 2020 06:47:44 -0800 (PST) X-Google-Smtp-Source: APXvYqzM4PE/FM679KMMy9Zvgy7yqXIM8TMq37Vy5OPs1HNGGMNbQTfSjXflZcAgtT0s5e9Cq7Qu X-Received: by 2002:a05:6830:1651:: with SMTP id h17mr3599666otr.167.1580395664238; Thu, 30 Jan 2020 06:47:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1580395664; cv=none; d=google.com; s=arc-20160816; b=jEYpEI/Akb/LFkZazIECLv3posGaoyKhFpWIYHO14F2n6vz4hFXaRDKgd+0OMzDtCP G4StnF4b8p0rgyS8xQQxR5TmwG2gZWZGDw4R/bF2xxwKPZayx9ArYg/1ne8ox+kniPDA uoc/XfVl4bBTIlTT2PxHt2GjkByiJ1z/9aZQQqCyjeDcu3F4VpqCuaQLsCEVf20UodhF hdh0D2UbubMNcFBBsulAVw30LiIGzcwus1r0JXuwP/XOLaUl+6uucOOcTvbmMxiyd/E7 /k5PFvr1wAZq0SBgo+2wTLxyyb4MrX9tqS7q5d2vto6A5YlcVMrcH0qcQNojFgVTMDgE BLHw== 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=zO4DxtnSS75mXxwXEXEiPN17tuKiKc7EbcX7NGORWX0=; b=ySR3o584ls7O5LASU28uQygDjyhaqK63gMz4FOCoQ79DsbqfVe29EwLBddpLORx5SP Aexve4xhjKlNXrOZ1IfVarLYZkGVr1IhvhCoWDoUN/YdTooUnyLqWj2Dg/QDzi2Cu+He UjAasICOziigK+vlaxWXMgwImKS5AyJZRbjiCYb6tHimw0Rhn6RhqgaPDOLp7aEobcqf RDhwurafXMeE98eNyKFPQ9+1OckYTy9UcDCFQDGjBrNuSqBBAodRQvKKssVjb35ekxNq nDjGd2x5pDB+GQtB0amneEkK97WQLAhXjP6bcKLbZvNj9wdku5IYRgh+vdz73wGOqEjQ 2LFQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=NL4YF5oi; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a7si2982187otp.11.2020.01.30.06.47.32; Thu, 30 Jan 2020 06:47:44 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@nbd.name header.s=20160729 header.b=NL4YF5oi; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727324AbgA3OrZ (ORCPT + 99 others); Thu, 30 Jan 2020 09:47:25 -0500 Received: from nbd.name ([46.4.11.11]:57440 "EHLO nbd.name" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727227AbgA3OrW (ORCPT ); Thu, 30 Jan 2020 09:47:22 -0500 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=zO4DxtnSS75mXxwXEXEiPN17tuKiKc7EbcX7NGORWX0=; b=NL4YF5oiVIEQ9/SrLIqm7fsnBo t4Kc3iR3WMCe0FDp4wNkFV5/V3iNMvBhNM7+gngipav+I5j2MmEt+KpIOAGmZD1bjTaQyKpo3G1y0 Ix+3WWWHhhi56XynA4ZQNGREyvewcmzzFXeL9YnhR3GCkEMv9HWOisWOzK8VRTLFXXOM=; Received: from [178.162.209.135] (helo=maeck.local) by ds12 with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ixB6G-0001Vk-IN for linux-wireless@vger.kernel.org; Thu, 30 Jan 2020 15:47:20 +0100 Received: by maeck.local (Postfix, from userid 501) id EE6827AE4693; Thu, 30 Jan 2020 15:47:18 +0100 (CET) From: Felix Fietkau To: linux-wireless@vger.kernel.org Subject: [PATCH 13/15] mt76: mt7615: decrease rx ring size for MT7622 Date: Thu, 30 Jan 2020 15:47:16 +0100 Message-Id: <20200130144718.14298-13-nbd@nbd.name> X-Mailer: git-send-email 2.24.0 In-Reply-To: <20200130144718.14298-1-nbd@nbd.name> References: <20200130144718.14298-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 Since it's 2.4 GHz only, it needs fewer buffers Signed-off-by: Felix Fietkau --- drivers/net/wireless/mediatek/mt76/mt7615/dma.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/dma.c b/drivers/net/wireless/mediatek/mt76/mt7615/dma.c index 41dea1aa58db..aeccb35e14f3 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/dma.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/dma.c @@ -188,6 +188,7 @@ static void mt7622_dma_sched_init(struct mt7615_dev *dev) int mt7615_dma_init(struct mt7615_dev *dev) { + int rx_ring_size = MT7615_RX_RING_SIZE; int ret; mt76_dma_attach(&dev->mt76); @@ -236,9 +237,11 @@ int mt7615_dma_init(struct mt7615_dev *dev) if (ret) return ret; + if (!is_mt7615(&dev->mt76)) + rx_ring_size /= 2; + ret = mt76_queue_alloc(dev, &dev->mt76.q_rx[MT_RXQ_MAIN], 0, - MT7615_RX_RING_SIZE, MT_RX_BUF_SIZE, - MT_RX_RING_BASE); + rx_ring_size, MT_RX_BUF_SIZE, MT_RX_RING_BASE); if (ret) return ret; -- 2.24.0