Article View: linux.kernel.netdev
Article #24161Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed
From: 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
Technical Details
Message-ID:
<de504369-b7b4-4713-b553-7d4c5eec0809@lunn.ch>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373526-linux-kernel-netdev=dewy.ruReferences:
<20261128101725.17398-1-maxime.chevallier@bootlin.com> <8c278a5e-588f-4b8e-a89b-2dfcafef2e64@lunn.ch> <10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-373526-linux-kernel-netdev=dewy.ru From: andrew@lunn.ch (Andrew Lunn) Newsgroups: linux.kernel.netdev 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 Organization: Usenet Network Message-ID: <de504369-b7b4-4713-b553-7d4c5eec0809@lunn.ch> References: <20261128101725.17398-1-maxime.chevallier@bootlin.com> <8c278a5e-588f-4b8e-a89b-2dfcafef2e64@lunn.ch> <10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: usenet.network; logging-data="1189181"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:COny++8xxrTD9d9ixdctnqscWZs= sha256:wP5YwuZhbBO5ioIHO0FvEuGSa2ZGUkfVnhw/919UzJI= sha1:ypdvDzERw/ns0ReberB7LqGjXiY= sha256:lXK+SdAJuiEQFmwsyzNMarNhRHYOkoE6HqNGLkeG2DA= Content-Disposition: inline List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 1A12B125F99; Sun, 29 Nov 2026 17:56:24 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.051 X-Spam-Status: No, score=-3.051 tagged_above=-9999 required=6.31 tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (1024-bit key) header.d=lunn.ch X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 71swhg9iq1S8; Sun, 29 Nov 2026 17:56:20 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-373526-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=fail (p=none dis=none) header.from=lunn.ch X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10]) by mail.dewy.ru (Postfix) with ESMTPS id 99524125F98; Sun, 29 Nov 2026 17:56:11 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by sea.lore.kernel.org (Postfix) with ESMTP id 7B9222444E; Sun, 29 Nov 2026 14:56:08 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1795964168; b=5GUhgGHIHZ/6Xc93RtEQKH5OEl+/K1ZUOHx3lxfk1GjITH7KPLe/zFWGKCvd/FVmdulD ZKnqM/4IYwWyg2I7kJVzTDgxFm4qWcitRgTTGTrYoCC03MekvXFhYyJGoWLIQkIG9Y7cw CpPFZ1XZW6SD7JS9B3MbV/33Hg2ckT/HQQek7OlhZ3pe5oKsfWUs2ZbMM0QdosnPgYxv3 24e/IgE9mbwBbVve5zqNjSpeVhmwVfVY+w4SlCC/J/XhotikPBcuhjzTiT2t1pvu3ziIH UplgK7diaIozwejWYn4HnYgUwubk3kpcG7LbkWH80TnHQuLsxFixV/7RQmebW0qQOSQ== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795964168; h=X-Original-To:Received:DMARC-Filter:DKIM-Signature:Received:Date: From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id: List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner: Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=eRE0PwRdwmBivdKkbkCclnxN1T9XtMT4e9fS64Og0L8=; b=vRpxUcHY1pBwTCNXSBGoYh+CkTm4HQ6cFp/SETtvoUhETtzqUg/er32S/6C7KmmHipig /+PODigsUj7F9mT1rX4gbOqhT8vR0o8Si7M35TaCSjPqDoZyfPQGfniBijBado1CDai4P i0hCiQIoJamrY8ngkkB2iG7Ladc7GJv+slP52+DVQ7VT1qSCfJvlOMEh5uOjv83+ZXMpH BwCCnfAz3r4aVh5Xc/uYUvB/uVDqqhYrF+Rld2PJlpheClNNkEcn5qORo65fFo+kFMbmF Bu4VQgYAOrNOz92YRRkgEQ8jgy+DzSY5MzwfbYkuRDJbdWUQF4ggjsi9TZd6SXV34KA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RQU0JGg9; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id E8CCE606A333; Sun, 29 Nov 2026 14:56:07 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RQU0JGg9 X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795964167; b=0lMDuKHyGHuit41SNXekm0OBhbbsfTFFddb4zqHNcdWXd6bKCxi2X5DBIe9Pdc3nRk8G WTkQ1ehVutXbzL8WydX3tQbEChLebQkgWRNVW9KCSzBLF2tIvRV/p9Nq/uFczRgboAJBF EMmLYnJ6Rk1m8Fz4DvhrjMSoEsWAQ6eDdGZh2y2McUCxbjq7gRL/Huky19tNNX2GTlF8i Cmt4k1ktMoF5MYpDP/vObEpukPnORcIC/O/A+ZWenGoSd9Vj8sGGZ/vwN95AfoJ3GovGr CbkJ31wpMuCb08n3LebC+IqFHU6nib2/x/amTqOlg86ciC7AgzS8KSpx9ijLbz+R5Lw== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795964167; h=DMARC-Filter:DKIM-Signature:Received:Date:From:To:Cc:Subject: Message-ID:References:MIME-Version:Content-Type:Content-Disposition: In-Reply-To; bh=eRE0PwRdwmBivdKkbkCclnxN1T9XtMT4e9fS64Og0L8=; b=koPzbZvKYVwPhe0qyDlTASAze5Nv9+FYTgRaUSUcYC9RH918gobM0aJY3JhdsKtxDeiQ 6M9klnh2cKck/mBVRtcio10cAuhl4seNLPQCZkmUhlyuW68G6l1nThIwRmEGEGGBByYF7 jPkkTM1KVZD8jGA8Muiqtsml+wEfWt3yCQMguWnmqMjwhHCY6hubO1Kb/88/QfNJQsaBB Qv4RuPAtJQNQt5erC3iqgSr2ioMnTPcYEgV5r0pgmnv/X59v/qd39vfTV176WtTEFEZW8 YhbztDIf+vuGJgsCKxKBs75oIVdNVqLDR7ka2crvv3eKti1WZtyk48KaC9kiko2viLg== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=lunn.ch; spf=pass smtp.mailfrom=lunn.ch; dkim=pass header.d=lunn.ch header.i=@lunn.ch header.a=rsa-sha256 header.s=20171124 header.b=RQU0JGg9; arc=none smtp.remote-ip=156.67.10.101 X-Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (prime256v1) server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9BDCA606A323; Sun, 29 Nov 2026 14:56:06 +0000 (UTC) X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9BDCA606A323 X-Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch X-DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=eRE0PwRdwmBivdKkbkCclnxN1T9XtMT4e9fS64Og0L8=; b=RQU0JGg9o7dvH6ojck/jStiNjP BJld/lTly0RdZ9FvOI7IOvtCIdQLDkqzqsIPZb0Uf7CnIl1nMgQ/StH2SMKJz7dXGWpuZU4yAVoK1 lZyNQUplW3rSWvDU4thJlZrxhyddIF1sU21SXa+z6UOTwRx8B7WORuOOWb56ivxqLfEA=; X-Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from <andrew@lunn.ch>) id 1xXgJX-0029gk-Ga; Sun, 29 Nov 2026 15:55:39 +0100 X-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 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list X-In-Reply-To: <10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com>