[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20200116101313.2524795-1-oleksandr.suvorov@toradex.com>
Date: Thu, 16 Jan 2020 10:13:38 +0000
From: Oleksandr Suvorov <oleksandr.suvorov@...adex.com>
To: "linux-next@...r.kernel.org" <linux-next@...r.kernel.org>
CC: Igor Opanyuk <igor.opanyuk@...adex.com>,
Marcel Ziswiler <marcel.ziswiler@...adex.com>,
Oleksandr Suvorov <oleksandr.suvorov@...adex.com>,
Fabio Estevam <festevam@...il.com>,
Mark Rutland <mark.rutland@....com>,
NXP Linux Team <linux-imx@....com>,
Pengutronix Kernel Team <kernel@...gutronix.de>,
Rob Herring <robh+dt@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Shawn Guo <shawnguo@...nel.org>,
"devicetree@...r.kernel.org" <devicetree@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: [PATCH] ARM: dts: colibri-imx7: fix ethernet performance
Performance test of ethernet interface shows extremely low result:
=== w/o fix =================
Connecting to host 192.168.x.x, port 5201
[ 5] local 192.168.x.y port59020 connected to 192.168.x.x port 5201
...
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 2.78 MBytes 2.33 Mbits/sec 337 sender
[ 5] 0.00-10.00 sec 2.66 MBytes 2.23 Mbits/sec receiver
=============================
Adding correct settings of the mdio bus with the respective phy
fixes this issue.
=== after fix ===============
iperf3 -c 192.168.x.x
Connecting to host 192.168.x.x, port 5201
[ 5] local 192.168.x.y port 50702 connected to 192.168.x.x port 5201
...
[ ID] Interval Transfer Bitrate Retr
[ 5] 0.00-10.00 sec 114 MBytes 95.4 Mbits/sec 56 sender
[ 5] 0.00-10.00 sec 112 MBytes 94.1 Mbits/sec receiver
=============================
Fixed: commit b326629f25b7 ("ARM: dts: imx7: add Toradex Colibri
iMX7S/iMX7D support")
Signed-off-by: Marcel Ziswiler <marcel.ziswiler@...adex.com>
Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@...adex.com>
---
arch/arm/boot/dts/imx7-colibri.dtsi | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/arch/arm/boot/dts/imx7-colibri.dtsi b/arch/arm/boot/dts/imx7-colibri.dtsi
index d05be3f0e2a7..7b6a7c124345 100644
--- a/arch/arm/boot/dts/imx7-colibri.dtsi
+++ b/arch/arm/boot/dts/imx7-colibri.dtsi
@@ -115,7 +115,20 @@ &fec1 {
assigned-clock-rates = <0>, <100000000>;
phy-mode = "rmii";
phy-supply = <®_LDO1>;
+ phy-handle = <ðphy0>;
fsl,magic-packet;
+
+ mdio {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ ethphy0: ethernet-phy@0 {
+ compatible = "ethernet-phy-ieee802.3-c22";
+ max-speed = <100>;
+ micrel,led-mode = <0>;
+ reg = <0>;
+ };
+ };
};
&flexcan1 {
--
2.24.1
Powered by blists - more mailing lists