🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25350

Re: [PATCH net v6 0/5] bnxt_en: Make RING FREE more robust

#25350
From: Joe Damato
Date: Tue, 01 Dec 2026 15:11
74 lines
14844 bytes
On Tue, Dec 01, 2026 at 08:30:57AM +0100, Paolo Abeni wrote:
> On 11/30/26 19:11, Michael Chan wrote:
> > On Mon, Nov 23, 2026 at 3:27 PM Joe Damato <joe@dama.to> wrote:
> > 
> > > Sashiko's review of v6 raised a few questions that depend on how the firmware
> > > behaves.
> > > 
> > > 1. Patch 2: firmware ordering for RING_FREE
> > > 
> > >     When the firmware writes the RING_FREE response (valid byte set),
> > >     has it already stopped all DMA for that TX/RX/AGG ring? Is the
> > >     only thing still in flight the completions?
> > 
> > Yes, DMA has stopped from the associated TX/RX/AGG rings.
> > 
> > > 
> > >     Also, once the firmware answers RING_FREE for a completion ring, has
> > >     it stopped writing to that ring?
> > 
> > Yes, the HWRM_DONE completion has been written to the completion ring
> > and should be the last entry.  The only thing is that NAPI may not be
> > synchronized and may not have seen the HWRM_DONE yet if we only rely
> > on the polling of the RING_FREE response.  But in this case, I think
> > the interrupt is likely broken and we've waited for the entire FW
> > timeout already, so we proceed ahead.
> > > 
> > >     If the response can be written before the ring is quiesced, patch 2
> > >     is wrong and I'll change it.
> > > 
> > > 2. Patch 3: abandoned waits because of FW health
> > > 
> > >     hwrm_wait_must_abort() gives up when the health register reports
> > >     not-healthy, and patch 3 counts that RING_FREE as stuck.
> > 
> > I think counting it as stuck is correct.  When FW is not healthy, it
> > may not have processed the RING_FREE at all.
> > 
> > > 
> > >     I am going to guess no, but is there a health status that guarantees the
> > >     firmware has discarded its ring state? If so, we could skip stopping
> > >     DMA in that case.
> > > 
> > >     Sashiko suggests that an ifdown overlapping with a firmware reset would
> > >     need a rebind. That might be extremely rare and fine as-is, though.
> > > 
> > > 3. Patch 5: Drop ?
> > > 
> > >     Sashiko found a deadlock and RDMA restart races. I don't know what the
> > >     simplest fix to all of this would be.
> > > 
> > >     Maybe it's better to drop patch 5 and let bnxt_re handle this in a
> > >     separate series?
> > 
> > I was hoping we could stop RDMA before disabling the device, but if it
> > is too complicated we can defer that.
> > 
> > > 
> > > It would be really great to get the ring free failure path fixed so that FW
> > > isn't TX-ing memory the driver has released.
> > > 
> > > If there's any guidance on the above that Broadcom can provide to help get
> > > this applied that would be very helpful.
> > > 
> > 
> > Sorry for the late response.  I was on PTO last week.  Thanks.
> 
> @Joe: your series is out of suie history, a repost is needed.

OK. I'll give it a couple more days and see if the bnxt_re folks reply with a
suggestion for item 3 (patch 5) above.

