Netdev List
 help / color / mirror / Atom feed
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 19:38:27 +0100	[thread overview]
Message-ID: <c0004932-913b-4f6a-8de2-17661ca03f3e@bootlin.com> (raw)
In-Reply-To: <de504369-b7b4-4713-b553-7d4c5eec0809@lunn.ch>



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 


      reply	other threads:[~2026-11-29 18:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-28 10:17 [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed Maxime Chevallier (Netdev Foundation)
2026-11-28 17:07 ` Andrew Lunn
2026-11-29 12:26   ` Maxime Chevallier
2026-11-29 14:55     ` Andrew Lunn
2026-11-29 18:38       ` Maxime Chevallier [this message]

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=c0004932-913b-4f6a-8de2-17661ca03f3e@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