bnxt_en: Manage the FW trace context memory
authorShruti Parab <shruti.parab@broadcom.com>
Fri, 15 Nov 2024 15:14:32 +0000 (07:14 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 03:48:54 +0000 (19:48 -0800)
commit84fcd9449fd7882ddfb05ba64d75f9be2d29b2e9
tree120a3c85d3c69c919fc918a77d001b9843d2f8d6
parent24d694aec139e9e0a31c60993db79bd8ad575afe
bnxt_en: Manage the FW trace context memory

The FW trace memory pages will be added to the ethtool -w coredump
in later patches.  In addition to the raw data, the driver has to
add a header to provide the head and tail information on each FW
trace log segment when creating the coredump.  The FW sends an async
message to the driver after DMAing a chunk of logs to the context
memory to indicate the last offset containing the tail of the logs.
The driver needs to keep track of that.

Reviewed-by: Hongguang Gao <hongguang.gao@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/20241115151438.550106-7-michael.chan@broadcom.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h