From: Joe Damato <joe@dama.to>
To: Paolo Abeni <pabeni@redhat.com>
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
Subject: Re: [PATCH net v6 0/5] bnxt_en: Make RING FREE more robust
Date: Tue, 1 Dec 2026 07:11:57 -0800 [thread overview]
Message-ID: <aw7jvee2Hk9Qpx1w@devvm20253.cco0.facebook.com> (raw)
In-Reply-To: <73634d96-8114-46f4-88fb-b4afdf2f17fa@redhat.com>
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.
next prev parent reply other threads:[~2026-12-01 15:11 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 15:28 Joe Damato
2026-11-20 15:28 ` [PATCH net v6 1/5] bnxt_en: return the RING_FREE status to callers Joe Damato
2026-11-23 18:30 ` netdev-bot+sashiko
2026-11-23 21:18 ` Joe Damato
2026-11-20 15:28 ` [PATCH net v6 2/5] bnxt_en: check HWRM response if completion never arrives Joe Damato
2026-11-23 18:30 ` netdev-bot+sashiko
2026-11-23 22:43 ` Joe Damato
2026-11-26 11:18 ` Paolo Abeni
2026-11-30 14:46 ` Joe Damato
2026-11-20 15:28 ` [PATCH net v6 3/5] bnxt_en: stop DMA before releasing rings the firmware did not free Joe Damato
2026-11-23 18:31 ` netdev-bot+sashiko
2026-11-23 23:03 ` Joe Damato
2026-11-20 15:28 ` [PATCH net v6 4/5] bnxt_en: refuse to open a device with stopped DMA Joe Damato
2026-11-23 18:31 ` netdev-bot+sashiko
2026-11-23 23:10 ` Joe Damato
2026-11-20 15:28 ` [PATCH net v6 5/5] bnxt_en: stop the ULP around the reset task Joe Damato
2026-11-23 18:31 ` netdev-bot+sashiko
2026-11-23 23:16 ` Joe Damato
2026-11-26 0:21 ` willemb
2026-11-26 0:41 ` Joe Damato
2026-11-23 23:27 ` [PATCH net v6 0/5] bnxt_en: Make RING FREE more robust Joe Damato
2026-11-30 18:11 ` Michael Chan
2026-12-01 7:30 ` Paolo Abeni
2026-12-01 15:11 ` Joe Damato [this message]
2026-11-26 11:25 ` Paolo Abeni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aw7jvee2Hk9Qpx1w@devvm20253.cco0.facebook.com \
--to=joe@dama.to \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=kalesh-anakkur.purayil@broadcom.com \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=michael.chan@broadcom.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=pavan.chebbi@broadcom.com \
--cc=selvin.xavier@broadcom.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®