Netdev List
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Maxime Chevallier <maxime.chevallier@bootlin.com>
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 15:55:39 +0100	[thread overview]
Message-ID: <de504369-b7b4-4713-b553-7d4c5eec0809@lunn.ch> (raw)
In-Reply-To: <10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com>

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
 

  reply	other threads:[~2026-11-29 14:56 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 [this message]
2026-11-29 18:38       ` Maxime Chevallier

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=de504369-b7b4-4713-b553-7d4c5eec0809@lunn.ch \
    --to=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=maxime.chevallier@bootlin.com \
    --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