mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Joe Damato <joe@dama.to>
To: Michael Chan <michael.chan@broadcom.com>
Cc: netdev@vger.kernel.org, andrew+netdev@lunn.ch,
	davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
	pabeni@redhat.com, horms@kernel.org, pavan.chebbi@broadcom.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH net v5 0/4] bnxt_en: Make RING FREE more robust
Date: Tue, 10 Nov 2026 09:39:25 -0800	[thread overview]
Message-ID: <avNWzavrxJSasfp5@devvm20253.cco0.facebook.com> (raw)
In-Reply-To: <CACKFLinPK+wR=TMA3zNJDKQR_=HfMFUHPxKS+yhvv9SegZw7Ow@mail.gmail.com>

On Mon, Nov 09, 2026 at 04:13:57PM -0800, Michael Chan wrote:
> On Mon, Nov 9, 2026 at 12:12 PM Joe Damato <joe@dama.to> wrote:
> 
> >   - Notifying bnxt_re when DMA is stopped.
> 
> I think this is probably the one item that should be added to the
> patchset.  When DMA is disabled, RoCE will not work at all so adding
> this will make the series more complete.  It may be as simple as
> calling bnxt_ulp_stop(), but I haven't looked into it in detail.

Hm. bnxt_stop_dma runs with rtnl and the netdev instance lock held and
bnxt_ulp_stop -> bnxt_re_suspend takes both. So, I don't think calling
bnxt_ulp_stop is going to work.

Maybe I need to make a new patch where bnxt_stop_dma queues a work item that
calls bnxt_ulp_stop without locks being held? Not sure.

Also: would you be OK with bnxt_re treating BNXT_STATE_DMA_STOPPED as
detached? I'm probably getting this wrong but I think with DMA off
bnxt_re_suspend only takes the detach path when FW_FATAL_COND is set.

LMK if I am missing something here. Just trying to limit the number of
revisions it takes to get something reasonable :)

> We have tested your patches by purposely unmapping the TX buffer early
> to simulate the IOMMU fault.  When the number of rings is small, the
> fall back logic to check the HWRM_RING_FREE response during message
> timeout works most of the time.  With a large number of rings, some of
> the HWRM_RING_FREE messages do not come back at all and DMA will then
> be disabled.  The FW team is still looking into this to understand it
> better.  Thanks.

Thanks for testing.

  reply	other threads:[~2026-11-10 17:39 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-06 19:14 Joe Damato
2026-11-06 19:14 ` [PATCH net v5 1/4] bnxt_en: return the RING_FREE status to callers Joe Damato
2026-11-07 19:58   ` netdev-bot+sashiko
2026-11-09 17:45     ` Joe Damato
2026-11-09 18:26       ` Michael Chan
2026-11-06 19:14 ` [PATCH net v5 2/4] bnxt_en: check HWRM response if completion never arrives Joe Damato
2026-11-07 19:58   ` netdev-bot+sashiko
2026-11-09 18:05     ` Joe Damato
2026-11-06 19:14 ` [PATCH net v5 3/4] bnxt_en: stop DMA before releasing rings the firmware did not free Joe Damato
2026-11-07 19:58   ` netdev-bot+sashiko
2026-11-09 19:52     ` Joe Damato
2026-11-06 19:14 ` [PATCH net v5 4/4] bnxt_en: refuse to open a device with stopped DMA Joe Damato
2026-11-07 19:58   ` netdev-bot+sashiko
2026-11-09 20:01     ` Joe Damato
2026-11-09 20:12 ` [PATCH net v5 0/4] bnxt_en: Make RING FREE more robust Joe Damato
2026-11-10  0:13   ` Michael Chan
2026-11-10 17:39     ` Joe Damato [this message]
2026-11-10 18:14       ` Michael Chan

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=avNWzavrxJSasfp5@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=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 \
    /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®