]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: implement dump callback for fw health reporter
authorEdwin Peer <edwin.peer@broadcom.com>
Fri, 29 Oct 2021 07:47:52 +0000 (03:47 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Oct 2021 11:13:05 +0000 (12:13 +0100)
commit3f1c8424f82a0e0cac75ddd05667df87d23f123c
treea8f91f5a74a41bd4f4bf61453f9db540215e274b
parentbebf89d5f2b32dc380c6a8e992f8de3f1e739c7b
bnxt_en: implement dump callback for fw health reporter

Populate the dump with firmware 'live' coredump data. This includes
the information stored in NVRAM by the firmware exception handler
prior to recovery. Thus, the live dump includes the desired crash
context.

Firmware does not support HWRM calls after RESET_NOTIFY, so there is
no supported way to capture a coredump during the auto dump phase.
Detect this and abort when called from devlink_health_report().

Signed-off-by: Edwin Peer <edwin.peer@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt_devlink.c