Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed

From: Maxime Chevallier

Date: Sun Nov 29 2026 - 13:39:00 EST




On 11/29/26 15:55, Andrew Lunn wrote:
> 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.

True that's a good idea, I could actually wire that up for the CI,
I have one such setup I can use with dwmac-socfpga + PCS lynx,
and I have some PCIe SFP cards that should support 1000BaseX, I'd
say this is a valuable test case to add.

I'll set it up, let it dry-run for a few CI cycles and see if it's
reliable enough to put as a runner.

Maxime