bnxt_en: Flush FW trace before copying to the coredump
authorShruti Parab <shruti.parab@broadcom.com>
Thu, 10 Jul 2025 21:39:37 +0000 (14:39 -0700)
committerJakub Kicinski <kuba@kernel.org>
Fri, 11 Jul 2025 14:28:34 +0000 (07:28 -0700)
commit100c08c89d173b7fdf953e7d9f9ca8f69f80d1c5
treea25f43639d7c4d29c532c1da42a565e021682fad
parentb74c2a2e9cc471e847abd87e50a2354c07e02040
bnxt_en: Flush FW trace before copying to the coredump

bnxt_fill_drv_seg_record() calls bnxt_dbg_hwrm_log_buffer_flush()
to flush the FW trace buffer.  This needs to be done before we
call bnxt_copy_ctx_mem() to copy the trace data.

Without this fix, the coredump may not contain all the FW
traces.

Fixes: 3c2179e66355 ("bnxt_en: Add FW trace coredump segments to the coredump")
Reviewed-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Shruti Parab <shruti.parab@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Link: https://patch.msgid.link/20250710213938.1959625-3-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt_coredump.c