14fa9c49fSThomas Gleixner // SPDX-License-Identifier: GPL-2.0-only
2ad75b7d3SRahul Lakkireddy /*
3ad75b7d3SRahul Lakkireddy * Copyright (C) 2017 Chelsio Communications. All rights reserved.
4ad75b7d3SRahul Lakkireddy */
5ad75b7d3SRahul Lakkireddy
6b33af022SRahul Lakkireddy #include "t4_regs.h"
7ad75b7d3SRahul Lakkireddy #include "cxgb4.h"
8ad75b7d3SRahul Lakkireddy #include "cxgb4_cudbg.h"
991c1953dSRahul Lakkireddy #include "cudbg_zlib.h"
10ad75b7d3SRahul Lakkireddy
11b33af022SRahul Lakkireddy static const struct cxgb4_collect_entity cxgb4_collect_mem_dump[] = {
12b33af022SRahul Lakkireddy { CUDBG_EDC0, cudbg_collect_edc0_meminfo },
13b33af022SRahul Lakkireddy { CUDBG_EDC1, cudbg_collect_edc1_meminfo },
14a1c69520SRahul Lakkireddy { CUDBG_MC0, cudbg_collect_mc0_meminfo },
15a1c69520SRahul Lakkireddy { CUDBG_MC1, cudbg_collect_mc1_meminfo },
164db0401fSRahul Lakkireddy { CUDBG_HMA, cudbg_collect_hma_meminfo },
17b33af022SRahul Lakkireddy };
18b33af022SRahul Lakkireddy
19a7975a2fSRahul Lakkireddy static const struct cxgb4_collect_entity cxgb4_collect_hw_dump[] = {
20844d1b6fSRahul Lakkireddy { CUDBG_MBOX_LOG, cudbg_collect_mbox_log },
2168ddc82aSRahul Lakkireddy { CUDBG_QDESC, cudbg_collect_qdesc },
22844d1b6fSRahul Lakkireddy { CUDBG_DEV_LOG, cudbg_collect_fw_devlog },
23a7975a2fSRahul Lakkireddy { CUDBG_REG_DUMP, cudbg_collect_reg_dump },
2427887bc7SRahul Lakkireddy { CUDBG_CIM_LA, cudbg_collect_cim_la },
2527887bc7SRahul Lakkireddy { CUDBG_CIM_MA_LA, cudbg_collect_cim_ma_la },
263044d0fbSRahul Lakkireddy { CUDBG_CIM_QCFG, cudbg_collect_cim_qcfg },
277c075ce2SRahul Lakkireddy { CUDBG_CIM_IBQ_TP0, cudbg_collect_cim_ibq_tp0 },
287c075ce2SRahul Lakkireddy { CUDBG_CIM_IBQ_TP1, cudbg_collect_cim_ibq_tp1 },
297c075ce2SRahul Lakkireddy { CUDBG_CIM_IBQ_ULP, cudbg_collect_cim_ibq_ulp },
307c075ce2SRahul Lakkireddy { CUDBG_CIM_IBQ_SGE0, cudbg_collect_cim_ibq_sge0 },
317c075ce2SRahul Lakkireddy { CUDBG_CIM_IBQ_SGE1, cudbg_collect_cim_ibq_sge1 },
327c075ce2SRahul Lakkireddy { CUDBG_CIM_IBQ_NCSI, cudbg_collect_cim_ibq_ncsi },
337c075ce2SRahul Lakkireddy { CUDBG_CIM_OBQ_ULP0, cudbg_collect_cim_obq_ulp0 },
347c075ce2SRahul Lakkireddy { CUDBG_CIM_OBQ_ULP1, cudbg_collect_cim_obq_ulp1 },
357c075ce2SRahul Lakkireddy { CUDBG_CIM_OBQ_ULP2, cudbg_collect_cim_obq_ulp2 },
367c075ce2SRahul Lakkireddy { CUDBG_CIM_OBQ_ULP3, cudbg_collect_cim_obq_ulp3 },
377c075ce2SRahul Lakkireddy { CUDBG_CIM_OBQ_SGE, cudbg_collect_cim_obq_sge },
387c075ce2SRahul Lakkireddy { CUDBG_CIM_OBQ_NCSI, cudbg_collect_cim_obq_ncsi },
3928b44556SRahul Lakkireddy { CUDBG_RSS, cudbg_collect_rss },
4028b44556SRahul Lakkireddy { CUDBG_RSS_VF_CONF, cudbg_collect_rss_vf_config },
416f92a654SRahul Lakkireddy { CUDBG_PATH_MTU, cudbg_collect_path_mtu },
426f92a654SRahul Lakkireddy { CUDBG_PM_STATS, cudbg_collect_pm_stats },
4308c4901bSRahul Lakkireddy { CUDBG_HW_SCHED, cudbg_collect_hw_sched },
444359cf33SRahul Lakkireddy { CUDBG_TP_INDIRECT, cudbg_collect_tp_indirect },
45270d39bfSRahul Lakkireddy { CUDBG_SGE_INDIRECT, cudbg_collect_sge_indirect },
4627887bc7SRahul Lakkireddy { CUDBG_ULPRX_LA, cudbg_collect_ulprx_la },
4727887bc7SRahul Lakkireddy { CUDBG_TP_LA, cudbg_collect_tp_la },
48123e25c4SRahul Lakkireddy { CUDBG_MEMINFO, cudbg_collect_meminfo },
4927887bc7SRahul Lakkireddy { CUDBG_CIM_PIF_LA, cudbg_collect_cim_pif_la },
506f92a654SRahul Lakkireddy { CUDBG_CLK, cudbg_collect_clk_info },
517c075ce2SRahul Lakkireddy { CUDBG_CIM_OBQ_RXQ0, cudbg_collect_obq_sge_rx_q0 },
527c075ce2SRahul Lakkireddy { CUDBG_CIM_OBQ_RXQ1, cudbg_collect_obq_sge_rx_q1 },
53270d39bfSRahul Lakkireddy { CUDBG_PCIE_INDIRECT, cudbg_collect_pcie_indirect },
54270d39bfSRahul Lakkireddy { CUDBG_PM_INDIRECT, cudbg_collect_pm_indirect },
559030e498SRahul Lakkireddy { CUDBG_TID_INFO, cudbg_collect_tid },
566078ab19SRahul Lakkireddy { CUDBG_PCIE_CONFIG, cudbg_collect_pcie_config },
579e5c598cSRahul Lakkireddy { CUDBG_DUMP_CONTEXT, cudbg_collect_dump_context },
58b289593eSRahul Lakkireddy { CUDBG_MPS_TCAM, cudbg_collect_mps_tcam },
596f92a654SRahul Lakkireddy { CUDBG_VPD_DATA, cudbg_collect_vpd_data },
6003e98b91SRahul Lakkireddy { CUDBG_LE_TCAM, cudbg_collect_le_tcam },
616f92a654SRahul Lakkireddy { CUDBG_CCTRL, cudbg_collect_cctrl },
62270d39bfSRahul Lakkireddy { CUDBG_MA_INDIRECT, cudbg_collect_ma_indirect },
6327887bc7SRahul Lakkireddy { CUDBG_ULPTX_LA, cudbg_collect_ulptx_la },
64270d39bfSRahul Lakkireddy { CUDBG_UP_CIM_INDIRECT, cudbg_collect_up_cim_indirect },
65db8cd7ceSRahul Lakkireddy { CUDBG_PBT_TABLE, cudbg_collect_pbt_tables },
66270d39bfSRahul Lakkireddy { CUDBG_HMA_INDIRECT, cudbg_collect_hma_indirect },
67a7975a2fSRahul Lakkireddy };
68a7975a2fSRahul Lakkireddy
6917b332f4SVishal Kulkarni static const struct cxgb4_collect_entity cxgb4_collect_flash_dump[] = {
7017b332f4SVishal Kulkarni { CUDBG_FLASH, cudbg_collect_flash },
7117b332f4SVishal Kulkarni };
7217b332f4SVishal Kulkarni
cxgb4_get_dump_length(struct adapter * adap,u32 flag)73ad75b7d3SRahul Lakkireddy u32 cxgb4_get_dump_length(struct adapter *adap, u32 flag)
74ad75b7d3SRahul Lakkireddy {
75a7975a2fSRahul Lakkireddy u32 i, entity;
76a7975a2fSRahul Lakkireddy u32 len = 0;
7791c1953dSRahul Lakkireddy u32 wsize;
78a7975a2fSRahul Lakkireddy
79a7975a2fSRahul Lakkireddy if (flag & CXGB4_ETH_DUMP_HW) {
80a7975a2fSRahul Lakkireddy for (i = 0; i < ARRAY_SIZE(cxgb4_collect_hw_dump); i++) {
81a7975a2fSRahul Lakkireddy entity = cxgb4_collect_hw_dump[i].entity;
82*f35d2117SRahul Lakkireddy len += cudbg_get_entity_length(adap, entity);
83a7975a2fSRahul Lakkireddy }
84a7975a2fSRahul Lakkireddy }
85a7975a2fSRahul Lakkireddy
86b33af022SRahul Lakkireddy if (flag & CXGB4_ETH_DUMP_MEM) {
87b33af022SRahul Lakkireddy for (i = 0; i < ARRAY_SIZE(cxgb4_collect_mem_dump); i++) {
88b33af022SRahul Lakkireddy entity = cxgb4_collect_mem_dump[i].entity;
89*f35d2117SRahul Lakkireddy len += cudbg_get_entity_length(adap, entity);
90b33af022SRahul Lakkireddy }
91b33af022SRahul Lakkireddy }
92b33af022SRahul Lakkireddy
9317b332f4SVishal Kulkarni if (flag & CXGB4_ETH_DUMP_FLASH)
9417b332f4SVishal Kulkarni len += adap->params.sf_size;
9517b332f4SVishal Kulkarni
9691c1953dSRahul Lakkireddy /* If compression is enabled, a smaller destination buffer is enough */
9791c1953dSRahul Lakkireddy wsize = cudbg_get_workspace_size();
9891c1953dSRahul Lakkireddy if (wsize && len > CUDBG_DUMP_BUFF_SIZE)
9991c1953dSRahul Lakkireddy len = CUDBG_DUMP_BUFF_SIZE;
10091c1953dSRahul Lakkireddy
101a7975a2fSRahul Lakkireddy return len;
102a7975a2fSRahul Lakkireddy }
103a7975a2fSRahul Lakkireddy
cxgb4_cudbg_collect_entity(struct cudbg_init * pdbg_init,struct cudbg_buffer * dbg_buff,const struct cxgb4_collect_entity * e_arr,u32 arr_size,void * buf,u32 * tot_size)104a7975a2fSRahul Lakkireddy static void cxgb4_cudbg_collect_entity(struct cudbg_init *pdbg_init,
105a7975a2fSRahul Lakkireddy struct cudbg_buffer *dbg_buff,
106a7975a2fSRahul Lakkireddy const struct cxgb4_collect_entity *e_arr,
107a7975a2fSRahul Lakkireddy u32 arr_size, void *buf, u32 *tot_size)
108a7975a2fSRahul Lakkireddy {
109a7975a2fSRahul Lakkireddy struct cudbg_error cudbg_err = { 0 };
110a7975a2fSRahul Lakkireddy struct cudbg_entity_hdr *entity_hdr;
11156cf2635SRahul Lakkireddy u32 i, total_size = 0;
112a7975a2fSRahul Lakkireddy int ret;
113a7975a2fSRahul Lakkireddy
114a7975a2fSRahul Lakkireddy for (i = 0; i < arr_size; i++) {
115a7975a2fSRahul Lakkireddy const struct cxgb4_collect_entity *e = &e_arr[i];
116a7975a2fSRahul Lakkireddy
117a7975a2fSRahul Lakkireddy entity_hdr = cudbg_get_entity_hdr(buf, e->entity);
118a7975a2fSRahul Lakkireddy entity_hdr->entity_type = e->entity;
119a7975a2fSRahul Lakkireddy entity_hdr->start_offset = dbg_buff->offset;
120a7975a2fSRahul Lakkireddy memset(&cudbg_err, 0, sizeof(struct cudbg_error));
121a7975a2fSRahul Lakkireddy ret = e->collect_cb(pdbg_init, dbg_buff, &cudbg_err);
122a7975a2fSRahul Lakkireddy if (ret) {
123a7975a2fSRahul Lakkireddy entity_hdr->size = 0;
124a7975a2fSRahul Lakkireddy dbg_buff->offset = entity_hdr->start_offset;
125a7975a2fSRahul Lakkireddy } else {
126a7975a2fSRahul Lakkireddy cudbg_align_debug_buffer(dbg_buff, entity_hdr);
127a7975a2fSRahul Lakkireddy }
128a7975a2fSRahul Lakkireddy
129a7975a2fSRahul Lakkireddy /* Log error and continue with next entity */
130a7975a2fSRahul Lakkireddy if (cudbg_err.sys_err)
131a7975a2fSRahul Lakkireddy ret = CUDBG_SYSTEM_ERROR;
132a7975a2fSRahul Lakkireddy
133a7975a2fSRahul Lakkireddy entity_hdr->hdr_flags = ret;
134a7975a2fSRahul Lakkireddy entity_hdr->sys_err = cudbg_err.sys_err;
135a7975a2fSRahul Lakkireddy entity_hdr->sys_warn = cudbg_err.sys_warn;
136a7975a2fSRahul Lakkireddy total_size += entity_hdr->size;
137a7975a2fSRahul Lakkireddy }
138a7975a2fSRahul Lakkireddy
139a7975a2fSRahul Lakkireddy *tot_size += total_size;
140ad75b7d3SRahul Lakkireddy }
141ad75b7d3SRahul Lakkireddy
cudbg_alloc_compress_buff(struct cudbg_init * pdbg_init)14291c1953dSRahul Lakkireddy static int cudbg_alloc_compress_buff(struct cudbg_init *pdbg_init)
14391c1953dSRahul Lakkireddy {
14491c1953dSRahul Lakkireddy u32 workspace_size;
14591c1953dSRahul Lakkireddy
14691c1953dSRahul Lakkireddy workspace_size = cudbg_get_workspace_size();
14791c1953dSRahul Lakkireddy pdbg_init->compress_buff = vzalloc(CUDBG_COMPRESS_BUFF_SIZE +
14891c1953dSRahul Lakkireddy workspace_size);
14991c1953dSRahul Lakkireddy if (!pdbg_init->compress_buff)
15091c1953dSRahul Lakkireddy return -ENOMEM;
15191c1953dSRahul Lakkireddy
15291c1953dSRahul Lakkireddy pdbg_init->compress_buff_size = CUDBG_COMPRESS_BUFF_SIZE;
15391c1953dSRahul Lakkireddy pdbg_init->workspace = (u8 *)pdbg_init->compress_buff +
15491c1953dSRahul Lakkireddy CUDBG_COMPRESS_BUFF_SIZE - workspace_size;
15591c1953dSRahul Lakkireddy return 0;
15691c1953dSRahul Lakkireddy }
15791c1953dSRahul Lakkireddy
cudbg_free_compress_buff(struct cudbg_init * pdbg_init)15891c1953dSRahul Lakkireddy static void cudbg_free_compress_buff(struct cudbg_init *pdbg_init)
15991c1953dSRahul Lakkireddy {
16091c1953dSRahul Lakkireddy vfree(pdbg_init->compress_buff);
16191c1953dSRahul Lakkireddy }
16291c1953dSRahul Lakkireddy
cxgb4_cudbg_collect(struct adapter * adap,void * buf,u32 * buf_size,u32 flag)163ad75b7d3SRahul Lakkireddy int cxgb4_cudbg_collect(struct adapter *adap, void *buf, u32 *buf_size,
164ad75b7d3SRahul Lakkireddy u32 flag)
165ad75b7d3SRahul Lakkireddy {
166ad75b7d3SRahul Lakkireddy struct cudbg_buffer dbg_buff = { 0 };
167ad75b7d3SRahul Lakkireddy u32 size, min_size, total_size = 0;
168325694e6SRahul Lakkireddy struct cudbg_init cudbg_init;
169ad75b7d3SRahul Lakkireddy struct cudbg_hdr *cudbg_hdr;
17091c1953dSRahul Lakkireddy int rc;
171ad75b7d3SRahul Lakkireddy
172ad75b7d3SRahul Lakkireddy size = *buf_size;
173ad75b7d3SRahul Lakkireddy
174325694e6SRahul Lakkireddy memset(&cudbg_init, 0, sizeof(struct cudbg_init));
175ad75b7d3SRahul Lakkireddy cudbg_init.adap = adap;
176ad75b7d3SRahul Lakkireddy cudbg_init.outbuf = buf;
177ad75b7d3SRahul Lakkireddy cudbg_init.outbuf_size = size;
178ad75b7d3SRahul Lakkireddy
179ad75b7d3SRahul Lakkireddy dbg_buff.data = buf;
180ad75b7d3SRahul Lakkireddy dbg_buff.size = size;
181ad75b7d3SRahul Lakkireddy dbg_buff.offset = 0;
182ad75b7d3SRahul Lakkireddy
183ad75b7d3SRahul Lakkireddy cudbg_hdr = (struct cudbg_hdr *)buf;
184ad75b7d3SRahul Lakkireddy cudbg_hdr->signature = CUDBG_SIGNATURE;
185ad75b7d3SRahul Lakkireddy cudbg_hdr->hdr_len = sizeof(struct cudbg_hdr);
186ad75b7d3SRahul Lakkireddy cudbg_hdr->major_ver = CUDBG_MAJOR_VERSION;
187ad75b7d3SRahul Lakkireddy cudbg_hdr->minor_ver = CUDBG_MINOR_VERSION;
188ad75b7d3SRahul Lakkireddy cudbg_hdr->max_entities = CUDBG_MAX_ENTITY;
189ad75b7d3SRahul Lakkireddy cudbg_hdr->chip_ver = adap->params.chip;
190ad75b7d3SRahul Lakkireddy cudbg_hdr->dump_type = CUDBG_DUMP_TYPE_MINI;
191ad75b7d3SRahul Lakkireddy
192ad75b7d3SRahul Lakkireddy min_size = sizeof(struct cudbg_hdr) +
193ad75b7d3SRahul Lakkireddy sizeof(struct cudbg_entity_hdr) *
194ad75b7d3SRahul Lakkireddy cudbg_hdr->max_entities;
195ad75b7d3SRahul Lakkireddy if (size < min_size)
196ad75b7d3SRahul Lakkireddy return -ENOMEM;
197ad75b7d3SRahul Lakkireddy
19891c1953dSRahul Lakkireddy rc = cudbg_get_workspace_size();
19991c1953dSRahul Lakkireddy if (rc) {
20091c1953dSRahul Lakkireddy /* Zlib available. So, use zlib deflate */
20191c1953dSRahul Lakkireddy cudbg_init.compress_type = CUDBG_COMPRESSION_ZLIB;
20291c1953dSRahul Lakkireddy rc = cudbg_alloc_compress_buff(&cudbg_init);
20391c1953dSRahul Lakkireddy if (rc) {
20491c1953dSRahul Lakkireddy /* Ignore error and continue without compression. */
20591c1953dSRahul Lakkireddy dev_warn(adap->pdev_dev,
20691c1953dSRahul Lakkireddy "Fail allocating compression buffer ret: %d. Continuing without compression.\n",
20791c1953dSRahul Lakkireddy rc);
20891c1953dSRahul Lakkireddy cudbg_init.compress_type = CUDBG_COMPRESSION_NONE;
20991c1953dSRahul Lakkireddy rc = 0;
21091c1953dSRahul Lakkireddy }
21191c1953dSRahul Lakkireddy } else {
21291c1953dSRahul Lakkireddy cudbg_init.compress_type = CUDBG_COMPRESSION_NONE;
21391c1953dSRahul Lakkireddy }
21491c1953dSRahul Lakkireddy
21591c1953dSRahul Lakkireddy cudbg_hdr->compress_type = cudbg_init.compress_type;
216ad75b7d3SRahul Lakkireddy dbg_buff.offset += min_size;
217ad75b7d3SRahul Lakkireddy total_size = dbg_buff.offset;
218ad75b7d3SRahul Lakkireddy
219a7975a2fSRahul Lakkireddy if (flag & CXGB4_ETH_DUMP_HW)
220a7975a2fSRahul Lakkireddy cxgb4_cudbg_collect_entity(&cudbg_init, &dbg_buff,
221a7975a2fSRahul Lakkireddy cxgb4_collect_hw_dump,
222a7975a2fSRahul Lakkireddy ARRAY_SIZE(cxgb4_collect_hw_dump),
223a7975a2fSRahul Lakkireddy buf,
224a7975a2fSRahul Lakkireddy &total_size);
225a7975a2fSRahul Lakkireddy
226b33af022SRahul Lakkireddy if (flag & CXGB4_ETH_DUMP_MEM)
227b33af022SRahul Lakkireddy cxgb4_cudbg_collect_entity(&cudbg_init, &dbg_buff,
228b33af022SRahul Lakkireddy cxgb4_collect_mem_dump,
229b33af022SRahul Lakkireddy ARRAY_SIZE(cxgb4_collect_mem_dump),
230b33af022SRahul Lakkireddy buf,
231b33af022SRahul Lakkireddy &total_size);
232b33af022SRahul Lakkireddy
23317b332f4SVishal Kulkarni if (flag & CXGB4_ETH_DUMP_FLASH)
23417b332f4SVishal Kulkarni cxgb4_cudbg_collect_entity(&cudbg_init, &dbg_buff,
23517b332f4SVishal Kulkarni cxgb4_collect_flash_dump,
23617b332f4SVishal Kulkarni ARRAY_SIZE(cxgb4_collect_flash_dump),
23717b332f4SVishal Kulkarni buf,
23817b332f4SVishal Kulkarni &total_size);
23917b332f4SVishal Kulkarni
24091c1953dSRahul Lakkireddy cudbg_free_compress_buff(&cudbg_init);
241ad75b7d3SRahul Lakkireddy cudbg_hdr->data_len = total_size;
24291c1953dSRahul Lakkireddy if (cudbg_init.compress_type != CUDBG_COMPRESSION_NONE)
24391c1953dSRahul Lakkireddy *buf_size = size;
24491c1953dSRahul Lakkireddy else
245ad75b7d3SRahul Lakkireddy *buf_size = total_size;
246ad75b7d3SRahul Lakkireddy return 0;
247ad75b7d3SRahul Lakkireddy }
248ad75b7d3SRahul Lakkireddy
cxgb4_init_ethtool_dump(struct adapter * adapter)249ad75b7d3SRahul Lakkireddy void cxgb4_init_ethtool_dump(struct adapter *adapter)
250ad75b7d3SRahul Lakkireddy {
251ad75b7d3SRahul Lakkireddy adapter->eth_dump.flag = CXGB4_ETH_DUMP_NONE;
252ad75b7d3SRahul Lakkireddy adapter->eth_dump.version = adapter->params.fw_vers;
253ad75b7d3SRahul Lakkireddy adapter->eth_dump.len = 0;
254ad75b7d3SRahul Lakkireddy }
2551dde532dSRahul Lakkireddy
cxgb4_cudbg_vmcoredd_collect(struct vmcoredd_data * data,void * buf)2561dde532dSRahul Lakkireddy static int cxgb4_cudbg_vmcoredd_collect(struct vmcoredd_data *data, void *buf)
2571dde532dSRahul Lakkireddy {
2581dde532dSRahul Lakkireddy struct adapter *adap = container_of(data, struct adapter, vmcoredd);
2591dde532dSRahul Lakkireddy u32 len = data->size;
2601dde532dSRahul Lakkireddy
2611dde532dSRahul Lakkireddy return cxgb4_cudbg_collect(adap, buf, &len, CXGB4_ETH_DUMP_ALL);
2621dde532dSRahul Lakkireddy }
2631dde532dSRahul Lakkireddy
cxgb4_cudbg_vmcore_add_dump(struct adapter * adap)2641dde532dSRahul Lakkireddy int cxgb4_cudbg_vmcore_add_dump(struct adapter *adap)
2651dde532dSRahul Lakkireddy {
2661dde532dSRahul Lakkireddy struct vmcoredd_data *data = &adap->vmcoredd;
2671dde532dSRahul Lakkireddy u32 len;
2681dde532dSRahul Lakkireddy
2691dde532dSRahul Lakkireddy len = sizeof(struct cudbg_hdr) +
2701dde532dSRahul Lakkireddy sizeof(struct cudbg_entity_hdr) * CUDBG_MAX_ENTITY;
2711dde532dSRahul Lakkireddy len += CUDBG_DUMP_BUFF_SIZE;
2721dde532dSRahul Lakkireddy
2731dde532dSRahul Lakkireddy data->size = len;
2741dde532dSRahul Lakkireddy snprintf(data->dump_name, sizeof(data->dump_name), "%s_%s",
2751dde532dSRahul Lakkireddy cxgb4_driver_name, adap->name);
2761dde532dSRahul Lakkireddy data->vmcoredd_callback = cxgb4_cudbg_vmcoredd_collect;
2771dde532dSRahul Lakkireddy
2781dde532dSRahul Lakkireddy return vmcore_add_device_dump(data);
2791dde532dSRahul Lakkireddy }
280