From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.85.4 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795977533; b=MuICmNu579u0T5PHfyvlXWXaiYP8at1E/hhyHpogBzwLST8W1/azGzC4M6Mt3IYcFIuw s1l1zEpKl0WDZdO05QGB6WiGhy7p9gyQFIrwU9K7pJa4Z8r8g8QqjCNawGFsthazp9meF OrfX2wsEgmLXaa2epp4aLBfXdRy1msZi9tzjtaPXUcBC99nsD+rNgV2yFG5eCouivOLbm litynwO5i/qXXJ7ZLNIiluEkxnWwloy71FfmSszVhZD+DCx1H35T0IhsNGc0HppP3rLD1 mgZfi8YIvo484oyE0qiBss5WkGX6sxxdnm9lqNiOShsw6NOhnjrQtL2X+MY7Lu8bv+Q== 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=KDixX6dZG8JmBWI5M4uY0y5ZUm7CfP4V6kWZ2JwyLugD1zstv9xlRQsygGWyiL9TS5UK XEMUKbmMA8yZBrmCNABq4v6SfkAIBtyEnyQJq4Af/03/iZtaACM7voRj+j4Y82NJ/FbJK W8mVaso2sSGzQzGQZgEyfTPDiqaqla3nc4oH3HG/ZzXUCRadxP07mEdJrxAXu/4jdIAhF deQzAGOr53EIb+lAyyahgbqEImq1sZnsX8NV5pJicoDiIa5Yxg/PURF7M1FFTq1wiPbfy s9cT1oLhnhB8yyOYDpqM06mBo6Vtd8/YW3/mGlHG5oZkyHyLXwADGv7E7rcI+sIHZhA== 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.246.85.4 Received: from smtpout-03.galae.net (smtpout-03.galae.net [185.246.85.4]) (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 702B5606A31C for ; Sun, 29 Nov 2026 18:38:41 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 702B5606A31C 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-03.galae.net (Postfix) with ESMTPS id 6DF604E417F7; Sun, 29 Nov 2026 18:38:39 +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: netdev@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