From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Biju Das <biju.das.jz@bp.renesas.com>
Cc: "Lad, Prabhakar" <prabhakar.csengg@gmail.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S. Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
Philipp Zabel <p.zabel@pengutronix.de>,
Geert Uytterhoeven <geert+renesas@glider.be>,
Giuseppe Cavallaro <peppe.cavallaro@st.com>,
Jose Abreu <joabreu@synopsys.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
"netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"devicetree@vger.kernel.org" <devicetree@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"linux-renesas-soc@vger.kernel.org"
<linux-renesas-soc@vger.kernel.org>,
Fabrizio Castro <fabrizio.castro.jz@renesas.com>,
Prabhakar Mahadev Lad <prabhakar.mahadev-lad.rj@bp.renesas.com>
Subject: Re: [PATCH 3/3] net: stmmac: Add DWMAC glue layer for Renesas GBETH
Date: Tue, 4 Mar 2025 11:16:54 +0000 [thread overview]
Message-ID: <Z8bhJkxUbG_HjXVf@shell.armlinux.org.uk> (raw)
In-Reply-To: <TY3PR01MB1134624A76189BF079F1CE82186C82@TY3PR01MB11346.jpnprd01.prod.outlook.com>
On Tue, Mar 04, 2025 at 10:56:39AM +0000, Biju Das wrote:
> > For the failure to happen, you need to check whether EEE is being used:
> >
> > # ethtool --show-eee ethX
> >
> > and check whether it states that EEE is enabled and active, and Tx LPI also shows the timer value.
> >
> > You need a PHY that does stop it's receive clock when the link enters low-power mode. PHYs are not
> > required to have this ability implemented, and there's no way for software to know whether it is or
> > not.
> >
> > Then, you need to be certain that your link partner does actually support EEE and signals LPI from its
> > side, rather than just advertising EEE. Lastly, you need to ensure that there is no traffic over the
> > cable when you're resuming for the period of the reset timeout for the failure to occur. If the link
> > wakes up, the clock will be started and reset will complete.
> >
> > One can rule out some of the above by checking the LPI status bits, either in the DWMAC or PHY which
> > indicates whether transmit and/or receive seeing LPI signalled.
> >
> > If the link doesn't enter low power, then the receive clock won't be stopped, and reset will complete.
> > If the link wakes up during reset, then the clock will be restarted, and reset will complete before
> > the timeout expires.
> >
> > So, the possibility for a successful test is quite high.
>
>
> This what I get on next. It is showing enabled , but inactive.
>
> root@smarc-rzg3e:~# ethtool --show-eee eth0
> EEE settings for eth0:
> EEE status: enabled - inactive
> Tx LPI: 1000000 (us)
> Supported EEE link modes: 100baseT/Full
> 1000baseT/Full
> Advertised EEE link modes: 100baseT/Full
> 1000baseT/Full
> Link partner advertised EEE link modes: Not reported
That means your link partner doesn't support EEE (or has EEE disabled)
so the issue we're discussing in this thread doesn't occur for your
setup.
In order to do a valid test for the issue in this thread, you need a
link partner that supports EEE and has EEE enabled.
Note that also with an EEE capable setup, with the LPI timer set to
one second, you need to have not transmitted any packets for one
second before the transmit path enters LPI. Although this is the
default for stmmac, it seems to me to be an excessively long default,
and may even be masking some problems.
--
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-04 11:17 UTC|newest]
Thread overview: 45+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-02 18:18 [PATCH 0/3] Add GBETH glue layer driver for Renesas RZ/V2H(P) SoC Prabhakar
2025-03-02 18:18 ` [PATCH 1/3] dt-bindings: net: dwmac: Increase 'maxItems' for 'interrupts' and 'interrupt-names' Prabhakar
2025-03-03 15:26 ` Rob Herring
2025-03-03 15:58 ` Lad, Prabhakar
2025-03-03 16:34 ` Andrew Lunn
2025-03-03 20:40 ` Lad, Prabhakar
2025-03-02 18:18 ` [PATCH 2/3] dt-bindings: net: Document GBETH bindings for Renesas RZ/V2H(P) SoC Prabhakar
2025-03-02 19:10 ` Andrew Lunn
2025-03-02 19:28 ` Russell King (Oracle)
2025-03-02 21:33 ` Andrew Lunn
2025-03-03 15:15 ` Rob Herring
2025-03-02 19:25 ` Andrew Lunn
2025-03-02 20:41 ` Lad, Prabhakar
2025-03-02 21:01 ` Russell King (Oracle)
2025-03-02 21:22 ` Lad, Prabhakar
2025-03-02 21:39 ` Andrew Lunn
2025-03-02 21:43 ` Lad, Prabhakar
2025-03-02 21:49 ` Russell King (Oracle)
2025-03-02 21:51 ` Russell King (Oracle)
2025-03-02 22:03 ` Lad, Prabhakar
2025-03-02 18:18 ` [PATCH 3/3] net: stmmac: Add DWMAC glue layer for Renesas GBETH Prabhakar
2025-03-02 19:33 ` Russell King (Oracle)
2025-03-02 20:05 ` Russell King (Oracle)
2025-03-02 21:20 ` Lad, Prabhakar
2025-03-02 21:44 ` Russell King (Oracle)
2025-03-02 22:02 ` Lad, Prabhakar
2025-03-03 11:19 ` Russell King (Oracle)
2025-03-03 16:04 ` Lad, Prabhakar
2025-03-03 16:32 ` Russell King (Oracle)
2025-03-05 21:26 ` Lad, Prabhakar
2025-03-06 0:31 ` Russell King (Oracle)
2025-03-08 13:20 ` Lad, Prabhakar
2025-03-04 6:58 ` Biju Das
2025-03-04 10:00 ` Russell King (Oracle)
2025-03-04 10:56 ` Biju Das
2025-03-04 11:16 ` Russell King (Oracle) [this message]
2025-03-04 14:04 ` Geert Uytterhoeven
2025-03-03 9:41 ` Lad, Prabhakar
2025-03-03 9:58 ` Russell King (Oracle)
2025-03-03 10:58 ` Russell King (Oracle)
2025-03-03 10:40 ` Geert Uytterhoeven
2025-03-03 10:44 ` Lad, Prabhakar
2025-03-03 10:54 ` Russell King (Oracle)
2025-03-06 13:11 ` Geert Uytterhoeven
2025-03-08 12:44 ` Lad, Prabhakar
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=Z8bhJkxUbG_HjXVf@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=biju.das.jz@bp.renesas.com \
--cc=conor+dt@kernel.org \
--cc=davem@davemloft.net \
--cc=devicetree@vger.kernel.org \
--cc=edumazet@google.com \
--cc=fabrizio.castro.jz@renesas.com \
--cc=geert+renesas@glider.be \
--cc=joabreu@synopsys.com \
--cc=krzk+dt@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-renesas-soc@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=p.zabel@pengutronix.de \
--cc=pabeni@redhat.com \
--cc=peppe.cavallaro@st.com \
--cc=prabhakar.csengg@gmail.com \
--cc=prabhakar.mahadev-lad.rj@bp.renesas.com \
--cc=robh@kernel.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).