All of lore.kernel.org
 help / color / mirror / Atom feed
* [net PATCH 0/3] fbnic: FW coredump fixes
@ 2026-11-24 21:44 Alexander Duyck
  2026-11-24 21:44 ` [net PATCH 1/3] fbnic: Limit TLV_MAX_DATA to the firmware's 4K page Alexander Duyck
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Alexander Duyck @ 2026-11-24 21:44 UTC (permalink / raw)
  To: netdev; +Cc: andrew+netdev, davem, edumazet, horms, kernel-team, kuba, pabeni

Fixes for reading and reporting the FW coredump.

Patch 1 limits TLV_MAX_DATA to the 4K page the firmware uses. On hosts
with 64K pages it was derived from PAGE_SIZE, so coredump reads asked
for more data than the firmware can return and failed.

Patch 2 stops the coredump info response handler from returning the
error the FW reports. The mailbox Rx path logged that as a message it
could not process, with a hex dump. The error still reaches the request
through the completion.

Patch 3 only lets a user request create a coredump. A dump taken for a
reported fault, such as a missed heartbeat, made the FW create one from
its current state and write it to flash, giving a crash dump for a FW
that had not crashed.

Patches 1 and 3 came from missed heartbeats on fleet hosts. A missed
heartbeat under memory pressure was reported as a FW fault and left a
coredump from FW that was still running. On an arm64 system with 64K
pages the coredump read for such a fault then failed. Patch 2 was found
while testing patch 3.

Testing was done in QEMU with the Terminus FW running in its own
emulator. Patch 1 was tested on x86 with the mailbox buffers sized as
on a 64K page host. Without the patch the coredump read failed, with
it the full dump was read back.

For patches 2 and 3 a FW fault was reported through the health
reporter. With patch 1 only, each report created a coredump. With
patches 1 and 3, no coredump was created, but each report logged
"Unable to process message: -2" and a hex dump. With all three applied
nothing was logged and no coredump was created.

---

Alexander Duyck (3):
      fbnic: Limit TLV_MAX_DATA to the firmware's 4K page
      fbnic: Do not report a FW coredump info error as a parse failure
      fbnic: Only create a FW coredump when the user asks for one


 drivers/net/ethernet/meta/fbnic/fbnic_devlink.c | 3 ++-
 drivers/net/ethernet/meta/fbnic/fbnic_fw.c      | 2 +-
 drivers/net/ethernet/meta/fbnic/fbnic_tlv.h     | 4 +++-
 3 files changed, 6 insertions(+), 3 deletions(-)

--


^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2026-12-02 12:20 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-24 21:44 [net PATCH 0/3] fbnic: FW coredump fixes Alexander Duyck
2026-11-24 21:44 ` [net PATCH 1/3] fbnic: Limit TLV_MAX_DATA to the firmware's 4K page Alexander Duyck
2026-12-01 11:03   ` Daniel Machon
2026-11-24 21:44 ` [net PATCH 2/3] fbnic: Do not report a FW coredump info error as a parse failure Alexander Duyck
2026-11-27  9:44   ` netdev-bot+sashiko
2026-11-27 17:34     ` Alexander Duyck
2026-12-01 11:04       ` Daniel Machon
2026-12-02 12:08       ` Paolo Abeni
2026-11-24 21:44 ` [net PATCH 3/3] fbnic: Only create a FW coredump when the user asks for one Alexander Duyck
2026-12-01 11:03   ` Daniel Machon
2026-12-02 12:20 ` [net PATCH 0/3] fbnic: FW coredump fixes patchwork-bot+netdevbpf

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.