🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25236

Re: [PATCH net 1/4] eth: fbnic: restart queues in place when fbnic_queue_stop() fails

#25236
From: Simon Horman
Date: Tue, 01 Dec 2026 12:38
38 lines
9554 bytes
On Tue, Nov 24, 2026 at 09:42:09AM -0800, Dimitri Daskalakis wrote:
> On 11/24/26 4:33 AM, netdev-bot+sashiko@kernel.org wrote:

...

> > The commit message says the HW "resumes from where it stopped". However,
> > fbnic_csr.h only defines RESET and ENABLE for these CTL registers.
> > 
> > The injected tests cover "HW is idled, but waiting for queues to idle
> > fails" and "HW never stops (rings left enabled, and wait skipped)".
> > Neither covers a CQ that was disabled while a completion was actually in
> > flight.
> > 
> > Could this behavior be confirmed against the hardware documentation and
> > described in a comment? If that is not possible, other options would be
> > to disable the CQs only after the WQs/BDQs have gone idle, or to drop
> > the partial qt->cmpl.pkt state before resuming.
> > 
> > The later patches in this series ("net: add netif_disable_subqueue()",
> > "eth: fbnic: wait for in-flight xmit in fbnic_queue_stop()" and "eth:
> > fbnic: wait for both TWQs of a Tx queue to go idle") do not seem to
> > change fbnic_nv_reenable() or the disable ordering.
> > 
> 
> The device keeps its ring state when we disable the ring. Only a reset
> clears the device state. The device will finish inflight completions,
> and when the driver restarts the queue we fire the interrupt which
> schedules the napi, so Rx/Tx does not get stuck waiting for a
> new completion.
> 
> If for some reason the device truncates an Rx packet, then it will report
> an error via a metadata descriptor. The driver will purge the pkt data
> accordingly and move on.
> 
> I don't think it's worth a re-spin to document this behavior.

Reviewed-by: Simon Horman <horms@kernel.org>
Technical Details
Message-ID: <20261201123846.GX804035@horms.kernel.org>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375025-linux-kernel-netdev=dewy.ru
References: <20261121033215.1020506-2-dimitri.daskalakis1@gmail.com> <179552362260.3135.14543564146944003534@kernel.org> <8e5ec49c-2610-415e-bd92-c0be9727243c@gmail.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375025-linux-kernel-netdev=dewy.ru
From: horms@kernel.org (Simon Horman)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net 1/4] eth: fbnic: restart queues in place when
 fbnic_queue_stop() fails
