bnxt_en: Allocate backing store memory for FW trace logs
authorShruti Parab <shruti.parab@broadcom.com>
Fri, 15 Nov 2024 15:14:31 +0000 (07:14 -0800)
committerJakub Kicinski <kuba@kernel.org>
Tue, 19 Nov 2024 03:48:54 +0000 (19:48 -0800)
commit24d694aec139e9e0a31c60993db79bd8ad575afe
treed758c7ba0c231e44909956fea3a1fb2fae4e77a1
parent46010d43ab7b18fbc8a3a0bf4d65c775f8d2adbd
bnxt_en: Allocate backing store memory for FW trace logs

Allocate the new FW trace log backing store context memory types
if they are supported by the FW.  FW debug logs are DMA'ed to the host
backing store memory when the on-chip buffers are full.  If host
memory cannot be allocated for these memory types, the driver
will not abort.

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-6-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