From: Russell King - ARM Linux admin <linux@armlinux.org.uk>
To: Jose Abreu <Jose.Abreu@synopsys.com>
Cc: Priit Laes <plaes@plaes.org>,
"linux-sunxi@googlegroups.com" <linux-sunxi@googlegroups.com>,
"wens@csie.org" <wens@csie.org>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
Florian Fainelli <f.fainelli@gmail.com>,
Andrew Lunn <andrew@lunn.ch>,
Heiner Kallweit <hkallweit1@gmail.com>,
"peppe.cavallaro@st.com" <peppe.cavallaro@st.com>,
"alexandre.torgue@st.com" <alexandre.torgue@st.com>
Subject: Re: sun7i-dwmac: link detection failure with 1000Mbit parters
Date: Thu, 31 Oct 2019 10:38:41 +0000 [thread overview]
Message-ID: <20191031103841.GI25745@shell.armlinux.org.uk> (raw)
In-Reply-To: <BN8PR12MB32660687285D2C76E7CF2FF6D3630@BN8PR12MB3266.namprd12.prod.outlook.com>
On Thu, Oct 31, 2019 at 08:39:06AM +0000, Jose Abreu wrote:
> ++ Florian, Andrew, Heiner, Russell
>
> Can you please attach your dmesg log ? PHYLINK provides some useful
> debug logs.
>
> From: Priit Laes <plaes@plaes.org>
> Date: Oct/30/2019, 20:21:17 (UTC+00:00)
>
> > Heya!
> >
> > I have noticed that with sun7i-dwmac driver (OLinuxino Lime2 eMMC), link
> > detection fails consistently with certain 1000Mbit partners (for example Huawei
> > B525s-23a 4g modem ethernet outputs and RTL8153-based USB3.0 ethernet dongle),
> > but the same hardware works properly with certain other link partners (100Mbit GL AR150
> > for example).
> >
> > (Just need to test with another 1000Mbit switch at the office).
> >
> > I first thought it could be a regression, but I went from current master to as far back
> > as 5.2.0-rc6 where it was still broken.
The stmmac conversion to phylink was v5.3-rc1, so that's likely not the
issue if v5.2-rc6 also exhibits this behaviour.
My guess is that the problem lies in phylib, especially as the link LEDs
go off when the link is configured. I notice that it's using the
generic PHY driver rather than a specific driver.
mii-diag -v eth0
would be useful to see for the case where the link has failed, without
replugging the ethernet cable.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up
According to speedtest.net: 11.9Mbps down 500kbps up
next prev parent reply other threads:[~2019-10-31 10:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-30 20:21 sun7i-dwmac: link detection failure with 1000Mbit parters Priit Laes
2019-10-31 8:39 ` Jose Abreu
2019-10-31 10:38 ` Russell King - ARM Linux admin [this message]
2019-11-01 9:49 ` Priit Laes
2019-11-01 10:57 ` Russell King - ARM Linux admin
2019-10-31 13:04 ` Andrew Lunn
2019-10-31 13:14 ` Andrew Lunn
2019-10-31 16:19 ` Priit Laes
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20191031103841.GI25745@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=Jose.Abreu@synopsys.com \
--cc=alexandre.torgue@st.com \
--cc=andrew@lunn.ch \
--cc=f.fainelli@gmail.com \
--cc=hkallweit1@gmail.com \
--cc=linux-sunxi@googlegroups.com \
--cc=netdev@vger.kernel.org \
--cc=peppe.cavallaro@st.com \
--cc=plaes@plaes.org \
--cc=wens@csie.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).