Thread View: linux.kernel.netdev
3 messages
3 total messages
Started by Andrew Lunn
Sat, 28 Nov 2026 17:07
Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed
Author: Andrew Lunn
Date: Sat, 28 Nov 2026 17:07
Date: Sat, 28 Nov 2026 17:07
16 lines
9081 bytes
9081 bytes
> 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? Andrew
Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed
Author: Andrew Lunn
Date: Sun, 29 Nov 2026 14:55
Date: Sun, 29 Nov 2026 14:55
36 lines
9966 bytes
9966 bytes
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
Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed
Author: Andrew Lunn
Date: Sun, 29 Nov 2026 21:16
Date: Sun, 29 Nov 2026 21:16
14 lines
9218 bytes
9218 bytes
> 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.
Cool. That would be great.
There are also some PCS refactoring patches flying around it would be
good to have some basic regression testing on. As Russell always
complained, stmmac has an odd integration of PCS, so if anything is
going to break it is likely to be stmmac.
Andrew
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads