Received: by 2002:a05:6a10:6744:0:0:0:0 with SMTP id w4csp4205430pxu; Mon, 12 Oct 2020 12:12:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxzR72MBqZIXOC1ONNEfBifOZhsj2grfVFrISMuP5VEpjm8M1IPTYg5bp+0tSjXebqc4gDd X-Received: by 2002:a17:906:fb86:: with SMTP id lr6mr29292448ejb.510.1602529978242; Mon, 12 Oct 2020 12:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1602529978; cv=none; d=google.com; s=arc-20160816; b=zHR/eRw/3tUVPClWv8oPWl0805c+FQquxHGxyf3mYOb19+r4iAM6wVW1+enssnfcaF /4AJylbusHVCVHkPy/WwVOBHmq13DnRA2odCjfqe4qeWt8SOfP95u74ACPlcGfWIhWA2 8KPIXJTG0zgrm8lpFA3DVwZIIsuzEj91AYSwt53L2z86u558p8uHA/WZLnmFkA2O6+vh RPgCUYHvPwRNL24YORvfUNKfHdlKsq0O27OXH3zuHWqVg2blaBzuUIK7/O0J+UqUS7Wf UzsoKix+UKgeQTIdRH8PT+24PuDf/EnlIavrn5QIYERCgrVBMchnB7VGdZ6MzB+H1zrk HBag== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=xqj1PRLI31gHJdo3ceAjGAyWrC7mI8v2toSRYaTcLk4=; b=mtQbA1ddXEpwNziIFRfFDU1D1HoX5VfYTWKzzyd6ahNWzaHvsrvAVUfqOtg83sncq7 hKx9VFJwhj0tZezeMBSe1lqT8hlBCMM/c9THLPpC1vaiLWpVaiSgvImffbAImZcQNn6a x5DzuGVuLJnAScbL9S5wSP3JjdQdXPPzOnBuTlGr/qI0SMvvooKUyYc/ld0X2I0ICGpK /nCGX0Xiq6iMSTM+nV9XNW87BeZbMCXC/GufiJVbFpTtPJTbjy0F2T6kVZiDkgN/aKa1 oZwPiuYIvvL24bf3vgmlU73p3Ri082+yyZIdBP+JQjn/tBkHu24YIwa/3rFxHtpnnwqc lH5w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=iGR0DTQC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f3si12851703ejz.386.2020.10.12.12.12.34; Mon, 12 Oct 2020 12:12:58 -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=iGR0DTQC; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391307AbgJLTKC (ORCPT + 99 others); Mon, 12 Oct 2020 15:10:02 -0400 Received: from mail.kernel.org ([198.145.29.99]:52108 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730857AbgJLTCt (ORCPT ); Mon, 12 Oct 2020 15:02:49 -0400 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5FA89208D5; Mon, 12 Oct 2020 19:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1602529368; bh=QRWbLLlc5LX4W6tV/eifgyen0KK9C7vxrps4PQ+Cm0k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=iGR0DTQCbeOzyqgztIr+ENvLRGoi0Pp5AcYYzaNKAXwHP6dkkGrXlpPayZP+we249 kXiKO8GMuJVfRI6X5rZ0vsvXanaqoCgDkPVEZ1XM5X9bNOgWW/hdHzK0pq6SiDUv5V ea+R3bApGjVqTPnZ4ML2xwDnBh8gjUHRieVxgdFk= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: Felix Fietkau , Kalle Valo , Sasha Levin , linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mediatek@lists.infradead.org Subject: [PATCH AUTOSEL 5.8 06/24] mt76: mt7615: reduce maximum VHT MPDU length to 7991 Date: Mon, 12 Oct 2020 15:02:21 -0400 Message-Id: <20201012190239.3279198-6-sashal@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201012190239.3279198-1-sashal@kernel.org> References: <20201012190239.3279198-1-sashal@kernel.org> MIME-Version: 1.0 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Felix Fietkau [ Upstream commit efb1676306f664625c0c546dd10d18d33c75e3fc ] After fixing mac80211 to allow larger A-MSDUs in some cases, there have been reports of performance regressions and packet loss with some clients. It appears that the issue occurs when the hardware is transmitting A-MSDUs bigger than 8k. Limit the local VHT MPDU size capability to 7991, matching the value used for MT7915 as well. Signed-off-by: Felix Fietkau Signed-off-by: Kalle Valo Link: https://lore.kernel.org/r/20200923052442.24141-1-nbd@nbd.name Signed-off-by: Sasha Levin --- drivers/net/wireless/mediatek/mt76/mt7615/init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/mediatek/mt76/mt7615/init.c b/drivers/net/wireless/mediatek/mt76/mt7615/init.c index e2d80518e5af9..992a36602ad4c 100644 --- a/drivers/net/wireless/mediatek/mt76/mt7615/init.c +++ b/drivers/net/wireless/mediatek/mt76/mt7615/init.c @@ -453,7 +453,7 @@ void mt7615_init_device(struct mt7615_dev *dev) dev->mphy.sband_2g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; dev->mphy.sband_5g.sband.ht_cap.cap |= IEEE80211_HT_CAP_LDPC_CODING; dev->mphy.sband_5g.sband.vht_cap.cap |= - IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_11454 | + IEEE80211_VHT_CAP_MAX_MPDU_LENGTH_7991 | IEEE80211_VHT_CAP_MAX_A_MPDU_LENGTH_EXPONENT_MASK; mt7615_cap_dbdc_disable(dev); dev->phy.dfs_state = -1; -- 2.25.1