🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #15887

Re: [PATCH net] idpf: reset mb_wait_count once the mailbox is up

#15887
From: Simon Horman
Date: Fri, 13 Nov 2026 17:42
28 lines
9598 bytes
On Mon, Nov 09, 2026 at 06:43:27AM -0800, Breno Leitao wrote:
> idpf_vc_core_init() retries a failed virtchnl version and capabilities
> handshake up to IDPF_MB_MAX_ERR times before it gives up on the device.
> Each failure increments adapter->mb_wait_count, but nothing ever clears
> it, so the limit is shared by every initialization in the lifetime of
> the adapter, including the one done by each reset.
> 
> A device that fails the first handshake after a reset, and then
> recovers on the retry, leaves one count behind per reset. Once 20 have
> accumulated, the next failure is final, and the device stays down until
> the driver is reloaded. This is seen in Meta's fleet on hosts with
> recurring Tx timeouts:
> 
>   [ 2176.496801] idpf 0016:01:00.0 eth1: Detected Tx timeout: Count 21, Queue 11
>   [ 2176.508763] idpf 0016:01:00.0: Device HW Reset initiated
>   [ 2237.412541] idpf 0016:01:00.0: Transaction timed-out (op:1 cookie:9800 vc_op:1 salt:98 timeout:60000ms)
>   [ 2237.412578] idpf 0016:01:00.0: Failed to establish mailbox communications with hardware
> 
> Clear mb_wait_count once the handshake succeeds, so the limit applies
> to consecutive failures only.
> 
> Fixes: 4930fbf419a7 ("idpf: add core init and interrupt request")
> Signed-off-by: Breno Leitao <leitao@debian.org>

Reviewed-by: Simon Horman <horms@kernel.org>

Tony, maybe this should be routed via the iwl tree?
Technical Details
Message-ID: <20261113174251.GA18859@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362824-linux-kernel-netdev=dewy.ru
References: <20261109-idpf-mb-wait-count-v1-1-c6584754df78@debian.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362824-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net] idpf: reset mb_wait_count once the mailbox is up
Date: Fri, 13 Nov 2026 17:42:51 +0000
Organization: Usenet Network
Message-ID: <20261113174251.GA18859@horms.kernel.org>
References: <20261109-idpf-mb-wait-count-v1-1-c6584754df78@debian.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1406487"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:ANZoGYlFk+6bYXlBiVI3SG00IYg= sha256:Y9Rayb8Vuctykyo02Gc4p7coziywefEnlksVTSWVx7g=
	sha1:H7o+gRbYElxsslp5U/fpfqTGLM0= sha256:fu0CdEXhGQevYllcRwHfq8dshGZrZVrUXo3WjgegDrE=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 294521145F6; Fri, 13 Nov 2026 21:31:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.501
