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=-2.5 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS,URIBL_BLOCKED,USER_AGENT_MUTT 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 F1ED0C169C4 for ; Wed, 6 Feb 2019 10:36:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C721D206C2 for ; Wed, 6 Feb 2019 10:36:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728975AbfBFKgu (ORCPT ); Wed, 6 Feb 2019 05:36:50 -0500 Received: from mail-wm1-f47.google.com ([209.85.128.47]:39002 "EHLO mail-wm1-f47.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726835AbfBFKgu (ORCPT ); Wed, 6 Feb 2019 05:36:50 -0500 Received: by mail-wm1-f47.google.com with SMTP id y8so2056309wmi.4 for ; Wed, 06 Feb 2019 02:36:49 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=Hhvay3GLrgDSFdChKsOwWqOK5P0x2cIJ2n3q49aTxoU=; b=dDlfq+MP/RrTI2VdvzeKMzG+sIPLn4z445BVWsL7FMODN2gIzSV7sT4DTO1RJvpviH ghp0an3FcZ+taceHmoTJzm6X/w1Y1Rw0tXhDboWrBB02gF24N9gNOytRPYcVIlq5zaTB I3R3f378Z/Az01pd9JaJbAofadyiOOuw7Fjhi6Zq/kHZc/S0T5lx91E1qcPxCvzQBica 4JDm1XjwnjHlYS3aM0OP+RPuPpk+MFsgVzu/BnTFgQF4eoduLXfxbSIgnpl8jl1bN+qj HCtB3CvTRncQ9EjBoQn/kPYCkgRTImW8LhqQAaip9646WBBMgnL+kbe8odAW20/0C5+9 OFmg== X-Gm-Message-State: AHQUAuYS+uD7Pof18Iwbh3+Rmx9/x6bx6AwP9J9kT0lD3fFf15B+1bWa 4I4cGyJGPBx8fyFWJByQMy4= X-Google-Smtp-Source: AHgI3IZOzvmX2dhTofzTxbFaDQUIEk+5VO7JK+O8/6JjBtKA8CyheW3+740+pL1C8oTHd7Wu06TlnA== X-Received: by 2002:a1c:2382:: with SMTP id j124mr2597775wmj.14.1549449408234; Wed, 06 Feb 2019 02:36:48 -0800 (PST) Received: from ingrassia.epigenesys.com (host194-85-static.3-79-b.business.telecomitalia.it. [79.3.85.194]) by smtp.gmail.com with ESMTPSA id l6sm17410503wrv.70.2019.02.06.02.36.47 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 06 Feb 2019 02:36:47 -0800 (PST) Date: Wed, 6 Feb 2019 11:36:45 +0100 From: Emiliano Ingrassia To: Martin Blumenstingl , Simon Huelck Cc: Gpeppe.cavallaro@st.com, alexandre.torgue@st.com, linux-amlogic@lists.infradead.org, netdev@vger.kernel.org Subject: Re: stmmac / meson8b-dwmac Message-ID: <20190206103645.GA2482@ingrassia.epigenesys.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.11.3 (2019-02-01) Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org 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