From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796387077; b=vdPbyKxKcHLXfzRFM2xtO3Ip2FCjPtPYYWA+fxBwkzbC4CZ9pVLItGDwzvQOlBSdLoJi MWas7NQ60Oc1QYklF1mhYxJkj8Ud5vC9I3WWpfyBCudrZtr+OcFADNY6E59/lUAxVIKel SxyIGXJEdk1oS5Cnmp0VLRq5Ohh/q4owii+m7QGUrzyIEssCfFL/gAT+dwMgcTBXRsyR4 6pRRnJDhiU1zb6D3jKMGvDYdEW5xJ0RdV2/KGTZBy93/GgtkK7oZ5apWjm317e8hMB4cu x4NGVdlbkiJbw2Eu4Ji5nlDONzHqWJPCadqgeRKiIZQ27vfrGVpyngk0xQiaWiiEjlw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796387077; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=ovLn8LkYYn7cHAF7oFQC8OkeW8tQqZjJEVPjQivqJkM=; b=0zFOX4xCeQFCFfCVEom/Kr1V92GR1Dh6H0laRLNL7HIEruX608D/1JCvQJN+DaVSSxWb 1lP4uhURzmPxQKo9FR8UR1SHsHWxwoJeDvD2AQyGoNH5A83XbCcBk6gYT0WmGKAJPdVNC kxK0EFryjD/BNipeUWuu8b2GSDSzsAVARlivUdfixixeJoh9txxqxa8g52GD3vJ5yA++Z jIKtuaFFraULy/2WzZPCayzVukWVHaCSPxs6q7/lwkdqwuyrbOmayL6K0FmYRyGMQ2cse hn6X7WHb8m7xoMXQvXF5HMlVltG3/aiOc3o5w6nL7qiCn1yLYGpCsE2H5gi/zfGWU+w== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=FAxRL6n7; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 62AF5606A322; Fri, 4 Dec 2026 12:24:37 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=FAxRL6n7 Received: by smtp.kernel.org (Postfix) with ESMTPSA id CFDD91F000C2; Fri, 4 Dec 2026 12:24:36 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1796387077; bh=ovLn8LkYYn7cHAF7oFQC8OkeW8tQqZjJEVPjQivqJkM=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=FAxRL6n791JqFQIyJhPhj24zcWfhgjhMkF9NcpsjMoepCQJ0vCnV6MhGOLwAMzDFz h4CD+7H/RvlwAh/9cxL3YM32jiQjqFY/zDbW/B8fO4cU/jA5jKq8ur6moOIZiVzA+S 3cMvY70sobMfu8VdOLP1lefIUoTZVrq4aW0Bmsss= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Florian Fainelli , Simon Horman , Paolo Abeni , Sasha Levin Subject: [PATCH 6.1 0124/1059] net: dsa: b53: restore the NSP IMP port 2 Gbps mode Date: Fri, 4 Dec 2026 18:54:15 +0900 Message-ID: <20261204100647.434262394@linuxfoundation.org> X-Mailer: git-send-email 2.56.1 In-Reply-To: <20261204100643.980430235@linuxfoundation.org> References: <20261204100643.980430235@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.1-stable review patch. If anyone has any objections, please let me know. ------------------ From: Florian Fainelli [ Upstream commit 41af38324341df9d769641d6485abb67fd5209ed ] The Northstar Plus IMP port uses the switch's proprietary 2 Gbps mode for its internal link to the AMAC. Its fixed-link description reports 1 Gbps, so applying that speed clears PORT_OVERRIDE_SPEED_2000M and leaves the two ends of the internal link configured at different speeds. Force the 2 Gbps mode and flow control for BCM5301x and NSP CPU ports. The mismatch caused switch output queue discards on both copper and SerDes ports, with one discard for every TCP retransmission. With both ends restored to their high-speed modes, iperf3 reports no retransmissions. Fixes: b6a8a5477fe9 ("net: dsa: b53: fix resetting speed and pause on forced link") Signed-off-by: Florian Fainelli Reviewed-by: Simon Horman Link: https://patch.msgid.link/20261029211540.4123250-3-florian.fainelli@broadcom.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/dsa/b53/b53_common.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/drivers/net/dsa/b53/b53_common.c b/drivers/net/dsa/b53/b53_common.c index b7846042ddedd..5c7c75eb5a815 100644 --- a/drivers/net/dsa/b53/b53_common.c +++ b/drivers/net/dsa/b53/b53_common.c @@ -1513,9 +1513,15 @@ void b53_phylink_mac_link_up(struct dsa_switch *ds, int port, return; if (mode == MLO_AN_FIXED) { - /* Force flow control on BCM5301x's CPU port */ - if (is5301x(dev) && dsa_is_cpu_port(ds, port)) - tx_pause = rx_pause = true; + /* Force flow control and 2Gbits/sec on BCM5301x and NSP CPU + * ports + */ + if ((is5301x(dev) || dev->chip_id == BCM58XX_DEVICE_ID) && + dsa_is_cpu_port(ds, port)) { + tx_pause = true; + rx_pause = true; + speed = 2000; + } b53_force_port_config(dev, port, speed, duplex, tx_pause, rx_pause); -- 2.53.0