From mboxrd@z Thu Jan 1 00:00:00 1970 From: jbrunet@baylibre.com (Jerome Brunet) Date: Thu, 03 Nov 2016 17:57:56 +0100 Subject: stmmac/RTL8211F/Meson GXBB: TX throughput problems In-Reply-To: <20161031112524.4c4ee8f8@gmail.com> References: <20161031112524.4c4ee8f8@gmail.com> Message-ID: <1478192276.6632.34.camel@baylibre.com> To: linus-amlogic@lists.infradead.org List-Id: linus-amlogic.lists.infradead.org On Mon, 2016-10-31 at 11:25 +0100, Andr? Roth wrote: > Hi all, > ? > > > > on my device this results in: > > [0xc9410018] = 0x2000000 > > [0xc9410030] = 0x0 > > [0xc941003c] = 0x0 > > [0xc9411000] = 0x1100802 > > [0xc9411018] = 0x2202006 > > [0xc9411028] = 0x0 > > > > maybe someone else could try the command from above on his device > > (running the original Amlogic kernel). > > those registers have the same value on an original image from > hardkernel:? > > Linux odroid64 3.14.65-65 #1 SMP PREEMPT Sat May 28 > 02:50:51 BRT 2016 aarch64 aarch64 aarch64 GNU/Linux > > > > > please also state if ethernet is working properly on the original > > kernel (and preferably which device/board this is). > > yes, the ethernet works flawless in 100 and 1000 Mbit/s on the 3.14 > kernel. Andre, the 3.14 kernel you are talking, is it this one ? :? https://github.com/hardkernel/linux/tree/odroidc2-3.14.y Because in drivers/net/phy/realtek.c, they disable EEE, but also?1000Base-T Full Duplex advertisement ? + /* disable 1000m adv*/ + val = phy_read(phydev, 0x9); + phy_write(phydev, 0x9, val&(~(1<<9))); If this is the kernel you are running, you should not be able to have ethernet@1000MB/s ? Or is it in half duplex mode ? > > I can now confirm that both 100 and 1000 Mbit/s do not work properly > on the 4.8/integ branch. the network connection is interrupted after > some outbound traffic. it can be recovered by running a ifdown/ifup > which restarts dhclient, which I think is able to somehow reset the > interface.? > > Anything I can help to debug the issue further ? > > Regards, > > ?Andr? > ? > > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic at lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jerome Brunet Subject: Re: stmmac/RTL8211F/Meson GXBB: TX throughput problems Date: Thu, 03 Nov 2016 17:57:56 +0100 Message-ID: <1478192276.6632.34.camel@baylibre.com> References: <20161031112524.4c4ee8f8@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit Cc: Johnson Leung , Giuseppe CAVALLARO , linux-amlogic@lists.infradead.org, Alexandre Torgue , netdev@vger.kernel.org To: =?ISO-8859-1?Q?Andr=E9?= Roth , Martin Blumenstingl Return-path: Received: from mail-wm0-f52.google.com ([74.125.82.52]:36044 "EHLO mail-wm0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757787AbcKCQ57 (ORCPT ); Thu, 3 Nov 2016 12:57:59 -0400 Received: by mail-wm0-f52.google.com with SMTP id p190so346117923wmp.1 for ; Thu, 03 Nov 2016 09:57:58 -0700 (PDT) In-Reply-To: <20161031112524.4c4ee8f8@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 2016-10-31 at 11:25 +0100, André Roth wrote: > Hi all, >   > > > > on my device this results in: > > [0xc9410018] = 0x2000000 > > [0xc9410030] = 0x0 > > [0xc941003c] = 0x0 > > [0xc9411000] = 0x1100802 > > [0xc9411018] = 0x2202006 > > [0xc9411028] = 0x0 > > > > maybe someone else could try the command from above on his device > > (running the original Amlogic kernel). > > those registers have the same value on an original image from > hardkernel:  > > Linux odroid64 3.14.65-65 #1 SMP PREEMPT Sat May 28 > 02:50:51 BRT 2016 aarch64 aarch64 aarch64 GNU/Linux > > > > > please also state if ethernet is working properly on the original > > kernel (and preferably which device/board this is). > > yes, the ethernet works flawless in 100 and 1000 Mbit/s on the 3.14 > kernel. Andre, the 3.14 kernel you are talking, is it this one ? :  https://github.com/hardkernel/linux/tree/odroidc2-3.14.y Because in drivers/net/phy/realtek.c, they disable EEE, but also 1000Base-T Full Duplex advertisement ? + /* disable 1000m adv*/ + val = phy_read(phydev, 0x9); + phy_write(phydev, 0x9, val&(~(1<<9))); If this is the kernel you are running, you should not be able to have ethernet at 1000MB/s ? Or is it in half duplex mode ? > > I can now confirm that both 100 and 1000 Mbit/s do not work properly > on the 4.8/integ branch. the network connection is interrupted after > some outbound traffic. it can be recovered by running a ifdown/ifup > which restarts dhclient, which I think is able to somehow reset the > interface.  > > Anything I can help to debug the issue further ? > > Regards, > >  André >   > > > _______________________________________________ > linux-amlogic mailing list > linux-amlogic@lists.infradead.org > http://lists.infradead.org/mailman/listinfo/linux-amlogic