From: Maxime Chevallier <maxime.chevallier@bootlin.com>
To: Andrew Lunn <andrew@lunn.ch>
Cc: Jakub Kicinski <kuba@kernel.org>,
davem@davemloft.net, Eric Dumazet <edumazet@kernel.org>,
Willem de Bruijn <willemb@google.com>,
Paolo Abeni <pabeni@redhat.com>, Simon Horman <horms@kernel.org>,
Russell King <linux@armlinux.org.uk>,
Shuah Khan <skhan@linuxfoundation.org>,
Bobby Eshleman <bobbyeshleman@meta.com>,
Stanislav Fomichev <sdf@fomichev.me>,
Breno Leitao <leitao@debian.org>,
matttbe@kernel.org, thomas.petazzoni@bootlin.com,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed
Date: Sun, 29 Nov 2026 13:26:34 +0100 [thread overview]
Message-ID: <10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com> (raw)
In-Reply-To: <8c278a5e-588f-4b8e-a89b-2dfcafef2e64@lunn.ch>
Hi Andrew,
On 11/28/26 18:07, Andrew Lunn wrote:
>> This has been found while running the stmmac kernel selftest suite
>> between an imx8mp + ksz9131 PHY and a Intel i350-T4 card, the
>> renegotiation happened too fast to reliably see it on the intel card
>> side.
>
> The logic of the patch makes sense. So i've no problems with the patch
> itself.
>
> I'm just curious about not being able to see it. Autoneg, at 1G, take
> a little over 1 second. So if you can poll at 0.5s intervals, you
> should see it. Is ssh to this machine really slow? Or is the Intel
> i350-T4 driver doing something odd? Slow at reporting the down? Fast a
> reporting the up?
The main issue is that we just didn't poll at all, so we sometimes read
the carrier change counter in the Intel card before the link had come back
up, and sometimes after.
Looking at the timings on both ends of the link I don't see any real
oddity, it takes around a second or two to renegotiate the link.
The main reason I missed this before is that most of these tests were
skipping on the stmmac CI farm due to me using cheap USB to Ethernet
adapters that didn't support Pause. Only one or two boards did the full
Pause test.
Now all 12 boards (well, 11 right now as the Motorcomm PCIe card is
apparently fried) are connected to these IGB peers that exercise the full
Pause tests. Maybe IGB gives the results a couple of hundreds of milliseconds
later than the previous peer I used for these tests, and that's enough
to put the test right in that racy window :(
Maxime
next prev parent reply other threads:[~2026-11-29 12:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-28 10:17 Maxime Chevallier (Netdev Foundation)
2026-11-28 17:07 ` Andrew Lunn
2026-11-29 12:26 ` Maxime Chevallier [this message]
2026-11-29 14:55 ` Andrew Lunn
2026-11-29 18:38 ` Maxime Chevallier
2026-11-29 21:16 ` Andrew Lunn
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=10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com \
--to=maxime.chevallier@bootlin.com \
--cc=andrew@lunn.ch \
--cc=bobbyeshleman@meta.com \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=horms@kernel.org \
--cc=kuba@kernel.org \
--cc=leitao@debian.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=linux@armlinux.org.uk \
--cc=matttbe@kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=sdf@fomichev.me \
--cc=skhan@linuxfoundation.org \
--cc=thomas.petazzoni@bootlin.com \
--cc=willemb@google.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
all inboxes | Powered by JetHome®