Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed
From: Andrew Lunn
Date: Sun Nov 29 2026 - 09:56:14 EST
On Sun, Nov 29, 2026 at 01:26:34PM +0100, Maxime Chevallier wrote:
> 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.
Ah, O.K.
Counting the events is definitely better.
Also, with a fibre SFP, there is end to end pause negotiation, but
often no speed negotiation. It is not using pulses as copper does. So
i expect it is a lot faster. I'm not sure if anybody has actually
tested this manually, if phylink reports it correctly, it will be
interesting to see if anybody reports pass/fail on there hardware with
these tests.
Andrew