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 56171C169C4 for ; Wed, 6 Feb 2019 21:21:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 1EC04218D9 for ; Wed, 6 Feb 2019 21:21:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726528AbfBFVVb (ORCPT ); Wed, 6 Feb 2019 16:21:31 -0500 Received: from mout.gmx.net ([212.227.15.18]:55503 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726161AbfBFVVb (ORCPT ); Wed, 6 Feb 2019 16:21:31 -0500 Received: from [10.10.11.100] ([95.88.178.171]) by mail.gmx.com (mrgmx002 [212.227.17.190]) with ESMTPSA (Nemesis) id 0LwJFG-1hBwje26KU-0184Pp; Wed, 06 Feb 2019 22:21:20 +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: Date: Wed, 6 Feb 2019 22:21:15 +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:nC4KupwtFpvqimASYJdQjxr7hxBA762QJApEqAi4auXFuwrrx6/ cy8EgdbMsAKeGgQDNxZkSkneGdouT/lFfo23RQ6xP28JiNmq0rgnjI5AFPU841GFeQBGYmn nAe9Nb2FCF6NV/IMG2iSNWfWIM1kNvH2fyt8OIhyw7TBqsd0SotLzz2GI7lxDwofte0eJwO k68ywNoYdBysH3ztOH9xg== X-UI-Out-Filterresults: notjunk:1;V03:K0:v3qhyQmn7zI=:KZCgEk0Tvfnmj4dueQ7+ie SgwwXmI3vkNyPZ3oCwH1zYLH5OJVD/XEF4ZH0TbysgSy++FDtLTuD2wyhZ8nfbWagpS3QZ6op Iy0gc8V3IY9d6lGOyWFMWnXK/VS0SnRG1zUKhv1xd0XXtjw3Or44z6TrPFvckJzRd50JUeDqk Gv4zCJ1Brlu4+8QBOFqICtmn0bXsYKxM/TiR5uKeBE3GeFBbubBink6JZLG1fQ5bOoYxxmQoD jDvZ0QLj1FiQXg+2C8eMPMAzo2I4E5QwBpmsygzhpnm0kTNGr575nUj9l3A/iNrYbtGiResNB 92PLadrhCSZC33L/oMkMXfJZtm6JspSuA/BRNxims+hVF2yt1WhWMKESh6lYh7qlavfJ7ripk Dwy/DsINacGZ/n0Y/wTOQ0prJRSmdn+DeSU7MK4FfdglJGlCwPBd4QUlP1/8z+PpgEWGBteWI ADeTH6eZXSUW90C0Toh+Q3lB0ak4zIJrOWxl4nvrXdiXMjLDmRpO+aqb994F784bBluPrXQm+ g/9Q0Yr5bw9XcB90radXJhhgOqrw111G78JbbjQEzzdVHvIiUXQ+PXFgfQEAgl6DEfeYEICU3 vufwUflG1/a3y0qasd5mEoi1XL7S8kYlH7B0BXhUiBFDMyyEXBSOk6bz0X6nIYjy73L8mpt+V bM3+DeQhi73Tcv71jShdClcFhSmxQoG2CzVRt58BGYwY55l9ZnK0RpM+GCpI8A7scpX/I/8Re Ix6AYly/ACG05SAW5WW92LUb9rH4wxNlnKZv4q4g7ejM1CiH2CsNS/imU0fqQmIQvVuQAbefR djIQ1N3KlQElK2tgeo6MFpdypH7b/xCVIFnGBCQ2SDYNoF9S+rbCGbYHq/hiGNQSHd2R03yZL 1mxGbYj2IkCxZZ9Pg5KhZ7CV8ZL4T5hvvV8LWygBwruZXuXYqh5OyuyDcJXnrSXuCzYGg6dEN gxuhZQxKgTQ== Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi, 4.17.9 failed going back further 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