From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=185.246.84.56 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795955220; b=2S919uBXrF+WCA7ZhKD0aDclFkwLExHHKFDXlNtxhZANdP/sHkAwWUC63iO0GHWaow46 fpNWoYkYc6NF+R0Nj5+BoepnC0BKdswvyFJ039tEmpJbEZyIEEYNG/MS1kmfZCFLR28zP cOnDyEFLe8Ke7EKCHPoUor7zdllJ4fvPujmqeY23QT3cEKd4Y+7cCaudPhuHH2oNG4V4O 1wZxerCpymuGUg87t7vNqv26BcXquJ+8fzWjbfHWtMSyIRSlpJSo5LdIJGl0CtHmBe4EG BPh3x+l/Ok0MjoqCLlPHmBxHEJ52so7XRoJV7ehM4HZbH1qv28/8QTokEwIr7Vct8dg== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795955220; 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=0e5pVdaxjEHhkBKJrdqkyF+H4NJQZyZk8mivrI9/4Zc=; b=Kms3TONT0fsnSl3ysJwL0nPVgGGElo43EtIeoqp7MoUGe2XTOtH3veIvZ1c+5d91uzWq jZVL4vvJ1GLD60MAs+PpQe2idug6+cS5LUyKCO8LaUr/ZXSqSdidZuIO3zbQBhN7VzUKl ISHGLM7pK6XQtAOnbnQszejUAhrxRaNJNxBRYdfoq6UCgMWos7HARItn7OQGJ48Et3OsT ANYD0w0YT/D2fJ9NplasgnECCAIAoXbxETavs1GceUin7TcHVNhyqOAzKuA0vJCh7R8KA JpyjXyvx2oYBtskOjtYRDkQ0FJ8BjnCnj6tNVzijK763fYCWvtCW33/UeAGW8wQqqZw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=bootlin.com; spf=pass smtp.mailfrom=bootlin.com; dkim=pass header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=lkBxGVFW; arc=none smtp.remote-ip=185.246.84.56 Received: from smtpout-02.galae.net (smtpout-02.galae.net [185.246.84.56]) (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 96527606A335 for ; Sun, 29 Nov 2026 12:26:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 96527606A335 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=bootlin.com header.i=@bootlin.com header.a=rsa-sha256 header.s=dkim header.b=lkBxGVFW Received: from smtpout-01.galae.net (smtpout-01.galae.net [212.83.139.233]) by smtpout-02.galae.net (Postfix) with ESMTPS id B20D51A186E; Sun, 29 Nov 2026 12:26:50 +0000 (UTC) Received: from mail.galae.net (mail.galae.net [212.83.136.155]) by smtpout-01.galae.net (Postfix) with ESMTPS id 750326075F; Sun, 29 Nov 2026 12:26:50 +0000 (UTC) Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 8556311EA0453; Sun, 29 Nov 2026 13:26:35 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bootlin.com; s=dkim; t=1795955209; h=from:subject:date:message-id:to:cc:mime-version:content-type: content-transfer-encoding:content-language:in-reply-to:references; bh=0e5pVdaxjEHhkBKJrdqkyF+H4NJQZyZk8mivrI9/4Zc=; b=lkBxGVFWmWi2bZ/NCK57/dvHZXpWwNh2Atdy0+hAOysksVxqpxVcXJ7fVxinJlwKkOVt+M X4C+1gEES3g4+edpdIOKt21A3ATWntEF+oZwEt+hfd0ZJUC8N+oqoq1LYs/UXXV8WXaYkc dI7ZWvq5z4sq3ObzxibbO0gSV+WbXxGbPGBL9PtTIBUxnP77JxOKnfFaahMKrNtCbYGd+x n2xsn+sOWfrRV+1T06zu6b/8jn0bipdOdlIgyUARnxFizJiyzheEEYL4uJHpEEsX5jBreD iflrxONmqrDqcdWA7BTFI/xq1r9Ma490CNWp1FPNuMva8O5JchEXymcfkGnLqw== Message-ID: <10030baf-4e67-43df-b7bf-f3471c5c96a8@bootlin.com> Date: Sun, 29 Nov 2026 13:26:34 +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> From: Maxime Chevallier Content-Language: en-US In-Reply-To: <8c278a5e-588f-4b8e-a89b-2dfcafef2e64@lunn.ch> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Last-TLS-Session-Version: TLSv1.3 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. Looking at the timings on both ends of the link I don't see any real oddity, it takes around a second or two to renegotiate the link. The main reason I missed this before is that most of these tests were skipping on the stmmac CI farm due to me using cheap USB to Ethernet adapters that didn't support Pause. Only one or two boards did the full Pause test. Now all 12 boards (well, 11 right now as the Motorcomm PCIe card is apparently fried) are connected to these IGB peers that exercise the full Pause tests. Maybe IGB gives the results a couple of hundreds of milliseconds later than the previous peer I used for these tests, and that's enough to put the test right in that racy window :( Maxime