Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp297546pxx; Wed, 28 Oct 2020 05:18:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxCwOXwMHbiokY2rYI423OqcdDVX48BqNNYeaCDXYPcbXpDLSzdS9sbpI7oVTBB5wQws4s4 X-Received: by 2002:a17:906:38d9:: with SMTP id r25mr7552464ejd.8.1603887485819; Wed, 28 Oct 2020 05:18:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603887485; cv=none; d=google.com; s=arc-20160816; b=j/XJMYtTObslfrB+RhoI7jHNWZCS69BuR9htjT24KB5AZXsuiEIFto8eXD4Oiu0OQH cUaLkgxyuNMGt2Ky9cdmr7gSFL1crdAwtPxNcDlPK34heZ3ipd9SYxBz2RkmofJuCwO2 mna1zhWe3uNnT7bS2LcM0FYbSyfSqI7jJVZULVOXlJX7qYnXvxgRANh9/2Uld43PowgK Ji13fawebUryyl5b9BpXtWfn/ZYSpY3XcA3tkROpUd8HngjwP6X91U5A6gTI3RTBZUog fSF3DegJ9yLggKdzoh46DAygQ/D/BHLIV6vLLoqvD72jqxgLPT7c12uj5gQ+yh3OomFw s8FA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=wPjQZNzMwTVBy28U66rptNiODYsH/OjJFIDBW6d6cp8=; b=lI6Q2RVuDeqhWZRg/z3ipJIVMXCLCIcKsjCud39Z6eSPpYxU0IdvTpIirnSpqSgSyF BBQjfWpHg9gfr3i10G8X/l7VvPHe0kKf8XGCYMML/xDpy7WjQlBVLQyOieWg6tD+GW0U GXLHkPOh7gsS3y2o8FDa32ILVGKbz9agmAJxuRX1GBUMZdh+sXUUT/G8WyxAgFxtu30Z VwqiDzNtxOjSjgstYWfDYmGUvO6zqQjiSe5Yy2v3lGA6U/4QfpxYoE9IeeVrZjQY1WCQ zbq1Mm2rLkTidxSkYBWFz1vPEiRQ409T4z2qsJJwyAyvFzK3o6NvHAto94DxO0S5pyFJ G4+Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bm66CcWU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p17si2879649ejg.48.2020.10.28.05.17.44; Wed, 28 Oct 2020 05:18:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bm66CcWU; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1796453AbgJ0PSo (ORCPT + 99 others); Tue, 27 Oct 2020 11:18:44 -0400 Received: from mail.kernel.org ([198.145.29.99]:51438 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1794929AbgJ0POZ (ORCPT ); Tue, 27 Oct 2020 11:14:25 -0400 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2A4632231B; Tue, 27 Oct 2020 15:14:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603811664; bh=W7djoAKVSL07Q8YxcMiprpi1nhnt1rRDRNxZOdBdfkU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=bm66CcWUVMKagyF7NaQHZ5s/S6eXW4jwufUy9Uyfs5sp5ItA6sqhiSpuB3FKy9A2k q6Fe8idg7g5FOkn4CERArcRQruudjTFGjyK6m8aiM9p+hU123dZhf4g+G7MMvLRCaX OYdyUXhZcD7BQRYcorx6LjSpP9avzsmnXQhdi04U= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tzu-En Huang , Kalle Valo , Sasha Levin Subject: [PATCH 5.8 573/633] rtw88: increse the size of rx buffer size Date: Tue, 27 Oct 2020 14:55:16 +0100 Message-Id: <20201027135549.686917365@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135522.655719020@linuxfoundation.org> References: <20201027135522.655719020@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Tzu-En Huang [ Upstream commit ee755732b7a16af018daa77d9562d2493fb7092f ] The vht capability of MAX_MPDU_LENGTH is 11454 in rtw88; however, the rx buffer size for each packet is 8192. When receiving packets that are larger than rx buffer size, it will leads to rx buffer ring overflow. Signed-off-by: Tzu-En Huang Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200925061219.23754-2-tehuang@realtek.com Signed-off-by: Sasha Levin --- drivers/net/wireless/realtek/rtw88/pci.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/realtek/rtw88/pci.h b/drivers/net/wireless/realtek/rtw88/pci.h index 024c2bc275cbe..ca17aa9cf7dc7 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.h +++ b/drivers/net/wireless/realtek/rtw88/pci.h @@ -9,8 +9,8 @@ #define RTK_BEQ_TX_DESC_NUM 256 #define RTK_MAX_RX_DESC_NUM 512 -/* 8K + rx desc size */ -#define RTK_PCI_RX_BUF_SIZE (8192 + 24) +/* 11K + rx desc size */ +#define RTK_PCI_RX_BUF_SIZE (11454 + 24) #define RTK_PCI_CTRL 0x300 #define BIT_RST_TRXDMA_INTF BIT(20) -- 2.25.1