cxgb4: collect hardware dump in second kernel
authorRahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Wed, 2 May 2018 09:47:19 +0000 (15:17 +0530)
committerDavid S. Miller <davem@davemloft.net>
Mon, 14 May 2018 17:46:05 +0000 (13:46 -0400)
commit1dde532dd0520a948fbc82f4522183104ee4808b
tree33c326162fdade738286b7b48520db15649867e9
parent7efe48df8a3df6d089d2e9a1d429c82cc5dcf2de
cxgb4: collect hardware dump in second kernel

Register callback to collect hardware/firmware dumps in second kernel
before hardware/firmware is initialized. The dumps for each device
will be available as elf notes in /proc/vmcore in second kernel.

Signed-off-by: Rahul Lakkireddy <rahul.lakkireddy@chelsio.com>
Signed-off-by: Ganesh Goudar <ganeshgr@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/chelsio/cxgb4/cxgb4.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.c
drivers/net/ethernet/chelsio/cxgb4/cxgb4_cudbg.h
drivers/net/ethernet/chelsio/cxgb4/cxgb4_main.c