If not, I'll re-post with patch 5 dropped since it seems like we might be good
as-is, IIUC.
Technical Details
Message-ID: <aw7jvee2Hk9Qpx1w@devvm20253.cco0.facebook.com>
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375191-linux-kernel-netdev=dewy.ru
References: <20261120152830.699712-1-joe@dama.to> <awTL1hW4kH+lo8Vl@devvm20253.cco0.facebook.com> <CACKFLik4WFi669cajW7e5d0rkLGEEZm404LVuN=6aAR_uH26oA@mail.gmail.com> <73634d96-8114-46f4-88fb-b4afdf2f17fa@redhat.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!news.mb-net.net!open-news-network.org!news.nntp4.net!nntp.xenet.de!news.neodome.net!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375191-linux-kernel-netdev=dewy.ru
From: joe@dama.to (Joe Damato)
Newsgroups: linux.kernel.netdev
Subject: Re: [PATCH net v6 0/5] bnxt_en: Make RING FREE more robust
Date: Tue, 1 Dec 2026 07:11:57 -0800
Organization: Usenet Network
Message-ID: <aw7jvee2Hk9Qpx1w@devvm20253.cco0.facebook.com>
References: <20261120152830.699712-1-joe@dama.to>
 <awTL1hW4kH+lo8Vl@devvm20253.cco0.facebook.com>
 <CACKFLik4WFi669cajW7e5d0rkLGEEZm404LVuN=6aAR_uH26oA@mail.gmail.com>
 <73634d96-8114-46f4-88fb-b4afdf2f17fa@redhat.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Injection-Info: usenet.network;
	logging-data="1744934"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:Pjj13WzdC1DZ46UM+4orqxkh19w= sha256:CUdRdSUdCkREiCea6jHUTnthmQTGJheepm7sdwIjdv4=
	sha1:Dt2g3oGtGk0PoAxm60uaW5RZ7fc= sha256:C+UJMJrG77PR03ZnMk2HXQvthMJIaPKxkTw82C6NINQ=
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 04C82117400; Tue,  1 Dec 2026 18:12:22 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -2.951
X-Spam-Status: No, score=-2.951 tagged_above=-9999 required=6.31
	tests=[DCC_REPUT_70_89=0.1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, 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=dama-to.20260707.gappssmtp.com
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 Okpf7RMBkdYG;
	Tue,  1 Dec 2026 18:12:17 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.234.253.10; helo=sea.lore.kernel.org; envelope-from=netdev+bounces-375191-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=dama.to
X-Received: from sea.lore.kernel.org (sea.lore.kernel.org [172.234.253.10])
	by mail.dewy.ru (Postfix) with ESMTPS id AB7051173F6; Tue,  1 Dec 2026 18:12:08 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sea.lore.kernel.org (Postfix) with ESMTP id 0E0EE2E3D5; Tue,  1 Dec 2026 15:12:07 +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=1796137926;
	b=MvjqmPvzo2ODgcHTpbA3OPdtmqRwI5Agqw3QqGUOQP28pcPB/IDqovANRUG47FyylaVZ
	 4/NIBp1qgnRFPTdd1f9zFKT+C5nAmQLWd/kHuqHk5e4y1MJBwrsBO5/OVhP0y6Km97SvB
	 /EBNJa7D0t3GOQFTLfsJbE+Aw0I2Uq3Lik5BFgbYD4nt6z02e71Q7rBuNVzllH0fnSIz8
	 brG03aNmlD35JTyGoiFjx9IKURDg++ez392ss4ECT55ngW4GjO+cDnyr0g1jmBsHvNR3P
	 uj+H4XRr3NLpXVcML/BMbrb/DIVn2M176NdVz0wm62OMvwvSutjHM+uC5CxVkpYYnFQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796137926;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:
	 X-Google-DKIM-Signature:X-Forwarded-Encrypted:X-Gm-Message-State:
	 X-Gm-Gg:X-Received:Received:Date:From:To:Cc:Subject:Message-ID:
	 Mail-Followup-To:References:X-Mailing-List:List-Id:List-Post:
	 List-Help:List-Subscribe:List-Unsubscribe:List-Owner:Precedence:
	 MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=pz7Q0vqBEV6SUbDo7DUsEzXYbJtAjtPpMknw0ZMlskE=;
	b=WH6zc8skfSVzC13gmem6An85ZA7RZ1fgbrnk83N20Ja9zSh7Sd440RuZC+G/vyl4pZb2
	 QIQF/viycWWRiLeMtFnPvCzAxdV4s4z9NEwhxKxIFVsxYjONEaX3q/AxJPmV2YytxjZ+h
	 7FzeKwUqKZRh2p81TwpJbF2zl+G5Zu204HFTD8HZRWotk8iVg7PRugNcqDb7KM+CCwwfc
	 WnQEdUUwOP1izaUYPrtcN5SM+AQd0ofILoi0fOYau/FrnBQAoHNpvQeBI8jDRoHLhR+tm
	 /SywyTsc5+GtdEhH7HuOxdq20MBAfz3VDTH5s90NVIzlvNZtQOuBy/EOyJ5HnDix6Tg==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=op9jTDIj;
	dmarc=none header.from=dama.to;
	spf=none smtp.mailfrom=dama.to;
	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 A6DC8606A32F;
	Tue,  1 Dec 2026 15:12:06 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=op9jTDIj
X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.210.175
X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none;
	t=1796137920;
	b=jsNvxRYkdfUaxoXb66B7LJdyozxfYe7nqkvljtd9K6LZkBax6bm1BbdfkeQ7ezndjQWd
	 VOqsf2mCIpD+4loi4pRv7btLJ3Bm8W89/WuZmV3OkEoJWL9fSU5SSzq/b9rKJzVOqEhPL
	 tS4AVIDvLMGpuuXrxnJBs5h01Qf6kFeVBA76QHSn1AMSo2cIqWZSVEpuf6JsDR/EhetX7
	 S0yhLMFTG7Vrb5W46UGAJ4T1P9G87V3HaMMqHKAAkOvVh4vHHLAxYH6bZvpMz/HXn4YNx
	 Dt/KJuyAQE5iMiAaAEfyTUX2EXf5iYhWcgu5W8mvX49nLmNR/CeatX/TqLCbH0Xyt+w==
X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796137920;
	h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature:
	 X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received:
	 Date:From:To:Cc:Subject:Message-ID:Mail-Followup-To:References:
	 MIME-Version:Content-Type:Content-Disposition:
	 Content-Transfer-Encoding:In-Reply-To;
	bh=pz7Q0vqBEV6SUbDo7DUsEzXYbJtAjtPpMknw0ZMlskE=;
	b=DitYx4h6ABoJ1j/LYUZFLXo+tb7wLzA9zkpFl9z2Qifku7iArIhWm9yHZf5iYeUmF9zE
	 HFj7g4kyTTWKNX6j6Znd4ahcKNmQeMQeM0TgOQO7gBrbN4hQ53aqeFktc0ecKptHPZqmJ
	 sPmNDYA1I0zQyv8IyvP7TuvTlRvriv4YLgkZlTf6p0DVOO6cpjzrheFK54GQWoT+C0HjV
	 gGl8XvVjCxr54XERdZbxRzi3CrMhzoKA3EWqMe4abbStPk4yWiArw2QYEeAorE5ag2WHB
	 lZmodb7yDd0/e0tOcmlGD4VaJWFY7o8RJ8jfnqz2nzso52hr22gFoIF8ffe36to7PGA==
X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; 
	dmarc=none header.from=dama.to;
	spf=none smtp.mailfrom=dama.to;
	dkim=pass header.d=dama-to.20260707.gappssmtp.com header.i=@dama-to.20260707.gappssmtp.com header.a=rsa-sha256 header.s=20260707 header.b=op9jTDIj;
	arc=none smtp.remote-ip=209.85.210.175
X-Received: from mail-pf1-f175.google.com (mail-pf1-f175.google.com [209.85.210.175])
	(using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 370CE606A31A
	for <netdev@vger.kernel.org>; Tue,  1 Dec 2026 15:11:59 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 370CE606A31A
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=dama.to
X-Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=dama.to
X-Received: by mail-pf1-f175.google.com with SMTP id d2e1a72fcca58-8a06cc097c7so7008057b3a.0
        for <netdev@vger.kernel.org>; Tue, 01 Dec 2026 07:11:59 -0800 (PST)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=dama-to.20260707.gappssmtp.com; s=20260707; t=1796137919; x=1796742719; darn=vger.kernel.org;
        h=in-reply-to:content-transfer-encoding:content-disposition
         :content-type:mime-version:references:mail-followup-to:message-id
         :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=pz7Q0vqBEV6SUbDo7DUsEzXYbJtAjtPpMknw0ZMlskE=;
        b=op9jTDIjKp7Sx3FQNB6Gv33i34wMjOeVINEMls9VOj8wW6oQCKS8v5+4ZcDH4Skri8
         EBnVornpQoos3Aq/qyzpt5X4+c7qrDd5omuuMaNjY2W4ZyWGG+YZOa69hLDn6TzNJSLF
         iVHs2eFRd0r6XREvIozI3B4qonKxJ1S6ghRfqKt02Xyk6EJzMHIWWMYFrqKjSEceYZFf
         +9qdGs+O1PQCCwDh9OGIHZEeHtPgsV4mG+tz7j8gUsYP/9vRao+NBJtoTOo3/TjxTgzm
         K8D+4rvWf2MNlALTPk+f1O1coCtreMA5cziyZ5PKnyC8w/DEPgolnpLlDn7Ge/EFmrlJ
         eBJw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1796137919; x=1796742719;
        h=in-reply-to:content-transfer-encoding:content-disposition
         :content-type:mime-version:references:mail-followup-to:message-id
         :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc
         :subject:date:message-id:reply-to:content-type;
        bh=pz7Q0vqBEV6SUbDo7DUsEzXYbJtAjtPpMknw0ZMlskE=;
        b=cZya9lfguRxE0SgQmaqwhJfIeVDk8PYL/un33dZMLROkWGeVF8sIqhGTcb+Okzij4u
         G1grhT4eF5RiPso5fxqIWc1xhN8tEL4YsgyPvRCm9j64Z4TGNw8pdbZP9x1hy0UB7FNg
         kDuriBLWQsS+Elmg6kxKJKwe/wRFG9rcSty2ZjYkUUXWIvMFbmICPKoBpk/GKXK/BzcY
         QsKfp6X356Gz32Mur27gv/RgTvVUAP7Fdar+U0BpgRKYjQSfZdnH2Q2lLG9JR+jviFPF
         BeAZ0axRcthD9ISx2/8KNvyddRIgO9FtOELx7+42bgAGDimxbTWXYioBnLEWlptOddjZ
         t+Ng==
X-Forwarded-Encrypted: i=1; AL+hErEeKLud/27kAzuuYQTPASpOslqffyoveK/mbhAZRO2ygQ7qAkb1HN9tc3pRloCYgGoCU6NKgOY=@vger.kernel.org
X-Gm-Message-State: APuU4Z9aK7pw7anF879UoybbwBF/7p44I3/+gTKYxrLcppR+cHwuxPpy
	C969zyvo/vMnyJ3swxn9SIuo4+APLiz6NC8k0UoRHPvzap0nRTvg01G2VNcVyCya4dI=
X-Gm-Gg: AZFdTZdfkjEWTvqZvrtIYpR5P0cce5PiA+C7hdBPQlxc0ZkxzFz6s1GOYldehJ0BABa
	/N516+j4YCgpWBZvK7OiHRIE3Qw6/FUeLaAasbRPZe04oBWq8J5o4V4oOU5riUg/YOnABErB2bi
	OG//FbXau2slnPfIqHMah0fFLXxmoKsDKRt0GV9vBlxH8DhlU97G1MqNL+XgdFzaLlID3XVhu3r
	eFDvCRwwW7ht89byZR+GrwjcnfKnRva6JioJ2nzyG9LJyquuJNXsjD/R3BmYrv1YorVkl57f/WW
	0W3tiRK07GZCXrbh+4hL2pIaxd7zlQp3AlJw63Ym93OsDU0H6KRvxxnXyrp3r9/bOQz4m9UAxHv
	T2ZB//ngduqy2FMWfmBOWftwEPDOPx3xs157jEX21ysZ3DjlR3e73qa+0+0hcMBK45DyLQPWFOH
	LTs9kWHpfVNnem4cs7rZJiy8d02ui8XGNUtiTfOLNEY3hVj4yY7fSYkSOp4XCI3u10qDk+srd6O
	JHWQvBKcwia0piePOgzmnWNrv86KIoszehfn5LKq5E5t/CYJ4eSsxVIm9tZx2RVNLQcdcjlcasS
	/VleJaucT52IzZEFkv/fSIFTgez6cV/GAhUsge9Z
X-Received: by 2002:a05:6a21:170f:b0:3e2:5624:6938 with SMTP id adf61e73a8af0-4014c34f664mr42419985637.42.1796137919098;
        Tue, 01 Dec 2026 07:11:59 -0800 (PST)
X-Received: from localhost ([2a03:2880:2ff:7::])
        by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-cdebb45c972sm11590113a12.20.2026.12.01.07.11.58
        (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
        Tue, 01 Dec 2026 07:11:58 -0800 (PST)
X-Cc: Michael Chan <michael.chan@broadcom.com>, netdev@vger.kernel.org,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, horms@kernel.org, pavan.chebbi@broadcom.com,
	selvin.xavier@broadcom.com, kalesh-anakkur.purayil@broadcom.com,
	linux-kernel@vger.kernel.org
X-Mail-Followup-To: Joe Damato <joe@dama.to>, Paolo Abeni <pabeni@redhat.com>,
	Michael Chan <michael.chan@broadcom.com>, netdev@vger.kernel.org,
	andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
	kuba@kernel.org, horms@kernel.org, pavan.chebbi@broadcom.com,
	selvin.xavier@broadcom.com, kalesh-anakkur.purayil@broadcom.com,
	linux-kernel@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: <73634d96-8114-46f4-88fb-b4afdf2f17fa@redhat.com>