Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp7600781ybl; Thu, 16 Jan 2020 02:24:52 -0800 (PST) X-Google-Smtp-Source: APXvYqwH6+gXjnXfslqyvWkOpLYcBrkG2zg6nEg3eI7oeLEEcaFac7BbeDiTRYjeni2A8YLGR9WR X-Received: by 2002:a9d:624e:: with SMTP id i14mr1399114otk.371.1579170292433; Thu, 16 Jan 2020 02:24:52 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1579170292; cv=pass; d=google.com; s=arc-20160816; b=iZOU4PrWhHOaYtrXQVeOijWYrR2JfPqGIbVewBAXabpo08mk+eb/fDNE9xkRSO3nX5 d8dC5czpBNMjud4PBf2wxvHDbi+P/Bo4StcIf9hnU9ihbmCD1IDtGU/15wElxgoEBP34 z8A5t4aa+2B9f71ZKAGGMXbNF7La+ZxZqjS6N3MkzPR8jZN7U5t29+JliR5kmmzO59DL 2iZKzifoFe41AzRVS+JQrYQw3VSKCOuXy9BN7dB+Ip8MKzL1VzYFdLSifNHlWpK3VCqE br6TBG7fTKYBOlLnxGOmEtgf08RULsOt9kcEcWpyRYlzr8kNPgthESYVc4xgJ8EL87ZZ LfxA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:message-id:date:thread-index :thread-topic:subject:cc:to:from:dkim-signature; bh=dkKzXsM3s74uTU9S8XWOVC0w3KDZaaTOjQY0qj10Yos=; b=YePYZouwXHRdWgQZ2qVaCkkeznT5IbYcxZOHgJqBE+VenBAwue5l9LNu86J4uIfeKN e04b8D653S5/I/Fuve+dKVrctcXHbPg/v4nAHg9KcZ7NqOzU1KEmzumvrLVqLUc7JKCC cuQ/LY/sYKpENP+r5WOqzw/Dsibl9ICqqflWq1VnKCDkSFBXcFHDIpGhR93EVuIwSFnZ aTY1p+nZ5TSuABRk04C3mx4aNo8sjDm2rAvXRyT5RRh8t8NY5x+xFaW5ZCeX+UFslj6n cA6icjWXOglrtMOhXzLeY/fEsIPt7DYvt+iYFvG9OyOWVvAGMNtzL608O96k+1v489Nj AOSA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=Q67DKvf3; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w11si11148562oic.62.2020.01.16.02.24.40; Thu, 16 Jan 2020 02:24:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@toradex.com header.s=selector2 header.b=Q67DKvf3; arc=pass (i=1 spf=pass spfdomain=toradex.com dkim=pass dkdomain=toradex.com dmarc=pass fromdomain=toradex.com); spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=toradex.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730891AbgAPKNo (ORCPT + 99 others); Thu, 16 Jan 2020 05:13:44 -0500 Received: from mail-eopbgr140090.outbound.protection.outlook.com ([40.107.14.90]:9739 "EHLO EUR01-VE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1730518AbgAPKNn (ORCPT ); Thu, 16 Jan 2020 05:13:43 -0500 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=lowAAfNKBBI44s7Sy2zON8yRV/8JDnIw0kEiOZbkgAbgu/Gn2RRAqkJO2v0WfsYd6pOcc5cbwrBLs/6dPUExzAke0FWM62rETbQFbTwyLLgMWK/fF/WCXJa1pADNJFaoHdOMtaVmfdKoaSs+kCpMgkrqVxpiznQTky/gCQQ+tfREh0pVxnI4RW559fmTCmwIwAFeP9cQGiTp7yFk2HL2n91N0cFnD64VWF9ida5AbcoometBDhXXMr8wbr1RHS3NbBVZ5iE1KCsdDopKQD0MWU3lRq3HmLxJxkHy2jK7jML5LFP0NGjuqfsf1K8qpj4VYMGuSV0OtglyM9qV5M2yxQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dkKzXsM3s74uTU9S8XWOVC0w3KDZaaTOjQY0qj10Yos=; b=ExFCBrP/w9svAEcfQMr2KJLdnog9H6DBOsUYxj8IVGmy7m8JwQG/wYv2B9s9md8pWyf4XKIOkGjt69LSO01RiT09xIaUoVZkCIUekoh60LUpheBiR6Pfb3Y5hyj6wk3Ht5Tq4bTmgChUq2q6GoLTb076dc+hGYWRr/YmHUC2V7yYCEsCMJFNPyG3wFWo5MkfocsxCsIkqAIh6ugELkw6o3ZPehmGegkC9eabCq6Q8WSTf88cSJ76IDKeMPS8cBC3zTbzqbic3MvwGnKeT7QlfFuqpQ/ftWey56cD7zJR4wzElWLFcN/P+RxwgLsOLSNYkpDn19HUOTIt6FHi0fZMNA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=toradex.com; dmarc=pass action=none header.from=toradex.com; dkim=pass header.d=toradex.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toradex.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=dkKzXsM3s74uTU9S8XWOVC0w3KDZaaTOjQY0qj10Yos=; b=Q67DKvf3Bn7bq7JZGcmCfxecrxONLLtU7waWw3ZdcjJCLAHj8Z/Rpr59Qu6cAHumfUI4eyelJxLSFvRwBZiFLYyf1V6MYsFVqMrq2sYCAnQmB0CMhLJjms9rciNsB92J7t2t365J23Lh/cGTyg2BIG5w5m0waR5i8m/FZAk+fhI= Received: from VI1PR05MB3279.eurprd05.prod.outlook.com (10.170.238.24) by VI1PR05MB4175.eurprd05.prod.outlook.com (52.134.30.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2623.9; Thu, 16 Jan 2020 10:13:38 +0000 Received: from VI1PR05MB3279.eurprd05.prod.outlook.com ([fe80::c14f:4592:515f:6e52]) by VI1PR05MB3279.eurprd05.prod.outlook.com ([fe80::c14f:4592:515f:6e52%7]) with mapi id 15.20.2644.015; Thu, 16 Jan 2020 10:13:38 +0000 Received: from localhost (194.105.145.90) by PR0P264CA0030.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2644.18 via Frontend Transport; Thu, 16 Jan 2020 10:13:37 +0000 From: Oleksandr Suvorov To: "linux-next@vger.kernel.org" CC: Igor Opanyuk , Marcel Ziswiler , Oleksandr Suvorov , Fabio Estevam , Mark Rutland , NXP Linux Team , Pengutronix Kernel Team , Rob Herring , Sascha Hauer , Shawn Guo , "devicetree@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: [PATCH] ARM: dts: colibri-imx7: fix ethernet performance Thread-Topic: [PATCH] ARM: dts: colibri-imx7: fix ethernet performance Thread-Index: AQHVzFWee8FNmNUk8keE1wDvLk5RZA== Date: Thu, 16 Jan 2020 10:13:38 +0000 Message-ID: <20200116101313.2524795-1-oleksandr.suvorov@toradex.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: PR0P264CA0030.FRAP264.PROD.OUTLOOK.COM (2603:10a6:100:1::18) To VI1PR05MB3279.eurprd05.prod.outlook.com (2603:10a6:802:1c::24) authentication-results: spf=none (sender IP is ) smtp.mailfrom=oleksandr.suvorov@toradex.com; x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.24.1 x-originating-ip: [194.105.145.90] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 51da0de7-3c82-4b8f-eb05-08d79a6cc0d6 x-ms-traffictypediagnostic: VI1PR05MB4175: x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:190; x-forefront-prvs: 02843AA9E0 x-forefront-antispam-report: SFV:NSPM;SFS:(10019020)(4636009)(136003)(39850400004)(396003)(376002)(346002)(366004)(189003)(199004)(1076003)(54906003)(44832011)(66556008)(66476007)(64756008)(66446008)(66946007)(36756003)(26005)(8936002)(316002)(52116002)(6496006)(4326008)(16526019)(8676002)(186003)(6916009)(81166006)(81156014)(71200400001)(7416002)(86362001)(956004)(2616005)(6486002)(478600001)(5660300002)(2906002);DIR:OUT;SFP:1102;SCL:1;SRVR:VI1PR05MB4175;H:VI1PR05MB3279.eurprd05.prod.outlook.com;FPR:;SPF:None;LANG:en;PTR:InfoNoRecords;MX:1;A:1; received-spf: None (protection.outlook.com: toradex.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: YH6a89kakemV/NTkKgndqp6M8lnqhhJOy7VnFspue1jU3ueJse3WQJNwBcI8ut7ZyMTdcwh+LnxQOw/UfbLYqIUcGtOP2pWyBYhns82+Ulzz5k+SoPk9TuQfmZAscPuLkRRXXHfJzFCFYZ9xEALMyEtA/jXLxQsXJ2kZ+M84ah5gp/wfO6ZIZvdNDUpPjAbE4W7fEdKsQv35D9P2WDIirtcB85+cGhQ1dLU7SlaNowt6TRIlDAfD8/BhzrL4kwU8Bp2DZT0GVxOTMd/wvOvMhLVRKCmxaaZtoW9Q0NWe3s13rdyzM53L1cXi1GwVZZuKECCwCGaTAeRJL4PqVx60Uqel5fyo/YZ3JdGheaSGRUZk8fDGB5N1vM8mEFApbdG11BoaN9Iy2CxfW/8T5kBoedvmGVL8+8sBzG7NBoQhnzkjT7m2CDWQbd22yVpapdgF Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: toradex.com X-MS-Exchange-CrossTenant-Network-Message-Id: 51da0de7-3c82-4b8f-eb05-08d79a6cc0d6 X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Jan 2020 10:13:38.1178 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: d9995866-0d9b-4251-8315-093f062abab4 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: YEnwdVGCwTSIVaS2JG9kEhxn8ZlBoYtKkiFzcowJlrUD10gA0kpiVbdZvbIa5RQMFZ3My/TAgDyiLoHFoOQOmPDZ1puv5ljs9UtC/5WkKd0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR05MB4175 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Performance test of ethernet interface shows extremely low result: =3D=3D=3D w/o fix =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Adding correct settings of the mdio bus with the respective phy fixes this issue. =3D=3D=3D after fix =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D Fixed: commit b326629f25b7 ("ARM: dts: imx7: add Toradex Colibri iMX7S/iMX7D support") Signed-off-by: Marcel Ziswiler Signed-off-by: Oleksandr Suvorov --- 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-c= olibri.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 =3D <0>, <100000000>; phy-mode =3D "rmii"; phy-supply =3D <®_LDO1>; + phy-handle =3D <ðphy0>; fsl,magic-packet; + + mdio { + #address-cells =3D <1>; + #size-cells =3D <0>; + + ethphy0: ethernet-phy@0 { + compatible =3D "ethernet-phy-ieee802.3-c22"; + max-speed =3D <100>; + micrel,led-mode =3D <0>; + reg =3D <0>; + }; + }; }; =20 &flexcan1 { --=20 2.24.1