Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp236296pxx; Wed, 28 Oct 2020 03:42:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyduqV+jlC2hbONOj54Dyp89RroX8DrtyuG3bSquM8tyT2HLHLQ6qPf9NifcJJqFhDnBGzJ X-Received: by 2002:aa7:de86:: with SMTP id j6mr7253113edv.353.1603881730326; Wed, 28 Oct 2020 03:42:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603881730; cv=none; d=google.com; s=arc-20160816; b=ZTKDm3IWv14OC66l73dA/jBVnedI1yXbAeyFhQekIwqkC7rUZcQhXdirjAdjwUM3CD YxJIEMv8fdh6FhD47gND6OCBKzr1TgX1VNFkVxPP9kPXlr/uHA/sGX8qC962cUz+6hNF Mnyl4YdUxqIGzYti5ITIDWnVYlkKxFmYlxiA07IoYSxUSC53wQNqQ+A6iKSdT87RviFr JwEiHxqF/87LffCO6Yx9CSMY2Eqmnf5FNaRqag5FmhG48BWG57ddSakqeURLzjOen5N0 CPKoSMQw1ZVeDmfC8RMkrr5P/v0uicxGexhFGdq1zSovjQjT8k8yE4QJxYoylraq/FDf DzEw== 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=oU7NU6Xc6AyJWE1eaNZJjMvDrW4jv6V8cGfW7itGJf8=; b=thXYEw+1/y6WVJFsPQZ2s8MJ2GDFuvFF/4Aplpef7B0xWSa1M5cp7NMV9iFF2q+Z8C MmMEN6kVBPOd4UXmznv6/tYZUCzm+uFJWxea0OmNMeG6fBeo8pRew+0rVxrkG7r2K/OZ Mn/4ncmHyHWS3odUCuco40Iia4A2t7ClAT0W/08gbMxQ/DEUQSKL2MZHLuzfjOjMoDCz K3lGp9bBrtjHYMVDgVUBmmwb3VSDhnufwBsnThZIXeZEgGs5PCyc89cQOhxFUGoZan1x z651+4OIFSeSbt48+6q+TJVMOZLlNN10rygxAYPx4GMn/cuO3J9QVFtYA8o7AOxGBJeA oMiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Nn4zgj1x; 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 a42si3838927edf.535.2020.10.28.03.41.48; Wed, 28 Oct 2020 03:42:10 -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=Nn4zgj1x; 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 S1763890AbgJ0Op0 (ORCPT + 99 others); Tue, 27 Oct 2020 10:45:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:44910 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763841AbgJ0OpB (ORCPT ); Tue, 27 Oct 2020 10:45:01 -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 4A01F2222C; Tue, 27 Oct 2020 14:45:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603809900; bh=iC0jZdjoqn1Py7xJojtmdX9lti5RGCBfHf+sGISAEjY=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Nn4zgj1xhcvffq6/zwQDCWxEbX651Dbk7an/0coADtxpQzRun82wC2uYR4EQ9EzGd f06qt4gG2pvFTBg4nElIKuKcCmdTjpWVX0csLGXzHqPKSj7AE43VvV6Flgj1ArCrez JKocHAGJgPF0t7u/28itx82E6ECZTuAoIR8rj1P4= 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.4 360/408] rtw88: increse the size of rx buffer size Date: Tue, 27 Oct 2020 14:54:58 +0100 Message-Id: <20201027135511.713576706@linuxfoundation.org> X-Mailer: git-send-email 2.29.1 In-Reply-To: <20201027135455.027547757@linuxfoundation.org> References: <20201027135455.027547757@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 87824a4caba98..a47d871ae506a 100644 --- a/drivers/net/wireless/realtek/rtw88/pci.h +++ b/drivers/net/wireless/realtek/rtw88/pci.h @@ -13,8 +13,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