From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.171.202.116 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795977533; b=Quj/3PXbTJU7mp/Yg7l58u7eXm53zFfxqsH+8gmdz42MCAtYw67a2SR8MpqRgoI+BNtP W7mOedBE97IdHcyz+ndoyhhorc3ymES186qAzX39V5Q8Mvsr9/3dX9fEOiygivVdWhsSR S2mw45+MJCq5ek1AkJwldvcyxhD0gDkDwSa7ZR7tbvfmZwCGJwlwvDXDtU4OW76pMdFAs XeB2t0I+VwxYyOWs8EpVQu8RVmsJik/MHdtxV0X8+UiLYAHxewIc4YQe85IdaBZxk4hny 8ul+Z+nNXU+ogPswjn1PdcZIO56fEr41i6Q3F5FxUl8ceQddiC5knkKUwfBqS7+CpeA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795977533; h=DMARC-Filter:Received:Received:Received:DKIM-Signature:Message-ID: Date:MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding: X-Last-TLS-Session-Version; bh=xYRaMa5CkSCQbvS0aV+xMJEshpqBRj3k/21jnfKYXm4=; b=yzvLOuyIMEc1yKTxXI/Fp3G+K7FnSiJtZKwRYIsQpUgl5V8+5gIM81OH3v+W9h0gIwAX BwMHST9iYg24aG+4wVCs2xrgz7oA7d+4LxRjRfyjoT+SgQyio/hvQkPS2kjneb6z927cJ Y5AdbMh6ENNa5TEQjMCc7VJ/nCR822Z1dSNNuos3ZxtOnsu6odtJrpVQ/5yW4+5w7vdU3 8LdK0PXnWc/9cXQaUtO2ctJqpJ+1LRUEKi4iJLojfR2msym35ZimwV7i7NOHPKU8lkn6U BYozwGqucOgQeOXok+tASRi9LWPqfgBxVvuTHUdMQrXUxziLGB4SksLsC7xPVaZavbg== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; arc=none smtp.remote-ip=185.171.202.116 Received: from smtpout-04.galae.net (smtpout-04.galae.net [185.171.202.116]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DC69D606A323; Sun, 29 Nov 2026 18:38:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DC69D606A323 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=bootlin.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=bootlin.com Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-04.galae.net (Postfix) with ESMTPS id 16560C2AC5C; Sun, 29 Nov 2026 18:38:49 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 219316075F; Sun, 29 Nov 2026 18:38:39 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 300DE11EA000F; Sun, 29 Nov 2026 19:38:28 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795977517; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=xYRaMa5CkSCQbvS0aV+xMJEshpqBRj3k/21jnfKYXm4=; b=VhWfeQB6HlKYYgtWip0mRTXnzIZBW2ZCCBnrDZ0EQXZkwGyG5nfJ9XPLAODebL1PEFHPOb fIg+JDPLmdeNP5lSXinO1xGqsE5O62MRYXon7YcXM+7qpkZLgFN+f/OkcY7HTf/vEFf3QZ M7upfyUlvxqsIJZobqMx1XL7mjLdHSYO6d+edgOSwZejjAscRGDU4+3HBMCq3oA+vFhblh 9w6yaJujS9+oHEN07PIpMdutg5mGsq4szpNb9rtnXvm4qLeetZYubV/RBhNF6lvD3TF5/U CAjeZzXygfnmmpsjyYDSc+Fb2N5b/CSn51+c3yXEqJDekWryHDABvkoZ6Yq97w== Message-ID: Date: Sun, 29 Nov 2026 19:38:27 +0100 X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH net v2] selftests: drv-net: pause: ensure the link partner sees the link when probed To: Andrew Lunn 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 References: <20261128101725.17398-1-maxime.chevallier@bootlin.com> <8c278a5e-588f-4b8e-a89b-2dfcafef2e64@lunn.ch> <10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com> From: Maxime Chevallier Content-Language: en-US In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 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