diff options
author | Rahul Lakkireddy | 2018-05-02 11:47:19 +0200 |
---|---|---|
committer | David S. Miller | 2018-05-14 19:46:05 +0200 |
commit | 1dde532dd0520a948fbc82f4522183104ee4808b (patch) | |
tree | 33c326162fdade738286b7b48520db15649867e9 /drivers/net/ethernet/chelsio/cxgb4/cxgb4.h | |
parent | vmcore: append device dumps to vmcore as elf notes (diff) | |
download | kernel-qcow2-linux-1dde532dd0520a948fbc82f4522183104ee4808b.tar.gz kernel-qcow2-linux-1dde532dd0520a948fbc82f4522183104ee4808b.tar.xz kernel-qcow2-linux-1dde532dd0520a948fbc82f4522183104ee4808b.zip |
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 688f95440af2..01e7aad4ce5b 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 |