From nobody Fri Jul 24 23:35:26 2026 Received: from OS0P286CU010.outbound.protection.outlook.com (mail-japanwestazhn15011013.outbound.protection.outlook.com [52.102.194.13]) (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 650104C040E; Wed, 22 Jul 2026 08:54:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.102.194.13 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710488; cv=fail; b=U9sjJ7UslQytp6oF/a1hlIrmQAXRILzi1lZ8LQ8Ll21W4MWoNaGkeegQ3qJBEfEn1ORgWFZfQlHv2CtucP3B/M79UoXaY0zTkE6SYYKrPpeSmzx9U0cpTklD7LtHhNcFhdMhqJ6ZJFK8mOLZ+SkgfFEh/ihJCFytbJWUylX08iY= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710488; c=relaxed/simple; bh=oEE2ncfGF6HAqEOUxhzcWYxE5WkiUBI5zQwzS/Jo3YY=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=jIQjQYTb+R53fB3UKorqIaOaNiGycN3zzgD3kMUzEpObsFwPlgjKnSWSyUZ6YW10Gg8TPCtrw1S1YeZhICpRIrRkxOyKgJxXzyjwSxczg+yY1Zqd0cmKmyEpZmi2D8cYOGzQvopnyePIzC1jryGzRRWgH4I1/VaLfujIr0njKsE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=cXc57CTr; arc=fail smtp.client-ip=52.102.194.13 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="cXc57CTr" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=QTkraHRVEeq/G1Ksw0HOTE50QvcI6yJrChQiVghe3JHPJWNqlhCc6fJesRRe1wTGgpjFGdeDaJEU8lCDs4TttyshjrB4eTniH1p5d9AWw4e/buSB/2yam+U4b6pWsgsE9e8uySsRJDTp+c/LHfMVx3u+ofnHf7iy4vHqQOw660hIMDxKKVW3TmulPKaZpTAGwU/hrTGKxnjMbFALFxMwggK/Ps851wo+YkzrKs4ykv4b1hdIfxtEC+0qP44ju/xru3jwdWlyQn26VhxkJ/mg3ir7B5PPD2RfgkCLqoiJ9SK30X3VB9+PPyCHJ8IEunYIX+4K5MxTNocF2e6P36vgKw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=bvHomws9SNhpzuuhSfZoZ41eSwGBiivMUxYHwEPwZd4=; b=Pa/7IYWKyEwMKQexClJXgRbWVZHgMTwli0xRT6mepquT67enRx+tDRXMt6yd0eZDS2Hqhbf49sSoj5rClIr0W/s3DGPbz4iNBTA/MI7dcOSEJt+ZBfiMAxyT/mFtd1ez7pqlG//Mj0/cxBVzXItj8SFcbhf9RxaBQZ01JjaLH2rJ8+p7954F8J3H3bDt0KrmqlrTU1hjR6bS2KgeF8a/F+ccoj5YsZ+hCrnJT5To0EQR1kiuu3pd8QBsSVfnjR6Ujd1z/RDvtRU5IK0Wrw9yWjScxgSLcUYFIdpc3+5kn/U7c6NGiuPhGlOgRgFSgfCeRMTkFjakw29nwI8b7KuGKg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 8.62.32.50) smtp.rcpttodomain=bp.renesas.com smtp.mailfrom=renesas.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=renesas.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=bvHomws9SNhpzuuhSfZoZ41eSwGBiivMUxYHwEPwZd4=; b=cXc57CTrmnLbAG5SDke1NcoS39/yIgO/GF6DPXpNoAS1hO4nXL0FPKUofUhdutPhkaNZh8BV6b+wZKLd3m0QEVCYnTe/6/8aa5KNXi3XqJT8uiK77iEkk4NFGpdlFxf+abXVNYl0LReP6ftOPMBErLxMwnCQHJUR3gZ2l9l2Vd8= Received: from TYCP286CA0330.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3b7::19) by TYYPR01MB16327.jpnprd01.prod.outlook.com (2603:1096:405:2de::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.10; Wed, 22 Jul 2026 08:54:42 +0000 Received: from TY2PEPF00005623.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:3b7:cafe::3e) by TYCP286CA0330.outlook.office365.com (2603:1096:400:3b7::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.10 via Frontend Transport; Wed, 22 Jul 2026 08:54:42 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 8.62.32.50) smtp.mailfrom=renesas.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=renesas.com; Received-SPF: Pass (protection.outlook.com: domain of renesas.com designates 8.62.32.50 as permitted sender) receiver=protection.outlook.com; client-ip=8.62.32.50; helo=ejcrelay005p.adwin.renesas.com; pr=E Received: from ejcrelay005p.adwin.renesas.com (8.62.32.50) by TY2PEPF00005623.mail.protection.outlook.com (10.167.240.54) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.5 via Frontend Transport; Wed, 22 Jul 2026 08:54:42 +0000 Received: from vm01.adwin.renesas.com (DEU-5CG20946WF.adwin.renesas.com [10.226.92.34]) by ejcrelay005p.adwin.renesas.com (Postfix) with ESMTP id A485530007EE; Wed, 22 Jul 2026 17:54:37 +0900 (JST) From: Ovidiu Panait To: geert+renesas@glider.be, magnus.damm@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ovidiu Panait Subject: [PATCH 1/5] arm64: dts: renesas: r9a09g057: Switch GBETH TX queue scheduling to WRR Date: Wed, 22 Jul 2026 08:53:49 +0000 Message-ID: <20260722085353.136986-2-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> References: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY2PEPF00005623:EE_|TYYPR01MB16327:EE_ X-MS-Office365-Filtering-Correlation-Id: 7d199a64-b1f0-4194-89b6-08dee7cedf29 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|82310400026|1800799024|34020700016|376014|36860700016|6133799003|56012099006|11063799006|10067099003|22082099003|18002099003|12100799066; X-Microsoft-Antispam-Message-Info: MWXmvX6BfKcW9X2Lm9+arzXw50yJJJvRhJaPR7nJGNMHjeuzPrXDGXWO+iKNYcz5PlcKGgxnX+fgWWVsTAShy3cXJyFhIjCIwMyZWTx8NdJfyGctZF9T91i6DgBMWgHJsUR4IRtIlUOAl5EmE7znoQbYMfUS1wypNyPwuTeFqA/nX6A2VCC1UmNh5EOE8aWAqmfLUkuyEfZmgrOFTOGJbVLGjKhjP9G9SshnFJfKcqSzSb2BGI8KQJF9vF7p0ZgHAlmbqDro0Y/ee/OKq6B4X4dg5ELvLGxXVC7bOcv8WTvdS3A8Tdc3gmepWxVrkBDTL2nJBO68ynW7FjO4fee4PIHs6WVG7oEr+YUIyxk14N3BleE0iHk94YZOeFOVrMpuepkRbbmfI7vBQDj8rIWCKp3GnQrjhPfUzwKx0LzML6mRg6qnm+ZMGVLnRgLnwArwW1Iw2eYH8iLshQges7JwUKtHi6eQ4jJYwAcIDz3WHF8e5AW4mHCa4wcmz7/+2LUdPdV3uRKIYKQtfobtaDGg0gLdANFLiiirTuaBA6nTVrUVDazDUBCq6AGw9s/AdP6qki3CpLSw8ggWmPCQkNlxYNKRfoEefpVTo5gCHhw+d3cApIyM6LbVrLfbCXPS6NpTyzd9I7nRVgYrlVvSi5yINW7zBtLZmzeWn2pUMdZAXNgMVaMrjcOvbBocyFYcJGnYgzHC+cKgR7rKkeQtocRTsA== X-Forefront-Antispam-Report: CIP:8.62.32.50;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ejcrelay005p.adwin.renesas.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(82310400026)(1800799024)(34020700016)(376014)(36860700016)(6133799003)(56012099006)(11063799006)(10067099003)(22082099003)(18002099003)(12100799066);DIR:OUT;SFP:1501; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ybkFauWOaBRDpTAJmvImOxTUl5iuB0oUBdoWDMsw2MxLynPnFnKo+3ojkqWINZQALcjAIHQGqju4lPUkD4wVQOKB4yt8A67fl/vAGPKjVi7tGYuMZa3hz+X6vOrwaxPK2CIk3bhL/OS1NBM3+MbgjfOe7DI8ir6XtN2+An4inl6aegcstN0jaKfefAFOjyvfbSyc12Neh3VFs9UbLlsidcpBd78PoshfVD0p/JuACkKU+3QF/yey/B0lWWPDBKXK8D0vjmmroQ+J7b3AKerrUi9A9aUQrz2wt5kqucThtX2GD3JFVEcT/M9hX00Kug5pX3diQRJjn7LhbrcfBLGSydwMTTNWObI6bE/1MdeyykkW6KWTYxnWuIoABDJi+TF6/bCDMyoK0wHvvfEe77d1/x6e7GCGKKb9lij4sWPfM8uBtsMenl6PKl0EV1G7eN5m X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2026 08:54:42.6002 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7d199a64-b1f0-4194-89b6-08dee7cedf29 X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=53d82571-da19-47e4-9cb4-625a166a4a2a;Ip=[8.62.32.50];Helo=[ejcrelay005p.adwin.renesas.com] X-MS-Exchange-CrossTenant-AuthSource: TY2PEPF00005623.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYYPR01MB16327 Content-Type: text/plain; charset="utf-8" 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 --- 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/d= ts/renesas/r9a09g057.dtsi index 639693d464a7..188ce9f9c7c2 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g057.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g057.dtsi @@ -1715,23 +1715,28 @@ queue3 { =20 mtl_tx_setup0: tx-queues-config { snps,tx-queues-to-use =3D <4>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; snps,priority =3D <0x1>; }; =20 queue1 { + snps,weight =3D <0x12>; snps,dcb-algorithm; snps,priority =3D <0x2>; }; =20 queue2 { + snps,weight =3D <0x14>; snps,dcb-algorithm; snps,priority =3D <0x4>; }; =20 queue3 { + snps,weight =3D <0x18>; snps,dcb-algorithm; snps,priority =3D <0x8>; }; @@ -1816,23 +1821,28 @@ queue3 { =20 mtl_tx_setup1: tx-queues-config { snps,tx-queues-to-use =3D <4>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; snps,priority =3D <0x1>; }; =20 queue1 { + snps,weight =3D <0x12>; snps,dcb-algorithm; snps,priority =3D <0x2>; }; =20 queue2 { + snps,weight =3D <0x14>; snps,dcb-algorithm; snps,priority =3D <0x4>; }; =20 queue3 { + snps,weight =3D <0x18>; snps,dcb-algorithm; snps,priority =3D <0x8>; }; --=20 2.34.1 From nobody Fri Jul 24 23:35:26 2026 Received: from TYVP286CU001.outbound.protection.outlook.com (mail-japaneastazhn15011020.outbound.protection.outlook.com [52.102.171.20]) (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 80AA948165E; Wed, 22 Jul 2026 08:54:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.102.171.20 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710495; cv=fail; b=ljtYPZAtml2gqaEX9wIV0vDpDUg6D//4UuO3Xzuf+10ehigC6V9/mmoHe0CvUOyIT59qqVb5NjpApwJUMvjuNvSwrvyBAKD5ls31dkBCe9HuJ0b10p090WLIWfCR5z2oVYOQt5wQ6I8kgEJd02ymgBe9DSO82udr5VQ6Y2VTNAg= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710495; c=relaxed/simple; bh=oJkFBPRaq4gLYkA4y3Pyml9BXcJLr4yEianFiyrej0k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=EVXnWwI3BjtFZm+kYMrT1Xg10OT/fsICCumAUJdnsvbbt6kXmAgC/BaC69tG8NWckCtaomi39h63WWwa0rUb39K22/75thgPC1ZYizDduj5E65bqHxIlIUDR4symbEKyCF7l8iI+GLg4kt/QOF0GluaY76Q1V+iyUVk9MxWTTx4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=hB/oKFEW; arc=fail smtp.client-ip=52.102.171.20 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="hB/oKFEW" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=RM47WMO+LabvnXWExExSDJuOVcP3j6DCgEvCi+zm8veLue9s7Tz8N/kA5Hb+K7xUtHiO8VbzIR9CVP2pyyEq35pceTN7GNfNXZdbLKFvH0l6odzfDZFbxyiNLOivOzaV9EjVqYpNuLP2p+1XCsjvZLXug/y/PeS/WpvZ7f8JZ7DAY5V9QsHg7wgyZnoh3pPjDEqs2HxUf68t4Ama/jkCP06lJNV6p4VoQwTluQCqe6CGRJU75KmlFEG97ZZTxSKkKQUbZnHfANMsXJbZ/Of78VfCMAbyAxG4F7KTVKra2lX0Z+Dz8/EcWFnelIjNG1xjTDHADHoqBh8MthUM4QN0RQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=NKmVE2hkp8hhy/6XeKVyYAOZYxfIxxoWBxQ1T5V2d5I=; b=hBnms7vSRiV12VWLG0XG/Jtpu5dIlZ42tInlL63OluOd5cEXQLxWEzmaQOVP+S0hjd3l9S+HndGfO6vscSzGnSRmHR8py9jF07pysqm3qn/dv+ri4G9N/9LgXSN1oJ1XrDSfYTGDKp2PK/3FqDK11dElxdSz2EjL/3zpYCb9r1holfJswqv344RReMlg9ZqdIJMnpGQweNujjXgA0CzvmsiJADa6N3TMdBYM9AW/ElAvCpJyGw/5N7IniAAroix7DpdzHzDJXiU6069ivIcLQyS4xkcycAdMRKRUi6bzwTx6vyAwjeJenAwTHYdO2y/2jCxcxS2i8/oqTcCnBUKI/A== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 8.62.32.50) smtp.rcpttodomain=bp.renesas.com smtp.mailfrom=renesas.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=renesas.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=NKmVE2hkp8hhy/6XeKVyYAOZYxfIxxoWBxQ1T5V2d5I=; b=hB/oKFEWqfULCrOrqJXJNmA3zavcQQPzgF+8diVPRI4VAE0dJtHbg3D8xvz+HvIYUvtiomPSSP5YXN2vykMRutdtoLYzlZEWIn4hElbcqr/ThQCGnXE4t2AwogVNeNNAoLOzjGdMotZfFml0rME8atS2wdSZQ93CorGBgnGxhQI= Received: from OS0P286CA0048.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:9e::17) by TYWPR01MB10096.jpnprd01.prod.outlook.com (2603:1096:400:1e1::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.10; Wed, 22 Jul 2026 08:54:48 +0000 Received: from OS1PEPF0000D216.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:9e:cafe::55) by OS0P286CA0048.outlook.office365.com (2603:1096:604:9e::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.10 via Frontend Transport; Wed, 22 Jul 2026 08:54:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 8.62.32.50) smtp.mailfrom=renesas.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=renesas.com; Received-SPF: Pass (protection.outlook.com: domain of renesas.com designates 8.62.32.50 as permitted sender) receiver=protection.outlook.com; client-ip=8.62.32.50; helo=ejcrelay005p.adwin.renesas.com; pr=E Received: from ejcrelay005p.adwin.renesas.com (8.62.32.50) by OS1PEPF0000D216.mail.protection.outlook.com (10.167.240.23) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.5 via Frontend Transport; Wed, 22 Jul 2026 08:54:48 +0000 Received: from vm01.adwin.renesas.com (DEU-5CG20946WF.adwin.renesas.com [10.226.92.34]) by ejcrelay005p.adwin.renesas.com (Postfix) with ESMTP id 4BB3330007EE; Wed, 22 Jul 2026 17:54:42 +0900 (JST) From: Ovidiu Panait To: geert+renesas@glider.be, magnus.damm@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ovidiu Panait Subject: [PATCH 2/5] arm64: dts: renesas: r9a09g056: Switch GBETH TX queue scheduling to WRR Date: Wed, 22 Jul 2026 08:53:50 +0000 Message-ID: <20260722085353.136986-3-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> References: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS1PEPF0000D216:EE_|TYWPR01MB10096:EE_ X-MS-Office365-Filtering-Correlation-Id: 8895e422-8fa9-4cc1-6aff-08dee7cee292 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|34020700016|82310400026|23010399003|1800799024|36860700016|376014|6133799003|56012099006|11063799006|10067099003|22082099003|18002099003|12100799066; X-Microsoft-Antispam-Message-Info: la0kqRL5wLa9I3MyzJDJSiODUt6eMdC+NySZBSdWDkX5vRESiPxZ99DRG6Zoa4IAZeKX8NfOSs0z6SreIlJ2BiTi+2eceDMv0FnHKtSej7aK/1VinD17SyKflydcqcpnbHLodkKMD1lMGh1HeNDMmagu4EerqVAAXKSWgi0PiGmuJCQnlCfjD+15amr2x2hW2E/NSt6Us/nrwBIvQZcn1pqJhu29lxx4QwufXxbfy+54SavLzEwewkoFUIloMghPLjzDgQQBh+gw9R1um0jBk3Xax/IMEhk4nnl5M6s2M7zRastn8anMGhe6c4aBZUBhCfnZPYa14Q4W9e4OmwYObZY4g7wBgTp6DaRS+rbdbAuZBy+IQPihdn/wplcsH876BBYQ+mzgXOlXhay+2ddRiiVs5KRiveLdKBC/1OH1w43I44aHOjlDl8KfaZtj3tn6cdKMI4d5th+Xd0PoPmSinz1H4Dpg9gXkGWp1ix3Xyi+2DgCohZrbFUdtG6MWaNRcHwLV0/jjlTYqtSdQVPFjbJualJbSQW3fcG5s+anX7AqfHPvgk5HwkvruHsr4GOPeAVNQ8dpwTrZAsMzziM5pbCg2uptFRQATBasCG15q2kG258nRQ9pZpdqeWZbFEWcY6pT5OL/SJzZVJbDmwe1faRp7nK95vmCxzJSxxfXRQshhr+rvq/tm0nWkfyk0NCBicCdpfjIGHyEeTH8ijPXPCw== X-Forefront-Antispam-Report: CIP:8.62.32.50;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ejcrelay005p.adwin.renesas.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(34020700016)(82310400026)(23010399003)(1800799024)(36860700016)(376014)(6133799003)(56012099006)(11063799006)(10067099003)(22082099003)(18002099003)(12100799066);DIR:OUT;SFP:1501; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: vYWffjZzMGILTWKoOnEqyRywyUHVySfUcFBI4C+pkjlkc+mWJuh77aMnO1N+3EoRm3oWXtSynSUxptM5dhGeWojkIOj/LQym8krRRvXKDuUgvKrsqmIGpBMtgORys5f+bDDigaH1fK1mb0jj8IHmLPh+E83Akl9/HMREVnom1HFYjNtvpbaklJCkXivzOv6qdC/SilJizMk4xFVRqvjhzK+RYLWJJFmNEwiTXOMOa6FdbzkUS/kPdCwxBNgvOh5W8PcG8C/TRjSX58NQA5UU5SRLTCI7BeMqgGX+mMGY+rv8TfYDf8DxQvL8SV9sbimBAE2qK/op356jUOExKiaROxkP9U0FqvE5JRiKbMkp4WkIMbMLADSwdbv7quQzUUUqWKt4+lZIzE/KsGFaRJcsSQWSYKydR8S5c3zvamX9azIhEeVa9PEL3P2GMorUQdFk X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2026 08:54:48.3087 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 8895e422-8fa9-4cc1-6aff-08dee7cee292 X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=53d82571-da19-47e4-9cb4-625a166a4a2a;Ip=[8.62.32.50];Helo=[ejcrelay005p.adwin.renesas.com] X-MS-Exchange-CrossTenant-AuthSource: OS1PEPF0000D216.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TYWPR01MB10096 Content-Type: text/plain; charset="utf-8" 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: c8c8a57c5b40 ("arm64: dts: renesas: r9a09g056: Add GBETH nodes") Signed-off-by: Ovidiu Panait --- arch/arm64/boot/dts/renesas/r9a09g056.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g056.dtsi b/arch/arm64/boot/d= ts/renesas/r9a09g056.dtsi index 76fa34ff3d07..77c2221a9e2a 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g056.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g056.dtsi @@ -1585,23 +1585,28 @@ queue3 { =20 mtl_tx_setup0: tx-queues-config { snps,tx-queues-to-use =3D <4>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; snps,priority =3D <0x1>; }; =20 queue1 { + snps,weight =3D <0x12>; snps,dcb-algorithm; snps,priority =3D <0x2>; }; =20 queue2 { + snps,weight =3D <0x14>; snps,dcb-algorithm; snps,priority =3D <0x4>; }; =20 queue3 { + snps,weight =3D <0x18>; snps,dcb-algorithm; snps,priority =3D <0x8>; }; @@ -1686,23 +1691,28 @@ queue3 { =20 mtl_tx_setup1: tx-queues-config { snps,tx-queues-to-use =3D <4>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; snps,priority =3D <0x1>; }; =20 queue1 { + snps,weight =3D <0x12>; snps,dcb-algorithm; snps,priority =3D <0x2>; }; =20 queue2 { + snps,weight =3D <0x14>; snps,dcb-algorithm; snps,priority =3D <0x4>; }; =20 queue3 { + snps,weight =3D <0x18>; snps,dcb-algorithm; snps,priority =3D <0x8>; }; --=20 2.34.1 From nobody Fri Jul 24 23:35:26 2026 Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazhn15010016.outbound.protection.outlook.com [52.102.171.16]) (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 9A5D64D990C; Wed, 22 Jul 2026 08:54:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.102.171.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710499; cv=fail; b=dMC88rtPXPW7l45FGgYCEtF+T5fWu01kSnTpJ2o8/CB+r7DsfioyQ5Eywjw96/LTFdkGuwduptFUwxbWgIPOSSMng6qdP6c2ZU4+DDLGF6qwOMwD1VPOJgncEbY4WNi4H2HwPUn4ANMfcz7VMBbIxuVjfg21mL61ZtPsLyw0/2g= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710499; c=relaxed/simple; bh=EOEyRFrSzanFA1rUOpncx+QQrIK8aWjm5JzfsmiwWvw=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=oMbf/M45bMXVfiOXzo62abTEFYDRSRlofzYRrcQdPkKuBAcyY9fq39Gx/IBDQg5nyb3pHZg8ancZH0ngIlMVKS2UOa43BM/b1TSsU82OyzFZ9d63j3B9ZCk9yZvNsAWY7V4bj99zG4a9iBS75VhOvhccwbKld6ECyEjwY7qUHFE= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=jsqxW5CX; arc=fail smtp.client-ip=52.102.171.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="jsqxW5CX" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=u6bHlzlDviUdpks4/iwewoAmMXfmWcFBM4lnEoGWDE02FAFj4UUtUycUVejDKba1Wfmj7qSsGjoQqNCX79tEK7t+xGLQqWag8yLXzQazgxui/WKEG5lbMd4HnsqDUA7w2BKQqKhxFb4P1HsJnCpMfXDXtm/6IfUiT+lIVwQirySjsHr636KZP7DkoGhs3iWfIHTWEwAt/MmhuY8WZDhb/qOxXUsOmIXBsyLIRsb1/Si+Z7dHrOSYHqVPaGnTc+InjYfQSiw2tRmNleqkemFyChh3Epysy1SAF52ZV8BjSzkD/8vBaHlrls88gOKOJk2PbgfxHx0N8RXAn/s4SYIrag== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=8htD/TyoIXXkR9eke73sYVkzVlAu3BDWTxKwwaYapd0=; b=IAgVIQdWkt7edHVDiLOimVIzP8xls9X8LClf8HDX9LZvhKBiueuvQUTuVnq4p1DbZ/eHoydMogOa24i/EFhXUGmkGKPTFN1xOG5/phjNsQ5ICO68IIy534U4qWr36e30ccRVmBJUM1gjbA+TXYWUAdmKL6TRgVtUO56LBaiOxttRZHXSGKClGpM5lfmUf5S0UyLh+7a7eYeh2P7QkgrrlDJsY9vtSFwpoWa4epN2C9L7fpK1S9tjBVa2/+1Kd/WiMnJwfsoY3N8Imng8uU9SX6YGGjUiOA73hTCe4ieP0LIAdG0AV5Kc8Kr5NWtj396WtJsANgGzXvkDfnrJX6CYbw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 8.62.32.50) smtp.rcpttodomain=bp.renesas.com smtp.mailfrom=renesas.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=renesas.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=8htD/TyoIXXkR9eke73sYVkzVlAu3BDWTxKwwaYapd0=; b=jsqxW5CXBXwVDF4P+X+D3wARaZeiaNbHol5q8pzX3LoBh6qtGBCGdAU/YwDc8vBYmtBXymLqShpNEi33wI+m6ypRNWdbPXH3yBTmT9kz2IxoZg6Bl60ZE0SaXUVOoYZCgeGobDrzmlPVp+VNJGCw8GJDOWURI/ryYCmVFv9abw4= Received: from OS3P286CA0021.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1f4::17) by OS9PR01MB18585.jpnprd01.prod.outlook.com (2603:1096:604:4a1::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.10; Wed, 22 Jul 2026 08:54:54 +0000 Received: from OS1PEPF0000D214.JPNP286.PROD.OUTLOOK.COM (2603:1096:604:1f4:cafe::9a) by OS3P286CA0021.outlook.office365.com (2603:1096:604:1f4::17) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.10 via Frontend Transport; Wed, 22 Jul 2026 08:54:54 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 8.62.32.50) smtp.mailfrom=renesas.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=renesas.com; Received-SPF: Pass (protection.outlook.com: domain of renesas.com designates 8.62.32.50 as permitted sender) receiver=protection.outlook.com; client-ip=8.62.32.50; helo=ejcrelay005p.adwin.renesas.com; pr=E Received: from ejcrelay005p.adwin.renesas.com (8.62.32.50) by OS1PEPF0000D214.mail.protection.outlook.com (10.167.240.21) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.5 via Frontend Transport; Wed, 22 Jul 2026 08:54:54 +0000 Received: from vm01.adwin.renesas.com (DEU-5CG20946WF.adwin.renesas.com [10.226.92.34]) by ejcrelay005p.adwin.renesas.com (Postfix) with ESMTP id EB11E30007EE; Wed, 22 Jul 2026 17:54:48 +0900 (JST) From: Ovidiu Panait To: geert+renesas@glider.be, magnus.damm@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ovidiu Panait Subject: [PATCH 3/5] arm64: dts: renesas: r9a09g047: Switch GBETH TX queue scheduling to WRR Date: Wed, 22 Jul 2026 08:53:51 +0000 Message-ID: <20260722085353.136986-4-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> References: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: OS1PEPF0000D214:EE_|OS9PR01MB18585:EE_ X-MS-Office365-Filtering-Correlation-Id: 4492acd2-ae27-40b3-c3ed-08dee7cee5f8 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|34020700016|1800799024|36860700016|376014|23010399003|82310400026|11063799006|56012099006|10067099003|6133799003|18002099003|22082099003|12100799066; X-Microsoft-Antispam-Message-Info: Xg7jVUbX8SyPcMjd32WgzzJWvw2OUtTsOXFFTgMpPh+fwZy5YtHM3DXw2JGbo8bEyqW8jVB00zHuxzxy5CljRiwtEBcq0ou7ryUvcHk/2MHKKkQgG6YXdw8UgNK/nyrXOSXoRGvHoW59jRZJJyxLJzmZvlY7VyxEe7RR3eOiX9lX5GxTxeB04rsNZJjT9qqN5UL1csOfQwmpwvyFTRXozwVs7SF+PlkEroOupSgFSOrG3iCBBsKLL0B2AurRMlh8dWENuwVg6L73UB57BCjytSDnDMeX6/gAfpb8HFG59RTOqq2u1cyZlzGLGvtyQuz+GWlCvKxb1HARl5P6Pdq0D56XFK+1j2EL1GLCbGolAtIgwl/dQR9Ly5D9Un7YNYCMsV3XkE4XzQqPGZ5j9FKgMJGD3jMSWWvJiAdSAMQATwCGKQLRHUzMF8U+CeON1ylO+N9W3Mwj8KVKEZjHZjaonRo/44sJuj5I2VTnWHLssZt9tyFcpQ4LPv7CraNwso6kuQEF94pt5UaK+QQqdxdBnCITXv7sflEPl/MpCBCf6P77RF8zRfuvwlsiYI9k8ckMonw90zkTFoMAdYDmC23evh1yqn+wVAbChP+a9TH1kXNrIc/VdDulWe4EXXwCA5OX1Ayt+jkBkxwhzDfsOgyusmUpGJaRZJxWRsqc2bLFnDBEb+GFi9bUdKWdYIWIpRZfO2go3rFHKLLPzWuPOgjVCQ== X-Forefront-Antispam-Report: CIP:8.62.32.50;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ejcrelay005p.adwin.renesas.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(34020700016)(1800799024)(36860700016)(376014)(23010399003)(82310400026)(11063799006)(56012099006)(10067099003)(6133799003)(18002099003)(22082099003)(12100799066);DIR:OUT;SFP:1501; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: 6fDudjFQA7fuiFm08E0ok0gjtKtaAa4fud1l6feIsriCDvYe4knWnBpHEnbFT5TdYBKxjxLAMEKdY7jxOB5ohbkifNp9jBvMHMazQ4uHv8U9VgXcalDzRLprs3VjHRo7SIv2rADyHWD9BlK9AHNNZGePsXCW04ux52MtMPn8LOP848BlE8TPCMp/NCuM6pUCXLr8+3Aw1F1KHApBm8KEaARtlSXyk/FCTGmC+XNoPb2i2AnuPwbsyPwaNFdy7l81xBWyM+7Jra3kfnGC6SIMhyj648iNLNDnd7vWS1JIwmxbYJ5VycsTOQdk33JSWjw71MFWnkrG/a0EgH3vkxvXKIb/qYK09ACrEiKd42OK3LLpQn/M73t/N3krq8ZbAQ7Uoksv4QUaqrC8WSqQakJZXDGPisg8CaGZcsA3obzE4m86iFYWcacuXNfNbat0Av9v X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2026 08:54:54.0103 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4492acd2-ae27-40b3-c3ed-08dee7cee5f8 X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=53d82571-da19-47e4-9cb4-625a166a4a2a;Ip=[8.62.32.50];Helo=[ejcrelay005p.adwin.renesas.com] X-MS-Exchange-CrossTenant-AuthSource: OS1PEPF0000D214.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: OS9PR01MB18585 Content-Type: text/plain; charset="utf-8" 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: 41ffbb1c42d3 ("arm64: dts: renesas: r9a09g047: Add GBETH nodes") Signed-off-by: Ovidiu Panait --- arch/arm64/boot/dts/renesas/r9a09g047.dtsi | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g047.dtsi b/arch/arm64/boot/d= ts/renesas/r9a09g047.dtsi index 73757e8e2197..060405d4a2dd 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g047.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g047.dtsi @@ -1913,23 +1913,28 @@ queue3 { =20 mtl_tx_setup0: tx-queues-config { snps,tx-queues-to-use =3D <4>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; snps,priority =3D <0x1>; }; =20 queue1 { + snps,weight =3D <0x12>; snps,dcb-algorithm; snps,priority =3D <0x2>; }; =20 queue2 { + snps,weight =3D <0x14>; snps,dcb-algorithm; snps,priority =3D <0x4>; }; =20 queue3 { + snps,weight =3D <0x18>; snps,dcb-algorithm; snps,priority =3D <0x8>; }; @@ -2013,23 +2018,28 @@ queue3 { =20 mtl_tx_setup1: tx-queues-config { snps,tx-queues-to-use =3D <4>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; snps,priority =3D <0x1>; }; =20 queue1 { + snps,weight =3D <0x12>; snps,dcb-algorithm; snps,priority =3D <0x2>; }; =20 queue2 { + snps,weight =3D <0x14>; snps,dcb-algorithm; snps,priority =3D <0x4>; }; =20 queue3 { + snps,weight =3D <0x18>; snps,dcb-algorithm; snps,priority =3D <0x8>; }; --=20 2.34.1 From nobody Fri Jul 24 23:35:27 2026 Received: from OS0P286CU011.outbound.protection.outlook.com (mail-japanwestazhn15010016.outbound.protection.outlook.com [52.102.194.16]) (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 C7F3C494A16; Wed, 22 Jul 2026 08:55:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.102.194.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710506; cv=fail; b=jHMOVcRQ9AMS/r8Tce2mGuekzsFOPNNNPqZsO9CvTStMM3DT0NsHh7yQoIEJnFs+6L36paPyoo9cAXv4jJBFkjHyfCwi2wFkxIYZxBtxKz3hcrHQfdXFIVRc9//OJV7voePzJgcnxkF6uEeFS0mmcWnZbQJ0m/AJfEv2lSb8CS0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710506; c=relaxed/simple; bh=NH+ZLb15N0PkicadtRfO15BdPQ901thkcQkyo14Wy4A=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=PbPxkO1b4bqPmYdlFA+gKrjA8VLYaDzOsauRY4a/zzdAY8CZtZaEuWSX49StaSs0ZNJRA+kPQFBLmK2h25yyHMqvLMoX+V6IADrXOV4YH11dXeDMMGSNSleFYg66AV+3DeFciMyOKOacGHvL7z5Dok/JBi28Q4mwa+CkFd941k0= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=fyUynp8b; arc=fail smtp.client-ip=52.102.194.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="fyUynp8b" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=DqGH6wlXBs9bA99pDp8ukdvTQ4Dq+Vpp7KjTjM3niz2nLmVZ3ditqCynzuPyufOhtWq916ILp+dPjgxHqOP/mIKRrwLDxRe+SAmn8vsixNxfiCm24J+Bw4lxyJYZuzQ2B6igEh0loaZcABhgdY8dr1l/YHdt0WtiWQmXFMf/qnexvq+5NBYssWMM8Bu3RzsVvZjrwvUeuSDzOxFC/inY59y58qSomuovq3MivvKtFJ2ATkrzB1xQR21MzThzBheHXmfBzXbCeRwnJM+c1kW/xlj2cm0da9mPHfLlq9ZNtwa6e3x2WA1pMzJa/fAjM27P+EHDuN2Eg6gWfOqzD3akPg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nBUk2WCSTTM8eCQXijBVuNGUQY7tGHaa2+AELzqPCt4=; b=mTNf6fHbo7xmKc/Xt2sZjzsV33YY46ZluiT0dqtYFWY8RdwFoniRqY71jIhamjJPQfrUlXhbFeoU0mw4d6Pl1AkVRNv9e1ex9aOgB/Lz4jwcQeDYBQV1MTeLGx+WksoKFt6uJlsrqxHioa1pkV6hkkuG2BdCplwDHU3tILV7BFYR0Uq+Z0uUxCIVqIy/yKajrrGfmyezp2yU1LrBjeFwD4wE4orNdf11bCegU2hc+388u8dUCJSlXWE3Nl3fV7OCI0MacAiTNBt3tONYFh7NhssFqccZxpH/VkJYY2+JwQFx6B7ASCBPRki5Peg+eka2Vz7oafk8aZD3Xixhm+SEyA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 8.62.32.50) smtp.rcpttodomain=bp.renesas.com smtp.mailfrom=renesas.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=renesas.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nBUk2WCSTTM8eCQXijBVuNGUQY7tGHaa2+AELzqPCt4=; b=fyUynp8bht6SxiMyJNaf+JicY8XRkD41dlEiaYyouVjdaX44ln/Jwmh/jxvCE+td12pH2GG6OGubRbW1Jhk9+jTJWhpcmWCPOlQ2XJRapGLD2rsa19FUL5JCNfWff/fZl2r8Ee3oEQlYAsUA9qb516hoDg6Wwv2zbQVQgzUkso4= Received: from TY6PR01CA0008.jpnprd01.prod.outlook.com (2603:1096:405:3bc::19) by OSCPR01MB12601.jpnprd01.prod.outlook.com (2603:1096:604:33c::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.10; Wed, 22 Jul 2026 08:54:59 +0000 Received: from TYO1EPF00005024.JPNP286.PROD.OUTLOOK.COM (2603:1096:405:3bc:cafe::43) by TY6PR01CA0008.outlook.office365.com (2603:1096:405:3bc::19) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.10 via Frontend Transport; Wed, 22 Jul 2026 08:54:59 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 8.62.32.50) smtp.mailfrom=renesas.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=renesas.com; Received-SPF: Pass (protection.outlook.com: domain of renesas.com designates 8.62.32.50 as permitted sender) receiver=protection.outlook.com; client-ip=8.62.32.50; helo=ejcrelay005p.adwin.renesas.com; pr=E Received: from ejcrelay005p.adwin.renesas.com (8.62.32.50) by TYO1EPF00005024.mail.protection.outlook.com (10.167.240.21) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.5 via Frontend Transport; Wed, 22 Jul 2026 08:54:59 +0000 Received: from vm01.adwin.renesas.com (DEU-5CG20946WF.adwin.renesas.com [10.226.92.34]) by ejcrelay005p.adwin.renesas.com (Postfix) with ESMTP id 9E40B30007EE; Wed, 22 Jul 2026 17:54:54 +0900 (JST) From: Ovidiu Panait To: geert+renesas@glider.be, magnus.damm@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ovidiu Panait Subject: [PATCH 4/5] arm64: dts: renesas: r9a09g077: Switch GBETH TX queue scheduling to WRR Date: Wed, 22 Jul 2026 08:53:52 +0000 Message-ID: <20260722085353.136986-5-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> References: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TYO1EPF00005024:EE_|OSCPR01MB12601:EE_ X-MS-Office365-Filtering-Correlation-Id: ed9b789e-09e6-4a84-ccbf-08dee7cee940 X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|36860700016|23010399003|34020700016|1800799024|82310400026|56012099006|11063799006|10067099003|6133799003|22082099003|18002099003|12100799066; X-Microsoft-Antispam-Message-Info: EgC/TJjZxPL5ra9jaZV69+iEdv3IIqmNoaqZ9+6De+LkkxEvOnrYGmwz+dt2r66ajCx48XXBf3VWDg3XJcKktq8fDltPBiG7+Jkab5v6a8Y97u7/lpwRAbtcejw6iCzWud7JI88ivGEqz//dN6qrkfsv22EMpwJOt68/FbNh7MnUX4SALMLPsrkLJfJsjFkwfujdonstFxuU6nZRKOcRHpQ9P6xuYyMFBRKeSHaPI8ACNGFaDcTessxJayBJ7QpB6UT4TKlJPi2Zr4z4WQ5SfcoUCLU17sEp7X4ZDkWW/ZQIKJT0Aktgb2d5gXEfMdqo7zMTEtbHYMUkz13Rgfb/1bCKV7MupIVTC+8tdfrMsigkADIpa5Oiud+WVUoS+s4DmeDw26nPmmZGMcRVg9ivbuXQZoOAqFaK+b42nd4vREys5qMOHLbAlOeFCEUkMd3fJzX8E6dAlDQJBqnTWvJyeImRelLHhWiqVQaDOwhxoE/OIK/8J0euroADD40ACBSp+CFGa/GuOUHgwTUxI8tN8hQp7guAP9xkcDqCkQwGBkxfIanmG5SonjzY2qqds48CqdDFKQxiEWB6/xNrY4tLLIDKChej8HdcexbKo3lo7Zu7wfmu4m74rzN8Jy+8nW7pJd94sNB3cmC+M1MFN5/qKMvPdnXAztt7B+iaL+GtT0vFWVYHlQN6hmirhpxXeRyQQ1LtFRNj3o6D5zOSU0ML8g== X-Forefront-Antispam-Report: CIP:8.62.32.50;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ejcrelay005p.adwin.renesas.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(36860700016)(23010399003)(34020700016)(1800799024)(82310400026)(56012099006)(11063799006)(10067099003)(6133799003)(22082099003)(18002099003)(12100799066);DIR:OUT;SFP:1501; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: QiZcyewcjwnhFIfQBVjvX4PyXllAHS1SYP3KDHTOplvvsxogvtBoGMbu6opT50gkD2fdOFP92j2gV4Z/r/U5ULQkqA2I8276HSRineQKiH/yXJatNif4FIHpSq1uvMURYt8VBBg1T7Hez/LgJVXg9vqXOuiNK5z4dPs3t5D48nd6boRu4iu/g7EHScxDB2OGyIzA5n0nnM9DTQdQ4pYwUwcsWe/Xukm+OSRJ0r/IR+CUzulbqQjvTdCoYc8nGGJavNNg0mTN7mdk+L2fkz+UDRgJBReE+1HDA7+38RdakZ8QUAdF1VVPq/UEjh613Ln3QYOY6Oba2yHx9fOFM6oVjKt2d3s2z4k2aF3macnQp0cwW5WKynI9oPVXueNidJTXyav7c7QGVYq4UgrV8ZcGdysL/nWgKRhrty3wuF61knblMWThxbHS/AQIzQ2AY3cM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2026 08:54:59.5291 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ed9b789e-09e6-4a84-ccbf-08dee7cee940 X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=53d82571-da19-47e4-9cb4-625a166a4a2a;Ip=[8.62.32.50];Helo=[ejcrelay005p.adwin.renesas.com] X-MS-Exchange-CrossTenant-AuthSource: TYO1EPF00005024.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: OSCPR01MB12601 Content-Type: text/plain; charset="utf-8" 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: 394c1e24a4cf ("arm64: dts: renesas: r9a09g077: Add GMAC nodes") Signed-off-by: Ovidiu Panait --- arch/arm64/boot/dts/renesas/r9a09g077.dtsi | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g077.dtsi b/arch/arm64/boot/d= ts/renesas/r9a09g077.dtsi index 40494159831d..bac39390ead7 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g077.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g077.dtsi @@ -642,36 +642,45 @@ queue7 { =20 mtl_tx_setup0: tx-queues-config { snps,tx-queues-to-use =3D <8>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; }; =20 queue1 { + snps,weight =3D <0x11>; snps,dcb-algorithm; }; =20 queue2 { + snps,weight =3D <0x12>; snps,dcb-algorithm; }; =20 queue3 { + snps,weight =3D <0x13>; snps,dcb-algorithm; }; =20 queue4 { + snps,weight =3D <0x14>; snps,dcb-algorithm; }; =20 queue5 { + snps,weight =3D <0x15>; snps,dcb-algorithm; }; =20 queue6 { + snps,weight =3D <0x16>; snps,dcb-algorithm; }; =20 queue7 { + snps,weight =3D <0x17>; snps,dcb-algorithm; }; }; @@ -788,36 +797,45 @@ queue7 { =20 mtl_tx_setup1: tx-queues-config { snps,tx-queues-to-use =3D <8>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; }; =20 queue1 { + snps,weight =3D <0x11>; snps,dcb-algorithm; }; =20 queue2 { + snps,weight =3D <0x12>; snps,dcb-algorithm; }; =20 queue3 { + snps,weight =3D <0x13>; snps,dcb-algorithm; }; =20 queue4 { + snps,weight =3D <0x14>; snps,dcb-algorithm; }; =20 queue5 { + snps,weight =3D <0x15>; snps,dcb-algorithm; }; =20 queue6 { + snps,weight =3D <0x16>; snps,dcb-algorithm; }; =20 queue7 { + snps,weight =3D <0x17>; snps,dcb-algorithm; }; }; @@ -934,36 +952,45 @@ queue7 { =20 mtl_tx_setup2: tx-queues-config { snps,tx-queues-to-use =3D <8>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; }; =20 queue1 { + snps,weight =3D <0x11>; snps,dcb-algorithm; }; =20 queue2 { + snps,weight =3D <0x12>; snps,dcb-algorithm; }; =20 queue3 { + snps,weight =3D <0x13>; snps,dcb-algorithm; }; =20 queue4 { + snps,weight =3D <0x14>; snps,dcb-algorithm; }; =20 queue5 { + snps,weight =3D <0x15>; snps,dcb-algorithm; }; =20 queue6 { + snps,weight =3D <0x16>; snps,dcb-algorithm; }; =20 queue7 { + snps,weight =3D <0x17>; snps,dcb-algorithm; }; }; --=20 2.34.1 From nobody Fri Jul 24 23:35:27 2026 Received: from TY3P286CU002.outbound.protection.outlook.com (mail-japaneastazhn15010016.outbound.protection.outlook.com [52.102.171.16]) (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 9B9AC492504; Wed, 22 Jul 2026 08:55:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.102.171.16 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710511; cv=fail; b=Y1V1mZ1Ju9ELjlrQEMi7PnrX3uNQ7oCDbvngQINuXetcDCYumIpBEZafzUFQu0Gzc53kB2022pyQbrwRaClv6/WyEo1ZRwhjGN3EJMKPR5ws8m4mJB7nAagyGplhIvZrkwQzLAfS5DU2pq6wIxhAWEDpMseuqvz67heGZrv5Rg0= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784710511; c=relaxed/simple; bh=Q5Zb15Clk6p0GgilqTveuOcpoKGAFn9bbuQK7eWPM5g=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=VxAjbiZOq1XjGd+iNbJlrV32qysuRIFVS+kTmT4AB9D/4tT0o5NOhYi3Nkq/HdOkN7h+6MbqSG1woHdjhx5cp6uvoq0erMkbEAReZ0Uky+k5JTZzBBOnYz2sRiqWn5GKzFfqpKiyYyasQHX8Jiq7RXYYOKU+RqAmnMQHnwcDBt4= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com; spf=pass smtp.mailfrom=renesas.com; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b=JQ4nvbrV; arc=fail smtp.client-ip=52.102.171.16 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=renesas.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=renesas.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=renesas.com header.i=@renesas.com header.b="JQ4nvbrV" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=USyZ6XuvQxniTtvNQnpeCMMw1RM4fv82ueiAHDAM2dHu9r+mXtL8WcTfszyuq9w5XAGHNVyIXtTkH3hvpNT2a71Mn4Lqx2A4q3z7KjNmTv0yEq8eSFtClkZr1FPqjsF+4Ldc/9DoAUoef+HxbqssyDNcaFhAXuZftHVSrezuFPmRciaGE1NDyfn5OD+FiiobcdM64HhLO02/pt+DStGenuiB2fn5BDDAxFmBqu/Su/yy1YELsPu6IXeutZewdMkd26i8UxrPAdafbV6DxGF34h4JzkJlShSfwBLymzikvFvF7IUYO60uLfbaEUYgamIKyGE4+vTLC5J7BRkU7Pk14w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=7LCJKLISUthrTrjW2EjBZ8/mdG8fLTbJZyCMTcFYlGg=; b=JBmoob5M7gZ/biypGba8njHAmmAUfAcaTU183IrXltif/jJbLKP2A6I+zXpwcwzUOZfBB3JLQf73eZd62+FXCoME2NJUWmPBdIH6xX1lntn2QAtYUg+W6DKlnM8uTgyJYdQ9DCDAVIztF3bLg7X+oiaWAmDJtrS17u1isIPGvU/h47pPHlt5WyL4TYQ1Mw0S8kgBK/mQ/Bz7lbRGql8iGly3AlGWjKUT2hgVVP0btER8KaNkMXppmMBwyt3NVllQlKXfsBBGohi4vqzOSoBdK6gdfkpM4qJoFxf2N9vxt8rK3mpLxW77vN6sFRkYxtrlSypSCGqMRCcFQS4JmuF+jQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 8.62.32.50) smtp.rcpttodomain=bp.renesas.com smtp.mailfrom=renesas.com; dmarc=pass (p=none sp=none pct=100) action=none header.from=renesas.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=renesas.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=7LCJKLISUthrTrjW2EjBZ8/mdG8fLTbJZyCMTcFYlGg=; b=JQ4nvbrVaFpr3C1Rp/XSix7fLYo+EvlnCqvhbnODBJ4towZ+lNEusQlHbWVxB6PSkFn5SMrysIxfBEU0nm+rSeRyCwS0ZdQhSxiE4PUs7tN/FlMZ/adeDN1yI6W7F9+HIJBrCGMw3QP0N3+YLBWgHEJie2xGrWipprtcXquqPcg= Received: from TYCP286CA0060.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b5::15) by TY3PR01MB11307.jpnprd01.prod.outlook.com (2603:1096:400:36f::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.245.10; Wed, 22 Jul 2026 08:55:05 +0000 Received: from TY1PEPF0000BAD9.JPNP286.PROD.OUTLOOK.COM (2603:1096:400:2b5:cafe::49) by TYCP286CA0060.outlook.office365.com (2603:1096:400:2b5::15) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.10 via Frontend Transport; Wed, 22 Jul 2026 08:55:05 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 8.62.32.50) smtp.mailfrom=renesas.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=renesas.com; Received-SPF: Pass (protection.outlook.com: domain of renesas.com designates 8.62.32.50 as permitted sender) receiver=protection.outlook.com; client-ip=8.62.32.50; helo=ejcrelay005p.adwin.renesas.com; pr=E Received: from ejcrelay005p.adwin.renesas.com (8.62.32.50) by TY1PEPF0000BAD9.mail.protection.outlook.com (10.167.240.38) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.245.5 via Frontend Transport; Wed, 22 Jul 2026 08:55:05 +0000 Received: from vm01.adwin.renesas.com (DEU-5CG20946WF.adwin.renesas.com [10.226.92.34]) by ejcrelay005p.adwin.renesas.com (Postfix) with ESMTP id 426C930007EE; Wed, 22 Jul 2026 17:54:59 +0900 (JST) From: Ovidiu Panait To: geert+renesas@glider.be, magnus.damm@gmail.com, robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, prabhakar.mahadev-lad.rj@bp.renesas.com, biju.das.jz@bp.renesas.com Cc: linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, Ovidiu Panait Subject: [PATCH 5/5] arm64: dts: renesas: r9a09g078: Switch GBETH TX queue scheduling to WRR Date: Wed, 22 Jul 2026 08:53:53 +0000 Message-ID: <20260722085353.136986-6-ovidiu.panait.rb@renesas.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> References: <20260722085353.136986-1-ovidiu.panait.rb@renesas.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: TY1PEPF0000BAD9:EE_|TY3PR01MB11307:EE_ X-MS-Office365-Filtering-Correlation-Id: e1900336-8f28-4c78-98ea-08dee7ceec9e X-LD-Processed: 53d82571-da19-47e4-9cb4-625a166a4a2a,ExtAddr X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|23010399003|1800799024|82310400026|36860700016|376014|34020700016|56012099006|11063799006|10067099003|22082099003|18002099003|6133799003|12100799066; X-Microsoft-Antispam-Message-Info: 45Aamko0KktbdsYpNoZor5HWdk04Ug2BTaFa3VO9pMLadvPspYR/mYOtSD0IQfJEkh5UKix0sukii2xSZBpDgNkg1QdtXrBjiEaua3aoazUNagvZ9IHB66FTaIUHoHUQSrVEdiX9tfwk5LLAtL73MZpUOdnS6Sy1NdPHM5ND8PoH5V1gWtZzu7FDOGrDCjD33xFjbUdKXtcIivDfEEUnj1SA8PQelasvgoAyYKaqkFFaBtIoGtThq0cH0Qi55/AgkOOeD7jBFIUnMvp29sHVVSxHDl0hwRCS+Uv3isc88HRJULQh5fbzBIy9auu6zh6dR+MXFd+Lk9a7jg+H8Y6br27t3lvytaZhaFGWm1z7VRYHVNQUeywkp20wJN+gpBjivtp9Q6edW/ye1SLu8tIHLock6cl5kd7ULwdkFKIoDOATDEIY3AOCq1vgaMBEbypppV1iMXA3A8FhuXINUOMQuVxRvTPVfdkt6MqhGebxPampOjsX8FY4SURMiraQKj3m4Ds2xDeIO5bEsPtBzyna1gCfZtY0YizAY9TvvCUpRcSaTWg1/05bbcS5ePgeBcrBew0cD3M7JOEYoWRvcEzWtiLDxXgCjBIi9IDU0u0mPLW6/yZHS2McWq6CHajVHNHQWzV9XqcbTYQIUGtq8l/SDHjSa1Z1aifXsASs1fZOPVkaNJPS6fQR3XrPuE/yX+m5xWGZ16yiC2J9gWmgZ3WCmg== X-Forefront-Antispam-Report: CIP:8.62.32.50;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:ejcrelay005p.adwin.renesas.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(23010399003)(1800799024)(82310400026)(36860700016)(376014)(34020700016)(56012099006)(11063799006)(10067099003)(22082099003)(18002099003)(6133799003)(12100799066);DIR:OUT;SFP:1501; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: bK7SfdW6IVV4VygcHv4hlZyAPKFFoOjksoNqaq7m6hgl3jvYQReysRtmCec6y5r7a3wY0u43c5cvAPjmCfnBCiz/1+29MP2THkfukih8WhgU8iYKVOh3EefcPi7tPWCFQ96Vx7PMjpiAVSy3qcp6Hhf2HhT6suGBMsE9HViOxsy8wZlwjEvhxG16Ef670gUG2yLmjb3RmDCrCkKDtsjGXISRQXWbD/tlhoTEUGGlag2+49VVQOd2UkAi4lS07h8QKxZcQLJidUDaEwq7QLYO+4BVfLNB92SyvN2+N0d0pmVCBOEcxnEZgt4w6RoueNeha84lfWfIZ4aVQvneV8rOIjKRfx9bnKUbH2Hf5VZdJ3llqj5arovQzVTEpyUabqGs02mlZAWsywh6nJzUZgPiMMcMdOre2FrhsVwpxm3OoIi4Hn4P3nm+z8Lxlg1dEScu X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jul 2026 08:55:05.1771 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e1900336-8f28-4c78-98ea-08dee7ceec9e X-MS-Exchange-CrossTenant-Id: 53d82571-da19-47e4-9cb4-625a166a4a2a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=53d82571-da19-47e4-9cb4-625a166a4a2a;Ip=[8.62.32.50];Helo=[ejcrelay005p.adwin.renesas.com] X-MS-Exchange-CrossTenant-AuthSource: TY1PEPF0000BAD9.JPNP286.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: TY3PR01MB11307 Content-Type: text/plain; charset="utf-8" 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: c4698a34993b ("arm64: dts: renesas: r9a09g087: Add GMAC nodes") Signed-off-by: Ovidiu Panait --- arch/arm64/boot/dts/renesas/r9a09g087.dtsi | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r9a09g087.dtsi b/arch/arm64/boot/d= ts/renesas/r9a09g087.dtsi index e8d4f76949cc..03b976d93e10 100644 --- a/arch/arm64/boot/dts/renesas/r9a09g087.dtsi +++ b/arch/arm64/boot/dts/renesas/r9a09g087.dtsi @@ -643,36 +643,45 @@ queue7 { =20 mtl_tx_setup0: tx-queues-config { snps,tx-queues-to-use =3D <8>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; }; =20 queue1 { + snps,weight =3D <0x11>; snps,dcb-algorithm; }; =20 queue2 { + snps,weight =3D <0x12>; snps,dcb-algorithm; }; =20 queue3 { + snps,weight =3D <0x13>; snps,dcb-algorithm; }; =20 queue4 { + snps,weight =3D <0x14>; snps,dcb-algorithm; }; =20 queue5 { + snps,weight =3D <0x15>; snps,dcb-algorithm; }; =20 queue6 { + snps,weight =3D <0x16>; snps,dcb-algorithm; }; =20 queue7 { + snps,weight =3D <0x17>; snps,dcb-algorithm; }; }; @@ -790,36 +799,45 @@ queue7 { =20 mtl_tx_setup1: tx-queues-config { snps,tx-queues-to-use =3D <8>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; }; =20 queue1 { + snps,weight =3D <0x11>; snps,dcb-algorithm; }; =20 queue2 { + snps,weight =3D <0x12>; snps,dcb-algorithm; }; =20 queue3 { + snps,weight =3D <0x13>; snps,dcb-algorithm; }; =20 queue4 { + snps,weight =3D <0x14>; snps,dcb-algorithm; }; =20 queue5 { + snps,weight =3D <0x15>; snps,dcb-algorithm; }; =20 queue6 { + snps,weight =3D <0x16>; snps,dcb-algorithm; }; =20 queue7 { + snps,weight =3D <0x17>; snps,dcb-algorithm; }; }; @@ -937,36 +955,45 @@ queue7 { =20 mtl_tx_setup2: tx-queues-config { snps,tx-queues-to-use =3D <8>; + snps,tx-sched-wrr; =20 queue0 { + snps,weight =3D <0x10>; snps,dcb-algorithm; }; =20 queue1 { + snps,weight =3D <0x11>; snps,dcb-algorithm; }; =20 queue2 { + snps,weight =3D <0x12>; snps,dcb-algorithm; }; =20 queue3 { + snps,weight =3D <0x13>; snps,dcb-algorithm; }; =20 queue4 { + snps,weight =3D <0x14>; snps,dcb-algorithm; }; =20 queue5 { + snps,weight =3D <0x15>; snps,dcb-algorithm; }; =20 queue6 { + snps,weight =3D <0x16>; snps,dcb-algorithm; }; =20 queue7 { + snps,weight =3D <0x17>; snps,dcb-algorithm; }; }; --=20 2.34.1