From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=156.67.10.101 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 9BDCA606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=lunn.ch Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=lunn.ch 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 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=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1xXgJX-0029gk-Ga; Sun, 29 Nov 2026 15:55:39 +0100 Date: Sun, 29 Nov 2026 15:55:39 +0100 From: Andrew Lunn To: Maxime Chevallier Cc: Jakub Kicinski , davem@davemloft.net, Eric Dumazet , Willem de Bruijn , Paolo Abeni , Simon Horman , Russell King , Shuah Khan , Bobby Eshleman , Stanislav Fomichev , Breno Leitao , 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 Message-ID: References: <20261128101725.17398-1-maxime.chevallier@bootlin.com> <8c278a5e-588f-4b8e-a89b-2dfcafef2e64@lunn.ch> <10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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