From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3E2D952E061; Wed, 23 Sep 2026 14:38:28 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790174309; cv=none; b=PR/1e9xOLnA1lPonpsWgwjWu24pcZbljcqlnDwsyd0cyS4XU+znTJ911bL/s1DAncVHqUxii6GivLkNSq5BFhXteHHcZ2TVaWxjTPjRQlff+Ii/m5xAMnmCDFZtja5dj5DKGUQAZhIUgYbdZBLbrnQ05HLufHdRM5SjHSzLQTuE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790174309; c=relaxed/simple; bh=PJ6FTJ8UJKaO0Nep5BWL0lfPP7J8/QR9SFVNrMF2l1k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=J+oyMVQlJGASZA1IJGAvH8NUbDnX2qitDN5okutZfz2IH09xGP4AOSP4KSg0Ux/VKzZCtxL7Ndcr0WS6MVfNK2is4E3zUjmN0SQR756LpGOCIn+FdpigmAiRCzjwx2yWw4/SR3y9LzJcdp3A89GQ2Md0QpY9LW7Fb1Pdsg2ygdY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=mTlTY1nX; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="mTlTY1nX" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9671A1F000FF; Wed, 23 Sep 2026 14:38:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790174308; bh=ZRd3+CMYnoONiti+wtrKwfVZjMbxct8vyE2hHq0KamY=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=mTlTY1nXaJq5V/BtCLTfdiiQRyIOieNqLK/MTlfOirakbjyODcc/cVhz5n6lbhPw+ 7MG9MLOPm3QfH2j9P3wO1/egw8YR+ot/uGak5+hj3QqLvoRNCSFVI8afYpbl/6urkR wMgzRn82UJnP93aP5DS2DI+TZKilzRTvPqET4Hqs= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Ovidiu Panait , Geert Uytterhoeven , Sasha Levin Subject: [PATCH 6.18 034/398] arm64: dts: renesas: r9a09g057: Switch GBETH TX queue scheduling to WRR Date: Wed, 23 Sep 2026 16:01:48 +0200 Message-ID: <20260923140644.311051486@linuxfoundation.org> X-Mailer: git-send-email 2.55.0 In-Reply-To: <20260923140643.441954610@linuxfoundation.org> References: <20260923140643.441954610@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore Precedence: bulk X-Mailing-List: patches@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 6.18-stable review patch. If anyone has any objections, please let me know. ------------------ From: Ovidiu Panait [ Upstream commit 33da68f61d25ef8411489d06514ff627c1f88152 ] The GBETH ethernet nodes don't specify a TX scheduling policy, so stmmac falls back to Strict Priority. In this configuration the queue with the highest priority gets all the traffic, starving the others under load. Under sustained UDP TX load with multiple data streams, this starvation triggers spurious adapter resets due to TX queue timeouts: iperf3 -c -i0 -t60 --bind-dev end0 -u -b0 -P4 end0: NETDEV WATCHDOG: CPU: 1: transmit queue 1 timed out 5228 ms end0: Reset adapter. Investigation shows that only the highest priority queue is advancing while the others stall for more than 5 seconds, causing a netdev watchdog reset. Switch the TX scheduling policy to Weighted-Round-Robin (WRR) so that traffic is processed across all queues, eliminating the stalls. Fixes: 050ee38d0002 ("arm64: dts: renesas: r9a09g057: Add GBETH nodes") Signed-off-by: Ovidiu Panait Reviewed-by: Geert Uytterhoeven Link: https://patch.msgid.link/20260722085353.136986-2-ovidiu.panait.rb@renesas.com Signed-off-by: Geert Uytterhoeven Signed-off-by: Sasha Levin (cherry picked from commit 1ee90b0591630c8db982f13441a56fd9fb07e45b) Signed-off-by: Sasha Levin --- arch/arm64/boot/dts/renesas/r9a09g057.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi index 100d5cab9b12f..dc41290ed9c5a 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi @@ -1160,23 +1160,28 @@ queue3 { mtl_tx_setup0: tx-queues-config { snps,tx-queues-to-use = <4>; + snps,tx-sched-wrr; queue0 { + snps,weight = <0x10>; snps,dcb-algorithm; snps,priority = <0x1>; }; queue1 { + snps,weight = <0x12>; snps,dcb-algorithm; snps,priority = <0x2>; }; queue2 { + snps,weight = <0x14>; snps,dcb-algorithm; snps,priority = <0x4>; }; queue3 { + snps,weight = <0x18>; snps,dcb-algorithm; snps,priority = <0x8>; }; @@ -1261,23 +1266,28 @@ queue3 { mtl_tx_setup1: tx-queues-config { snps,tx-queues-to-use = <4>; + snps,tx-sched-wrr; queue0 { + snps,weight = <0x10>; snps,dcb-algorithm; snps,priority = <0x1>; }; queue1 { + snps,weight = <0x12>; snps,dcb-algorithm; snps,priority = <0x2>; }; queue2 { + snps,weight = <0x14>; snps,dcb-algorithm; snps,priority = <0x4>; }; queue3 { + snps,weight = <0x18>; snps,dcb-algorithm; snps,priority = <0x8>; }; -- 2.53.0