From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Heiner Kallweit <hkallweit1@gmail.com>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>,
netdev@vger.kernel.org, Paolo Abeni <pabeni@redhat.com>
Subject: Re: [PATCH net-next] net: phy: realtek: disable PHY-mode EEE
Date: Mon, 17 Mar 2025 22:13:29 +0000 [thread overview]
Message-ID: <Z9ieiYHUSnBbppe4@shell.armlinux.org.uk> (raw)
In-Reply-To: <303bfbde-db51-4826-b36e-030114b2630c@lunn.ch>
On Mon, Mar 17, 2025 at 10:40:38PM +0100, Andrew Lunn wrote:
> On Sun, Mar 16, 2025 at 12:39:54PM +0000, Russell King (Oracle) wrote:
> > Realtek RTL8211F has a "PHY-mode" EEE support which interferes with an
> > IEEE 802.3 compliant implementation. This mode defaults to enabled, and
> > results in the MAC receive path not seeing the link transition to LPI
> > state.
> >
> > Fix this by disabling PHY-mode EEE.
> >
> > Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>
> > ---
> > This patch isn't the best approach...
>
> But i guess a better approach requires we have support for PHY-mode
> EEE? Which at the moment we do not have.
I'm not sure what this "PHY-mode" is - the datasheet for the PHY doesn't
mention the mode in its functional description, it only exists as a
simple description in the register documentation!
What I do know is that with this bit set, a MAC behind it never sees
the LPI signalled from the remote end, but 'scope shows that the
physical link has quietened down except for what I'd call the chirps
to keep both ends synchronised.
With the bit clear, then everything works as expected - as tested with
the stmmac driver on a Tegra platform. The stmmac MAC sees LPI on its
receive side, and all the nice juicy stmmac bugs requiring RXC to be
running can then be reproduced. :)
Not sure whether it would be better to fix stmmac first before this
is merged, but in order to develop and test, it needs to be fixed
first so the bug(s) can be reproduced. Given the netdev backlog, it
is unlikely that I'll get the stmmac patches out before the merge
window opens and net-next closes - so the "regression" that nvidia
reported is not going to get fixed in this cycle.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2025-03-17 22:13 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-16 12:39 [PATCH net-next] net: phy: realtek: disable PHY-mode EEE Russell King (Oracle)
2025-03-17 21:40 ` Andrew Lunn
2025-03-17 22:13 ` Russell King (Oracle) [this message]
2025-03-21 20:50 ` patchwork-bot+netdevbpf
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=Z9ieiYHUSnBbppe4@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=andrew@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hkallweit1@gmail.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
/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).