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=1795955220; b=nE3KIUs+IKw3PiCUZggF+Mg8L9TiR6Ni3ZjfXo3Cu4wOCAz2dcSt5ijS7tCUtQlzMboJ XtS/PTOvKk48IgAgathATTVHwaYnMJiuo3NlVR9fiDSWUpQC7Bnsg1+91MpFummX6HYcL dEqlfxnmqh6wldJvIYtCg9f//qhozhKspHw2kwCUF5T4nw4k9VKfUvxNYqtix7GRpgMYB NYY3PTbEQmAJ+nvVFr7JBQ6WVKwdg+/8FE2pC3d71fdEaddVLlnrwL7SNBy+2dwgAa5FA PcHHsWwA5lvIJzyPQs39Ieq51eqjneb5+/SFa97pmWHZs5VjwFbpcvFfbaR4rLJsefg== 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=MV6DhNBUNYI4kKfyO5qzN8PRTR0vLyk2NX+ZhWsa7H9meK70IfYOWPGeHWeptybZuPZd tcfKKF3IIlvm94t0wPXTCuXdkAywbzRykUl5PP89CvLm0MuRyFTd7O3YIEgEWtc+gukAS mN+CpscgaBHhaX9eZYWCNrF9xOPd4t0EP3B700mdDly+Hx8vUPU5a5ckV0Mtedya++SHw RwHw9EytVicZgqhMgvNC1JkuYBvGfx7CTWpfewPitxxr1iM3W7ZKAZ5FmjDU0pDfdfc3/ 8GnBeBTI+Oz0RcrNxxkvy6RpSkkjPzz62shfLBnQW0m3K4t+VoGYIuriQC1zrh09bbg== 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.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 8243E606A333 for ; Sun, 29 Nov 2026 12:26:58 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 8243E606A333 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, unprotected) 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-04.galae.net (Postfix) with ESMTPS id 438F9C4CBED; Sun, 29 Nov 2026 12:27:00 +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: 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> 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