diff options
author | Rahul Lakkireddy <rahul.lakkireddy@chelsio.com> | 2018-05-02 15:17:19 +0530 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-14 13:46:05 -0400 |
commit | 1dde532dd0520a948fbc82f4522183104ee4808b (patch) | |
tree | 33c326162fdade738286b7b48520db15649867e9 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | 7efe48df8a3df6d089d2e9a1d429c82cc5dcf2de (diff) | |
download | op-kernel-dev-1dde532dd0520a948fbc82f4522183104ee4808b.zip op-kernel-dev-1dde532dd0520a948fbc82f4522183104ee4808b.tar.gz |
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>
Diffstat (limited to 'drivers/net/ethernet/chelsio/cxgb4/cxgb4.h')
-rw-r--r-- | drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h index 688f954..01e7aad4 100644 --- a/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h +++ b/drivers/net/ethernet/chelsio/cxgb4/cxgb4.h @@ -50,6 +50,7 @@ #include <linux/net_tstamp.h> #include <linux/ptp_clock_kernel.h> #include <linux/ptp_classify.h> +#include <linux/crash_dump.h> #include <asm/io.h> #include "t4_chip_type.h" #include "cxgb4_uld.h" @@ -964,6 +965,9 @@ struct adapter { struct hma_data hma; struct srq_data *srq; + + /* Dump buffer for collecting logs in kdump kernel */ + struct vmcoredd_data vmcoredd; }; /* Support for "sched-class" command to allow a TX Scheduling Class to be |