From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6A22C169C4 for ; Wed, 6 Feb 2019 18:05:16 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 753DF20821 for ; Wed, 6 Feb 2019 18:05:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729545AbfBFSFP (ORCPT ); Wed, 6 Feb 2019 13:05:15 -0500 Received: from mout.gmx.net ([212.227.15.19]:38949 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728548AbfBFSFO (ORCPT ); Wed, 6 Feb 2019 13:05:14 -0500 Received: from [10.10.11.100] ([95.88.178.171]) by mail.gmx.com (mrgmx003 [212.227.17.190]) with ESMTPSA (Nemesis) id 0M2tXS-1h9nvr3nGw-00shcx; Wed, 06 Feb 2019 19:04:58 +0100 Subject: Re: stmmac / meson8b-dwmac To: Emiliano Ingrassia , Martin Blumenstingl Cc: Gpeppe.cavallaro@st.com, alexandre.torgue@st.com, linux-amlogic@lists.infradead.org, netdev@vger.kernel.org References: <20190206103645.GA2482@ingrassia.epigenesys.com> From: Simon Huelck Openpgp: preference=signencrypt Autocrypt: addr=simonmail@gmx.de; prefer-encrypt=mutual; keydata= mQGiBD/bCNARBACE3URTBXZ/AA03NwRNtz03ewQn3uhvYSTjfqgplBtb3dfC4a79BXDRIWVX xPGH9Ewios1c8gMu3/RI2l3JzXo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Kl4YLlEAoJN7e322OvHc2GQ9n1+tKLi6Og4c Message-ID: <29ba11dd-d5fe-592b-fde3-66b5d8626e1a@gmx.de> Date: Wed, 6 Feb 2019 19:04:52 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.5.0 MIME-Version: 1.0 In-Reply-To: <20190206103645.GA2482@ingrassia.epigenesys.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K1:YCPPc27Rvto5AlftKLBGymFoeDprw+iwK6R4bixsKTYJLl+M/YM QnjcGyl+4oByA6j4IjMtlwOXKMx2hIWI71uBrHz/SCOPcZW87fgNlPqUx3aDSGSISQPwSmu jowkFr9b2vh1VNeN4WLKefLq+Jg0ZpIZTgP2HlDUJrjP2+jEf4JM/yNWz2u7W4Wj/fj8UFH f1KSElYi3uoQVrK6yk/yw== X-UI-Out-Filterresults: notjunk:1;V03:K0:y/9g6tsd7ss=:MAyrigMHZFkoLSqMRxr8Db tXutVyxtI6cMakJvlamwCvQ2NwFZ6tz32VB1L1bYet0HzudCH+wFSnRDdW/6ICCxQSvZOBtQx If67p6i6GYe6eAuIcA8XjzxQ1ItIRFRpOeG8qhnVBVs938Og707vPPDhMPFKCauYk3hHuBN+u X4+qDNR5bDCxYhGfb9gn3alp9uIA3Lkh3myhAWH6fMbld2e1uohDENSBgTs/7+07tsL/n388U Qb3vpS4Vdtw7SOY26ndERjzpkEMBjmnqLjh6PfQeonRqSKMOHtVqHVELbahSQZ25PgEw5imR3 tnggVLlOZAwRbzZ7WG7D1bamv+hvRfoO+psArqiocKGHacKMCp12symbd1iSnMMiFbA/BLE2k IYCj6DA5pRbVn/bkJdF09r0+xVk+GU+sSNrCSXpYupOPZL2kA0DmcKFgdDRmA7rfZatK04t/n zycfBU0O0bqqWHg7ViKFaHki1JtVu/a+GAHrvwTxwOdG7aRdFvQvq3pIUrypNh7OSsNURKCT3 9UEDdQeI3M7XeSni8Qwx4r96FA5SfzwUi+ibBJ0M1dQfRAHHyiUKzXzaQ7yG2yhJl/dfjwF2q L7rkKVUet5y1WVWaOrGRXqsFs3CGlimsYs9mH7Y6g0kX/hD4ApJY2WrNQyGJStP9eVoOFCRMB RCJlxnGzJHX9Tne3XAGEDX9u4guQ4/GUugGeb4wO2Nash/+vsAN/dZySmlhYslVDXuZ7Utku/ g7u5d5c51s43RDtTyLOotCZLPZ8wqMKZdWXzNucQjj6M+dM8LPUCpjfkRcHHQ7MGVqqsWgX2C GVCetXBBG8fmK2Wr/6ZuyinHzIB2FVlaBSo40A5u1LsYFFABD2EJyiWJhTxedMpQGLfX1MzqO rTKP0AnAEsrUlHhb4k9bacoY0AQRZzk3LpG1Og0GhSXeJNCM2vw0gQtdRupvzRxWJ2SubkKWY 0ffntd9L6GA== Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, yes i did reach 900MBits . maybe it was kernel 4.14 or 4.17. The 3.x series was also ok. I will pull latest 4.17 and test. If this doesnt work i go for 4.14 regards, Simon Am 06.02.2019 um 11:36 schrieb Emiliano Ingrassia: > Hi Martin, Hi Simon, > > On Mon, Feb 04, 2019 at 03:34:41PM +0100, Martin Blumenstingl wrote: >> On Thu, Jan 17, 2019 at 10:23 PM Simon Huelck wrote: >> [...] >>>>> I got problems with my ODROID c2 running on 4.19.16 ( and some releases >>>>> earlier ). the stmmac / dwmac driver doesnt provide the 800M/900M >>>>> performance that i was used to earlier. >>>>> > Simon, did you ever reach 1 Gbps full duplex speed? > If yes, what was the kernel version did you use? > >>>>> Now im stuck near 550M/600M in the same environment. but what really >>>>> confuses me that duplex does hurt even more. >>>> interesting that you see this on the Odroid-C2 as well. >>>> previously I have only observed it on an Odroid-C1 >>>> >>>>> PC --- VLAN3 --> switch --VLAN3--> ODROID >>>>> >>>>> NAS <-- VLAN1 -- switch <-- VLAN1-- ODROID >>>>> >>>>> >>>>> this means when im doing a iperf from PC to NAS, that my ODROID has load >>>>> on RX/TX same time (duplex). this shouldnt be an issue , all is 1GBits >>>>> FD. And in the past that wasnt an issue. >> +Cc Emiliano who has seen a similar duplex issue on his Odroid-C1: [0] >> (please note that all kernels prior to v5.1 with the pending patches >> from [1] applied are only receiving data on RXD0 and RXD1 but not on >> RXD2 and RXD3) >> >> Emiliano, can you confirm the duplex issue observed by Simon is >> similar to the one you see on your Odroid-C1? >> > It could be but, if I understand correctly, Simon is limited in > speed also in half duplex transmission (~550/600 Mbps), while we can > reach at least 900 Mbps. > >>>>> >>>>> Now what happens: >>>>> >>>>> - benchmark between PC - ODROID is roughly 550M >>>>> >>>>> - benchmark between NAS - ODROID is roughly 550M >>>>> >>>>> - benchmark between PC - NAS is only around 300M >>>>> >>>>> >>>>> and like i said i was easliy able to hit 800 or even 900M to my NAS >>>>> earlier. I applied some .dtb fixes for interrupt levels for the >>>>> meson-gx.dtsi and meson-gxbb-odroid-c2.dtb, which will be mainlined , >>>>> but the effect stayed identical. >>>> good that you have the interrupt patches already applied >>>> I believe it don't fix any performance issues - it's a fix for the >>>> Ethernet controller seemingly getting "stuck" (not processing data >>>> anymore). however, that already rules out one potential issue >>>> >>>>> are you aware of this problem ? Earlier kernel versions were all >>>>> perfectly fine and i stepped ( self compiled) kernel through all major >>>>> releases since odroid c2 was mainlined. >> Guiseppe, Alexandre: what kind of data do you need from us if we see >> the speeds drop (in both directions) when we send and receive at the >> same time? >> >> [...] >>> the problem is that i dont have these kernel sources anymore :-(. but i >>> can provide some testing and numbers. maybe i dig if i got these kernel >>> configs somewhere around but i did not change much during migrating >> do you remember the kernel version where it worked fine? >> >>> im using a zyxel gs1900-8 switch and a qnap ts231p , and as i said i >>> didnt change my setup. i was able to hit 100MByte/s from my NAS , so >>> close to the benchmarks of 900MBit/s >> I typically only do small transfers or I have traffic only in one direction. >> thus it's likely that I missed this in my own tests >> >> >> Regards >> Martin >> >> >> [0] http://lists.infradead.org/pipermail/linux-amlogic/2018-December/009679.html >> [1] https://patchwork.kernel.org/cover/10744905/ > Regards, > > Emiliano