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 035D5C282C2 for ; Thu, 7 Feb 2019 19:30:36 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C237D2175B for ; Thu, 7 Feb 2019 19:30:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726894AbfBGTae (ORCPT ); Thu, 7 Feb 2019 14:30:34 -0500 Received: from mout.gmx.net ([212.227.17.21]:58241 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726512AbfBGTae (ORCPT ); Thu, 7 Feb 2019 14:30:34 -0500 Received: from [10.10.11.100] ([95.88.178.171]) by mail.gmx.com (mrgmx103 [212.227.17.168]) with ESMTPSA (Nemesis) id 0Lg1QN-1hTyDu22W3-00pcX0; Thu, 07 Feb 2019 20:30:21 +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/RI2l3JzXoISf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4YLlEAoJN7e322OvHc2GQ9n1+tKLi6Og4c Message-ID: <3001f244-8904-1e89-9595-62a65a7b32ae@gmx.de> Date: Thu, 7 Feb 2019 20:30:19 +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:NQFMDHsQD1SwzfhOukAtggDqCziiGLTD+zWaEGiuRWbHPmlErml D6Ucw9rpG+DxZxcqYDaZ8Z5DMvS5RI01hX9T3LP2FmlI2dkUmEg7d9wB44AVbMS6rcnXsu2 y6j0lc8qnqqeaIs43e/E6RhVPr/xeacnOSTxzSAlZ/fWoFYDuZLNRcrW5icyJ/0NdQdLEl5 FCxRdh0B7DWC+ar2YtwnA== X-UI-Out-Filterresults: notjunk:1;V03:K0:dwzD9fBLulo=:O5ntJFASFBkbuvVy3BKqGt pYDjvnh10+1g5500srH6zbGmVAg1/PKsSFlFwzBnYFgiEvQoCsFwagocsZGMTpwcyeNFkOKuc RODaNw1YmuVZId7sTSTM3vjdW8XcGLmGxXSeKDb+IKvybBa/VSv+SK3QE9rupceXHl5pfaohl 3gkQlvAyIAoNi7SIrv/78fUNo2wjP211lZIbxetlMKLKY3xLikdMQBykF5H8OQoTzLDTsUixl IFB4HXmq6aF5HcdIa/4Ym6S3Zt+bqkLrEhRvtWIdZaja8jLP+p65SZ7LzQI33AE99DUdW5FaY yyOsSbam8GPZHhLZtny5dYhQqrelJ2x6ifcVNO6/PVZ//Fv6yVsUZbUKuyqSl9Eo2R5Cf7y+v sCjZq38CvopavzJGEgeG7GaUcrA5RViK1uZuKz9Mc5Xg5mvnpZl07FrwreQtPBUylVxU38Pv5 NMHMufPh0atNUClUkTrYiV1PiWuk+4FQgCL1TXzWoN9akCy0WAzDjZ0YhmyvBbIhdPJrThP1/ YQEjyrqSwhAC+rQ1VjbLGW/4Wg5cfh899aipmPzapB0OsTIWx/PfzpH60SREtP5O4sdkVUhtv HqICECVEn/1osHp0WFNPyV1wUwFLxF1l7MjnEDU6jmHvZT0wkLahl9lh46Knbv0chFakTqVU9 peW9trsi40fSN1RI9MHkb+1lll52K5IVLhdmHQyH4DQ8V4+awHZRTOixNe0guqHWfndD6iBQm b/hWevd5c+iG/MLUs+Cr0jht7YFpVpPECqJe6pt5Tg13y+Cb+YbvjB9TouAwOEsGHMlw5zGDD r2sAsodoiaxPJ4TSWPX/B+oj+h37DnH5eMM1BEZ18xnr2dYzaZN5YzqzVOCm0EFvlXC2voXr4 eInskLdgrygRSnev9CL5w6QpcxpzNIKkxP66NAj+DUsbJ4FfS3KvUT2iECkq+EmOjp8KxdX/A F+YSHn54ETA== Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Hi Guys, i can confirm better performance with 4.14.29 - ~900 MBits with iperf2 in one way -~ 500 - 600MBits with iperf2 in duplex in both directions This wasnt the case with 4.17.9, not with 4.18, 4.19 or the 5.0 series..... How can i help 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