X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31
	tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001]
	autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=kernel.org
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id mb0oajZtzbIy;
	Fri, 13 Nov 2026 21:31:09 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-362824-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 9E99F1145D5; Fri, 13 Nov 2026 21:31:00 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 31A656C6276; Fri, 13 Nov 2026 17:54:41 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1794591778;
	b=rgLRVk7NcdwGh9NouUqHuirvqbYkbcuaVXMtBVX9qcK5Hsm6rcIxV/2r5ZqC8QdKXL4h
	 +5IGm0QTJGl9VyV7eotweYGV/wI4GqyxGDw4znJ9EOeAzFBuaCrctAwPbWZcjCMCMkhHt
	 zxdOvvcCs58f/fKFX7GKnL8ABF3M9AhYymdv8S8fRtPoiPC1wARHc3nLaJ3wlaBB1A/S4
	 kCtQx8hcoyK1ekAS781vYzqTQel7hizfpGsth3FtUYBFTb/HnTjb4fafY50uMSU5seqpi
	 X/Lj01bsSYH0XCGU65iFHxvUPFFRTkPK1OOMLW1F4d2fpY537eJ/zEepA9N5lu/yzlg==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794591778;
	h=X-Original-To:Received:Received:DKIM-Signature:Date:From:To:Cc:
	 Subject:Message-ID:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=IYvcfGb/slu58PM/m4e+Yc8z7FJ8K/oScmbq+QLPvBU=;
	b=KOYRA9JCjRiQkMmYmTkN58I4yCREvi5f3Jmnj7elO7rVxhqMRuFeKE/2bqUoaYgvmw5N
	 pm5ezMtI/SK0jG4EzFoR85c/hma7ZaHVZJ9h0TGmabmceiKemAu7V5gPlRpT1c/1qWXyn
	 oS9zpJ8Y3VIevwkrTPmor6XC3q4M5KXNxFaS0VTfrLIed/L0W3pwonrJ3+lGLSsRm7SZQ
	 juuaGL8MqGJWhsSp9bn1kfTYD9I0rs+rffPxoqMRWR2LKwFCgcjBch27Nrh6FJVZNaXL1
	 Z4sEdjTl7zuocILrGS5r6pGNT1R0xmGhjuyhBNt0saxP8NTn0jPby1/zG9ZnzZuN2LA==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OiMnETWV;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 95427606B373;
	Fri, 13 Nov 2026 17:42:58 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OiMnETWV
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1794591777;
	b=wIsMJDTWRrrDmJIhsvHyvCgfVqezWmYcTA6KzGgSl+dorGHMdy4ZnPPqc4y9z9EB97Sb
	 +y5xR707w0lpCcxmq1ljYmlJQwHptM9c8OECHJYYCj2ZslqVjsFvcOBzl7Qw1ITGpNeD7
	 UyuIH0aBpxRyh7/iJQ63RISxawkznal1U7FlctcjixRvnNY85Ugabjb2Iv8c6pfwP+Wh0
	 VyGYq6VxVTk9sCRRk0I6tJSFx1k8v+kLCGo7T6xh6CVQHSurAceX3G0E6g+xmIt4rNaYW
	 F/TATd5Ux1+eoh5KXY1IGqbNcHbM+FhyBGn0vr8V6TaGFrWjSLBtHmDV+xQRyvzq3UQ==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1794591777;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=IYvcfGb/slu58PM/m4e+Yc8z7FJ8K/oScmbq+QLPvBU=;
	b=QUl8Ng2oaCEI7F+kLuedmotVI6mym7ZzicEE0j1zb/24x1lz/iRTqIrTP8+4YhCUxXMP
	 rAUs73ybImGoOYrmYu22w1xCQr3pudkghOUySUu75YfvtQt4qM4ZTtmejqpojpKvFmL8Y
	 Kmq5U7zeQKhfKltXnTI0Bs7rwSKLn5taGtBn9WGThqiqDsFZklhKJvNUuUPYNSlraNtOb
	 zRDNhiqKSIOW0bEA099yHPhyJScyLqL5d5sqeh9gOlkI2SEx9T1G9odJfJA/dgOt9HQgm
	 z6ZE1Q1jwE8wJDlPJorFNNq7uTi6GiW9j/gNgbcJ7Sg0X+n0EYDVwNbWZcl7rs6Eecw==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=OiMnETWV;
	arc=none smtp.remote-ip=100.103.45.18
X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1))
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id B4F81606B369;
	Fri, 13 Nov 2026 17:42:57 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6A971F000C4;
	Fri, 13 Nov 2026 17:42:53 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1794591777;
	bh=IYvcfGb/slu58PM/m4e+Yc8z7FJ8K/oScmbq+QLPvBU=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=OiMnETWVNrC+PUULxWlaoousk14+Ub0hS1/4hS6n6AToB34KRUeMJKSvRmUMvWrmB
	 ddKR+DwvFNgpkWG9r2uoJ2nCkxuPw/zDoUqP9oXW0VjfYGH8c8Oz8Z9HDhYUmlmtrG
	 U4GIoU9jVkvSyKqCalob3PFhgDCres5WEX65I14+1d27QmqILveEcgOQQb3O08S8AZ
	 v7WUpK8SNAB+Rn/emnt+9SupVYCDhr+bwKCeoINC1vZGdaJECLLAsamI/5zQW1upRa
	 JlZUglx99ghE9WhA9FFabMiLsCf5f1A8lRz4NtFIA1rbPMfk5OJcevD6fyhvgYpqQF
	 8nnDlffKCYUnw==
X-Cc: Tony Nguyen <anthony.l.nguyen@intel.com>,
	Przemek Kitszel <przemyslaw.kitszel@intel.com>,
	Andrew Lunn <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@kernel.org>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Madhu Chittim <madhu.chittim@intel.com>,
	Emil Tantilov <emil.s.tantilov@intel.com>,
	Joshua Hay <joshua.a.hay@intel.com>,
	Alan Brady <alan.brady@intel.com>,
	Sridhar Samudrala <sridhar.samudrala@intel.com>,
	Willem de Bruijn <willemb@google.com>,
	Shailendra Bhatnagar <shailendra.bhatnagar@intel.com>,
	Pavan Kumar Linga <pavan.kumar.linga@intel.com>,
	Phani Burra <phani.r.burra@intel.com>,
	intel-wired-lan@lists.osuosl.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, kernel-team@meta.com
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <20261109-idpf-mb-wait-count-v1-1-c6584754df78@debian.org>