From: Paolo Abeni <pabeni@redhat.com>
To: Joe Damato <joe@dama.to>, netdev@vger.kernel.org
Cc: andrew+netdev@lunn.ch, davem@davemloft.net, edumazet@google.com,
kuba@kernel.org, horms@kernel.org, michael.chan@broadcom.com,
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: Thu, 26 Nov 2026 12:25:33 +0100 [thread overview]
Message-ID: <4a434d3a-a8d4-48b5-a630-7dd8a73bf463@redhat.com> (raw)
In-Reply-To: <20261120152830.699712-1-joe@dama.to>
On 11/20/26 16:28, Joe Damato wrote:
> Greetings:
>
> On two production systems, I saw the following dmesg pattern:
>
> NETDEV WATCHDOG: transmit queue 0 timed out 6073 ms
> Resp cmpl intr err msg: 0x51 x20
> hwrm_ring_free type 1 failed x12
> hwrm_ring_free type 2 failed x8
> AMD-Vi: IO_PAGE_FAULT x3
>
> This suggests that, for some currently unknown reason, TX completions stall
> and the netdev watchdog fires. The driver asks FW to free the rings, this
> times out, but the driver ignores the possible failure and frees ring memory.
> Since the FW didn't respond to the ring free command, it is possible that the
> FW is still DMAing to the memory which was freed.
>
> To address this, this series makes the driver stop DMA before freeing ring
> memory when the firmware did not answer RING_FREE.
>
> Since the RFCv4, I found a third system that hit this repeatedly:
>
> NETDEV WATCHDOG: CPU: 35: transmit queue 0 timed out 5459 ms
> hwrm_ring_free type 1 failed. rc:fffffff0 err:0 x64
> hwrm_ring_free type 2 failed. rc:fffffff0 err:0 x32
> hwrm_ring_free type 0 failed. rc:fffffffb err:1 x64
> hwrm_ring_alloc type 1 failed. rc:ffffffe4 err:4
> hwrm_ring_free type 1 failed. rc:fffffff0 err:0 x44
> Abandoning msg {0x51 0x3e35} len: 0 due to firmware status: 0x408100
> nic open fail (rc: fffffffb)
> DMAR: [DMA Write NO_PASID] Request device [47:00.0] fault addr
> 0xffffa07ef000 [fault reason 0x05] PTE Write access is not set
>
> This case differs from the first two in a few ways, but this series would have
> still helped:
>
> - The ring frees fail on the close path and again on the error path of
> the reopen (bnxt_init_chip()), and the device then writes to memory the
> driver has already unmapped. The series stops DMA on both paths.
>
> - The interface came back up later, the watchdog fired again, and the
> cycle started over. The host logged 79 DMAR write faults in about 20
> hours. Patch 4 breaks this loop by refusing to reopen after DMA has
> been stopped.
>
> - The firmware answers each RING_FREE about 5 seconds late, after the
> driver has given up, and finally reports an error in its health
> register. Patch 2 does not treat these late responses as success because
> their sequence ids do not match.
>
> In this most recent case, I suspect the hardware is faulty, but the driver
> shouldn't hand memory back to the system while the device could still write to
> it.
>
> In all of the above cases, the IOMMU caught the error. If the system had no
> IOMMU or the IOMMU was in passthrough mode, data corruption or crash would
> have occurred.
>
> In the future, this could possibly be extended to make recovery automatic.
>
> I wonder if Sashiko reads cover letters and then avoids flagging stuff, let's
> find out. (Unrelated: I wonder if anyone reads cover letters).
Some poor guy still does that, especially when the cover letter is
shorter than a novel :-P
FTR the upstream sashiko was not propagating the cover-letter context
to the individual patches review. I'm unsure if the nipa variant has
fixed that.
/P
prev parent reply other threads:[~2026-11-26 11:25 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 15:28 [PATCH net v6 0/5] bnxt_en: Make RING FREE more robust 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-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-26 11:25 ` Paolo Abeni [this message]
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=4a434d3a-a8d4-48b5-a630-7dd8a73bf463@redhat.com \
--to=pabeni@redhat.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--cc=joe@dama.to \
--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=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