Date: Tue, 1 Dec 2026 12:38:46 +0000
Organization: Usenet Network
Message-ID: <20261201123846.GX804035@horms.kernel.org>
References: <20261121033215.1020506-2-dimitri.daskalakis1@gmail.com>
 <179552362260.3135.14543564146944003534@kernel.org>
 <8e5ec49c-2610-415e-bd92-c0be9727243c@gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: usenet.network;
	logging-data="1710277"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:aKkjCWfaU6Z0eBef5hcDwAIU+Mw= sha256:rrF8T65VaHT/cOAN2ozpAK2JrGF6KuQgM5S0KLzIiok=
	sha1:hEoPaaSuVIdoTCr7BzDouyYeeVY= sha256:7wYy2aSYuFbGz8teEzEN/jPNS9apHxR0DEBBnjBB8UM=
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 BE25111737C; Tue,  1 Dec 2026 15:39:20 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.401
X-Spam-Status: No, score=-3.401 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, 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 OYYw_q_y4dTY;
	Tue,  1 Dec 2026 15:39:13 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=104.64.211.4; helo=sin.lore.kernel.org; envelope-from=netdev+bounces-375025-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 sin.lore.kernel.org (sin.lore.kernel.org [104.64.211.4])
	by mail.dewy.ru (Postfix) with ESMTPS id 2BCB9117354; Tue,  1 Dec 2026 15:39:04 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sin.lore.kernel.org (Postfix) with ESMTP id 8A3D3250F0; Tue,  1 Dec 2026 12:39:02 +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=1796128733;
	b=U944sXxuT1uNw21oRC23XPU0MAMPhP/mogSY55cix9oMFl5yHiTwBK6APvOWAM72XozG
	 MBoELow/1XpYAJBabCJLF+QdWSdj7hJSwB5vLtfpQyQIk5Qecmu/xSTeKbnMaAB3HuqFw
	 j/IFPD/ZZ+y1sA+2MoOX5m80JEElGz/rtykNfG0AKA2UbC8POiAONAcJa6xYtnecjefza
	 R7Z5pTKRKThY+x0VGZkzFAFn1xsXxRiAL6EunuypZcsVpyUoiUQspQSh9aRGgDvZGdMxy
	 ErqXocFJqiWfcCX4h/OJmh6M7pADVdZSxW0+/6ZexnAQVVTyiD3saFtiB+2tf1xSCZA==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796128733;
	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=SfcSDisAystODxVfQmDxpo4+wM2//7p7FPA0Eravklc=;
	b=W2MyV/3L5PwVJPT6KS5hVvGyZigvp3jDp3KR86PezlTPfwbgmtEj0fJb+QL51NEHJ2bh
	 Mi5NXirkwhgaJyVuxR6xav+KkFSym53w3UkHc+PniH+K6qQlNMDXGIe/R1gvIY0WZd8tc
	 NRRIjArggwWGFxDjadS7x29rZyqBIYWyWw6wddHjPtHEy618wB9bpPtT6hJ7k8/oYPz5K
	 LJK8DMUADEEBZ/eeWk3qMemIGdBi7RJJC0du3l+3M0T+y3/Hhu0pW3FLgQ6QE1Ac+IhbS
	 rMJjYxzoC1MoIndVl5sfIQBQEgb/U8eL0gq+a2wk39JvY5rWJbxP7kRAlDUGLYBJyMQ==
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=DSi6VBtI;
	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 5C6F7606A336;
	Tue,  1 Dec 2026 12:38:53 +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=DSi6VBtI
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=1796128732;
	b=I88DL2i0MKXalzqpr0JeSYVXBz1ApKfrK6vkmuts+R8V0s+w0D9WCB6iUNv74Ei7e4Rs
	 YeiBjHZtkb7faaXoOeQkJWYi4eCjXUWClKWe1R4ejKXxjdr5pe3DEbsfH2jezpOOxiO0c
	 T/vPIEyykfZuQK7o8EgR9lV1FQncgoGmCQsA5A8+J0ieWCYsFn7h0dfRYZIHoVTIHW0wz
	 jjDzoMx9GeBObp4HKzxVsplL1T93IInRz6wVtnkqsTOECsCkJkGqZAWB02VGK4Ytn/RaO
	 Ay+RRmLvD3L0kNpbp8orMwx7Wj9Z11CjLPS4Ftlpy+kI9FZlNVmEpuxGKXvgtdInv+Q==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796128732;
	h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID:
	 References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=SfcSDisAystODxVfQmDxpo4+wM2//7p7FPA0Eravklc=;
	b=yvEF6XNEsBNE1QLxWgU0wPgOJsd0vztj7YcO2FwmocDO/idQ8zSckbeIjM0JwdAZIsAs
	 PLrBiKreV2NEQ1eKVBtgun5fYY/Unm6ZnDiNAwvJfjKg/mI3Uo2kiEoQz565fq8WfcF8S
	 Pruu+vOYaKxpbgqe9FHWIrZDKb7/3ip4DOMLAXBczEvSd7x1TfRf4Sx47ehxdCBZYoPg1
	 OczhySb2LZtzeoXNOg/dmvOglSG93JvsxjoaH59Lhq/zTQQSKy4qb/TlamGqk7FYELAB/
	 5//k3th4z9QCo1spmf/R1f7sl5lJ/Ervo7VWjazdVwsCSvqMc3eR9j/p9HVVr04ROZg==
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=DSi6VBtI;
	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 801B5606A6A3
	for <netdev@vger.kernel.org>; Tue,  1 Dec 2026 12:38:52 +0000 (UTC)
X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3271B1F00931;
	Tue,  1 Dec 2026 12:38:49 +0000 (UTC)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org;
	s=k20260515; t=1796128732;
	bh=SfcSDisAystODxVfQmDxpo4+wM2//7p7FPA0Eravklc=;
	h=Date:From:To:Cc:Subject:References:In-Reply-To;
	b=DSi6VBtIT1AGiRqsXYq1JyV40vvHMugsYb7MKzQ1wpWlb6Dyk6nU8Uj7FnRwGyzS6
	 Qp/6P9q7aliOWUn0aD/PvyD5GBrtBvTnTcynuw6G36WyzeyliRdNaU8wlt10ptPoc8
	 zFFTtwkx7rPjUyYLlRePVj4P68aeIMvml3MNLZ3XXwskUWgJL9YfXv21cr84/MD5Mj
	 YGebEm7Ocg66ibbO46RqffsNOadbn4dObM/WkUXKTcxRUxoeyWFTp+zP2soQtIFrl9
	 Utm4LcAHQvGCVJVjMGj2/AGhsr11YziRp/D3IufTFsMrUus+EGUCUVBowDrc5cYqiu
	 LQi1/VsJvH2OQ==
X-Cc: netdev-bot+sashiko@kernel.org, davem@davemloft.net,
	alexanderduyck@fb.com, kuba@kernel.org, kernel-team@meta.com,
	andrew+netdev@lunn.ch, edumazet@kernel.org, pabeni@redhat.com,
	willemb@google.com, bjorn@kernel.org, bobbyeshleman@meta.com,
	almasrymina@google.com, daskald@meta.com, netdev@vger.kernel.org
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: <8e5ec49c-2610-415e-bd92-c0be9727243c@gmail.com>