FreeBSD kernel CXGBE device code
|
#include <sys/cdefs.h>
#include <sys/types.h>
#include <sys/param.h>
#include "common/common.h"
#include "common/t4_regs.h"
#include "cudbg.h"
#include "cudbg_lib_common.h"
#include "cudbg_lib.h"
#include "cudbg_entity.h"
Go to the source code of this file.
Macros | |
#define | BUFFER_WARN_LIMIT 10000000 |
#define | ulp_region(reg) |
#define | FW_PARAM_DEV_A(param) |
#define | FW_PARAM_PFVF_A(param) |
#define | MAX_ATIDS_A 8192U |
Functions | |
__FBSDID ("$FreeBSD$") | |
static int | is_fw_attached (struct cudbg_init *pdbg_init) |
static void | align_debug_buffer (struct cudbg_buffer *dbg_buff, struct cudbg_entity_hdr *entity_hdr) |
static void | read_sge_ctxt (struct cudbg_init *pdbg_init, u32 cid, enum ctxt_type ctype, u32 *data) |
static int | get_next_ext_entity_hdr (void *outbuf, u32 *ext_size, struct cudbg_buffer *dbg_buff, struct cudbg_entity_hdr **entity_hdr) |
static int | wr_entity_to_flash (void *handle, struct cudbg_buffer *dbg_buff, u32 cur_entity_data_offset, u32 cur_entity_size, int entity_nu, u32 ext_size) |
int | cudbg_collect (void *handle, void *outbuf, u32 *outbuf_size) |
void | reset_skip_entity (void) |
void | skip_entity (int entity_code) |
int | is_large_entity (int entity_code) |
int | get_entity_hdr (void *outbuf, int i, u32 size, struct cudbg_entity_hdr **entity_hdr) |
static int | collect_rss (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_sw_state (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_ddp_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_ulptx_la (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_ulprx_la (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cpl_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_wc_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | mem_desc_cmp (const void *a, const void *b) |
static int | fill_meminfo (struct adapter *padap, struct struct_meminfo *meminfo_buff) |
static int | collect_meminfo (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_lb_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_rdma_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_er) |
static int | collect_clk_info (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_macstats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_pif_la (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_tp_la (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_fcoe_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_tp_err_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_tcp_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_hw_sched (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_pm_stats (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_path_mtu (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_rss_key (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_rss_config (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_rss_vf_config (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_rss_pf_config (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | check_valid (u32 *buf, int type) |
static int | get_max_ctxt_qid (struct adapter *padap, struct struct_meminfo *meminfo, u32 *max_ctx_qid, u8 nelem) |
static int | collect_dump_context (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_fw_devlog (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_obq_ulp0 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_obq_ulp1 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_obq_ulp2 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_obq_ulp3 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_obq_sge (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_obq_ncsi (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_obq_sge_rx_q0 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_obq_sge_rx_q1 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | read_cim_obq (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err, int qid) |
static int | collect_cim_ibq_tp0 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_ibq_tp1 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_ibq_ulp (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_ibq_sge0 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_ibq_sge1 (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_ibq_ncsi (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | read_cim_ibq (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err, int qid) |
static int | collect_cim_ma_la (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_la (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cim_qcfg (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | read_fw_mem (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, u8 mem_type, unsigned long tot_len, struct cudbg_error *cudbg_err) |
static void | collect_mem_info (struct cudbg_init *pdbg_init, struct card_mem *mem_info) |
static void | cudbg_t4_fwcache (struct cudbg_init *pdbg_init, struct cudbg_error *cudbg_err) |
static int | collect_edc0_meminfo (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_edc1_meminfo (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_mc0_meminfo (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_mc1_meminfo (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_reg_dump (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_cctrl (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | check_busy_bit (struct adapter *padap) |
static int | cim_ha_rreg (struct adapter *padap, u32 addr, u32 *val) |
static int | dump_up_cim (struct adapter *padap, struct cudbg_init *pdbg_init, struct ireg_field *up_cim_reg, u32 *buff) |
static int | collect_up_cim_indirect (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_mbox_log (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_pbt_tables (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_pm_indirect (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_tid (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_tx_rate (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static void | cudbg_tcamxy2valmask (u64 x, u64 y, u8 *addr, u64 *mask) |
static void | mps_rpl_backdoor (struct adapter *padap, struct fw_ldst_mps_rplc *mps_rplc) |
static int | collect_mps_tcam (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_pcie_config (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | cudbg_read_tid (struct cudbg_init *pdbg_init, u32 tid, struct cudbg_tid_data *tid_data) |
static int | collect_le_tcam (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_ma_indirect (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_hma_indirect (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_pcie_indirect (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_tp_indirect (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_sge_indirect (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_full (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
static int | collect_vpd_data (struct cudbg_init *pdbg_init, struct cudbg_buffer *dbg_buff, struct cudbg_error *cudbg_err) |
Variables | |
struct large_entity | large_entity_list [] |
#define BUFFER_WARN_LIMIT 10000000 |
Definition at line 39 of file cudbg_lib.c.
#define FW_PARAM_DEV_A | ( | param | ) |
#define FW_PARAM_PFVF_A | ( | param | ) |
#define MAX_ATIDS_A 8192U |
#define ulp_region | ( | reg | ) |
__FBSDID | ( | "$FreeBSD$" | ) |
|
static |
Definition at line 56 of file cudbg_lib.c.
References cudbg_buffer::data, cudbg_entity_hdr::num_pad, cudbg_buffer::offset, cudbg_entity_hdr::size, and cudbg_entity_hdr::start_offset.
Referenced by cudbg_collect().
|
static |
Definition at line 2945 of file cudbg_lib.c.
References A_CIM_HOST_ACC_CTRL, CUDBG_CIM_BUSY_BIT, and t4_read_reg().
Referenced by cim_ha_rreg().
|
static |
Definition at line 1726 of file cudbg_lib.c.
References CTXT_EGRESS, CTXT_FLM, and CTXT_INGRESS.
Referenced by collect_dump_context().
Definition at line 2965 of file cudbg_lib.c.
References A_CIM_HOST_ACC_CTRL, A_CIM_HOST_ACC_DATA, check_busy_bit(), t4_read_reg(), and t4_write_reg().
Referenced by collect_pbt_tables(), and dump_up_cim().
|
static |
Definition at line 2915 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), NCCTRL_WIN, NMTUS, release_scratch_buff(), cudbg_buffer::size, t4_read_cong_tbl(), and write_compression_hdr().
|
static |
Definition at line 2226 of file cudbg_lib.c.
References read_cim_ibq().
|
static |
Definition at line 2206 of file cudbg_lib.c.
References read_cim_ibq().
|
static |
Definition at line 2216 of file cudbg_lib.c.
References read_cim_ibq().
|
static |
Definition at line 2176 of file cudbg_lib.c.
References read_cim_ibq().
|
static |
Definition at line 2186 of file cudbg_lib.c.
References read_cim_ibq().
|
static |
Definition at line 2196 of file cudbg_lib.c.
References read_cim_ibq().
|
static |
Definition at line 2318 of file cudbg_lib.c.
References A_UP_UP_DBG_LA_CFG, cudbg_init::adap, adapter_params::cim_la_size, compress_buff(), cudbg_buffer::data, get_scratch_buff(), is_t6(), cudbg_buffer::offset, adapter::params, cudbg_init::print, release_scratch_buff(), cudbg_error::sys_err, t4_cim_read(), t4_cim_read_la(), cudbg_init::verbose, and write_compression_hdr().
|
static |
Definition at line 2285 of file cudbg_lib.c.
References cudbg_init::adap, CIM_MALA_SIZE, compress_buff(), cudbg_buffer::data, get_scratch_buff(), cudbg_buffer::offset, release_scratch_buff(), cudbg_buffer::size, t4_cim_read_ma_la(), and write_compression_hdr().
|
static |
Definition at line 2089 of file cudbg_lib.c.
References read_cim_obq().
|
static |
Definition at line 2078 of file cudbg_lib.c.
References read_cim_obq().
|
static |
Definition at line 2034 of file cudbg_lib.c.
References read_cim_obq().
|
static |
Definition at line 2045 of file cudbg_lib.c.
References read_cim_obq().
|
static |
Definition at line 2056 of file cudbg_lib.c.
References read_cim_obq().
|
static |
Definition at line 2067 of file cudbg_lib.c.
References read_cim_obq().
|
static |
Definition at line 1311 of file cudbg_lib.c.
References cudbg_init::adap, CIM_PIFLA_SIZE, compress_buff(), cim_pif_la::data, cudbg_buffer::data, get_scratch_buff(), release_scratch_buff(), cim_pif_la::size, t4_cim_read_pif_la(), and write_compression_hdr().
|
static |
Definition at line 2382 of file cudbg_lib.c.
References A_UP_IBQ_0_RDADDR, A_UP_OBQ_0_REALADDR, cudbg_init::adap, ARRAY_SIZE, struct_cim_qcfg::base, compress_buff(), cudbg_buffer::data, get_scratch_buff(), struct_cim_qcfg::obq_wr, cudbg_buffer::offset, cudbg_init::print, release_scratch_buff(), struct_cim_qcfg::size, struct_cim_qcfg::stat, cudbg_error::sys_err, t4_cim_read(), t4_read_cimq_cfg(), struct_cim_qcfg::thres, cudbg_init::verbose, and write_compression_hdr().
|
static |
Definition at line 1201 of file cudbg_lib.c.
References A_TP_DACK_TIMER, A_TP_FINWAIT2_TIMER, A_TP_INIT_SRTT, A_TP_KEEP_IDLE, A_TP_KEEP_INTVL, A_TP_PERS_MAX, A_TP_PERS_MIN, A_TP_RXT_MAX, A_TP_RXT_MIN, A_TP_TIMER_RESOLUTION, cudbg_init::adap, vpd_params::cclk, struct_clk_info::cclk_ps, compress_buff(), CUDBG_STATUS_CCLK_NOT_DEFINED, struct_clk_info::dack_re, struct_clk_info::dack_timer, cudbg_buffer::data, struct_clk_info::finwait2_timer, G_DELAYEDACKRESOLUTION, G_INITSRTT, G_TIMERRESOLUTION, get_scratch_buff(), struct_clk_info::initial_srtt, struct_clk_info::keepalive_idle_timer, struct_clk_info::keepalive_interval, adapter::params, struct_clk_info::persist_timer_max, struct_clk_info::persist_timer_min, release_scratch_buff(), struct_clk_info::res, struct_clk_info::retransmit_max, struct_clk_info::retransmit_min, t4_read_reg(), struct_clk_info::tre, adapter_params::vpd, and write_compression_hdr().
|
static |
Definition at line 754 of file cudbg_lib.c.
References cudbg_init::adap, adapter::chip_params, compress_buff(), cudbg_buffer::data, get_scratch_buff(), chip_params::nchan, struct_tp_cpl_stats::nchan, release_scratch_buff(), struct_tp_cpl_stats::stats, t4_tp_get_cpl_stats(), and write_compression_hdr().
|
static |
Definition at line 640 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), release_scratch_buff(), t4_get_usm_stats(), and write_compression_hdr().
|
static |
Definition at line 1848 of file cudbg_lib.c.
References cudbg_init::adap, check_valid(), cudbg_ch_cntxt::cntxt_id, cudbg_ch_cntxt::cntxt_type, compress_buff(), CTXT_CNM, CTXT_EGRESS, CTXT_FLM, CUDBG_CHUNK_SIZE, CUDBG_LOWMEM_MAX_CTXT_QIDS, CUDBG_STATUS_NO_SCRATCH_MEM, cudbg_ch_cntxt::data, cudbg_buffer::data, fill_meminfo(), get_max_ctxt_qid(), get_scratch_buff(), min_t, read_sge_ctxt(), release_scratch_buff(), cudbg_buffer::size, and write_compression_hdr().
|
static |
Definition at line 2744 of file cudbg_lib.c.
References collect_mem_info(), CUDBG_STATUS_ENTITY_NOT_FOUND, cudbg_t4_fwcache(), EDC0_FLAG, err_msg, MEM_EDC0, card_mem::mem_flag, cudbg_init::print, read_fw_mem(), card_mem::size_edc0, and cudbg_init::verbose.
|
static |
Definition at line 2775 of file cudbg_lib.c.
References collect_mem_info(), CUDBG_STATUS_ENTITY_NOT_FOUND, cudbg_t4_fwcache(), EDC1_FLAG, err_msg, MEM_EDC1, card_mem::mem_flag, cudbg_init::print, read_fw_mem(), card_mem::size_edc1, and cudbg_init::verbose.
|
static |
Definition at line 1378 of file cudbg_lib.c.
References cudbg_init::adap, adapter::chip_params, compress_buff(), cudbg_buffer::data, get_scratch_buff(), chip_params::nchan, NCHAN, release_scratch_buff(), struct_tp_fcoe_stats::stats, t4_get_fcoe_stats(), and write_compression_hdr().
|
static |
Definition at line 4255 of file cudbg_lib.c.
References A_SGE_DEBUG_DATA_HIGH_INDEX_10, cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), is_t5(), is_t6(), release_scratch_buff(), cudbg_buffer::size, t4_read_indirect(), t4_read_reg(), t4_tp_pio_read(), t5_pcie_cdbg_array, t5_tp_pio_array, and write_compression_hdr().
|
static |
Definition at line 1961 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), CUDBG_STATUS_NOT_IMPLEMENTED, cudbg_buffer::data, adapter_params::devlog, cudbg_param::devlog_param, get_scratch_buff(), devlog_params::memtype, cudbg_param::memtype, cudbg_buffer::offset, adapter::params, cudbg_init::print, release_scratch_buff(), devlog_params::size, cudbg_param::size, devlog_params::start, cudbg_param::start, cudbg_error::sys_err, t4_init_devlog_params(), cudbg_param::u, and write_compression_hdr().
|
static |
Definition at line 3956 of file cudbg_lib.c.
References cudbg_init::adap, CHELSIO_T6, chip_id(), compress_buff(), CUDBG_STATUS_ENTITY_NOT_FOUND, cudbg_buffer::data, get_scratch_buff(), ireg_field::ireg_addr, ireg_field::ireg_data, ireg_field::ireg_local_offset, ireg_field::ireg_offset_range, ireg_buf::outbuf, cudbg_init::print, release_scratch_buff(), cudbg_buffer::size, t4_read_indirect(), t6_hma_ireg_array, ireg_buf::tp_pio, cudbg_init::verbose, and write_compression_hdr().
|
static |
Definition at line 1483 of file cudbg_lib.c.
References A_TP_MOD_CONFIG, A_TP_TX_MOD_QUEUE_REQ_MAP, cudbg_init::adap, vpd_params::cclk, compress_buff(), CUDBG_STATUS_CCLK_NOT_DEFINED, cudbg_buffer::data, G_TIMERMODE, get_scratch_buff(), struct_hw_sched::ipg, struct_hw_sched::kbps, struct_hw_sched::map, struct_hw_sched::mode, NTX_SCHED, struct_hw_sched::pace_tab, adapter::params, release_scratch_buff(), t4_get_tx_sched(), t4_read_pace_tbl(), t4_read_reg(), adapter_params::vpd, and write_compression_hdr().
|
static |
Definition at line 1124 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), struct_lb_stats::nchan, adapter_params::nports, adapter::params, release_scratch_buff(), struct_lb_stats::s, t4_get_lb_stats(), and write_compression_hdr().
|
static |
Definition at line 3767 of file cudbg_lib.c.
References A_LE_DB_CLIP_TABLE_INDEX, A_LE_DB_CONFIG, A_LE_DB_FILTER_TABLE_INDEX, A_LE_DB_HASH_CONFIG, A_LE_DB_ROUTING_TABLE_INDEX, A_LE_DB_SERVER_INDEX, A_LE_DB_TID_HASHBASE, cudbg_init::adap, CHELSIO_T5, chip_id(), cudbg_tcam::clip_start, cudbg_tcam::filter_start, G_HASHTIDSIZE, cudbg_tcam::max_tid, cudbg_tcam::routing_start, S_HASHEN, cudbg_tcam::server_start, t4_read_reg(), and cudbg_tcam::tid_hash_base.
|
static |
Definition at line 3880 of file cudbg_lib.c.
References cudbg_init::adap, CHELSIO_T6, chip_id(), compress_buff(), CUDBG_STATUS_ENTITY_NOT_FOUND, cudbg_buffer::data, get_scratch_buff(), ireg_field::ireg_addr, ireg_field::ireg_data, ireg_field::ireg_local_offset, ireg_field::ireg_offset_range, ireg_buf::outbuf, cudbg_init::print, release_scratch_buff(), cudbg_buffer::size, t4_read_indirect(), t6_ma_ireg_array, t6_ma_ireg_array2, ireg_buf::tp_pio, cudbg_init::verbose, and write_compression_hdr().
|
static |
Definition at line 1268 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), CUDBG_ENTITY_SIGNATURE, CUDBG_MAC_STATS_REV, cudbg_buffer::data, get_scratch_buff(), adapter_params::nports, adapter::params, struct_mac_stats_rev1::port_count, release_scratch_buff(), cudbg_ver_hdr::revision, cudbg_ver_hdr::signature, cudbg_ver_hdr::size, struct_mac_stats_rev1::stats, t4_get_port_stats(), struct_mac_stats_rev1::ver_hdr, and write_compression_hdr().
|
static |
Definition at line 3065 of file cudbg_lib.c.
References compress_buff(), CUDBG_STATUS_ENTITY_NOT_REQUESTED, CUDBG_STATUS_NOT_IMPLEMENTED, cudbg_buffer::data, get_scratch_buff(), MBOX_LEN, cudbg_init::print, release_scratch_buff(), cudbg_buffer::size, cudbg_init::verbose, and write_compression_hdr().
|
static |
Definition at line 2806 of file cudbg_lib.c.
References collect_mem_info(), CUDBG_STATUS_ENTITY_NOT_FOUND, cudbg_t4_fwcache(), err_msg, MC0_FLAG, card_mem::mem_flag, MEM_MC0, cudbg_init::print, read_fw_mem(), card_mem::size_mc0, and cudbg_init::verbose.
|
static |
Definition at line 2836 of file cudbg_lib.c.
References collect_mem_info(), CUDBG_STATUS_ENTITY_NOT_FOUND, cudbg_t4_fwcache(), err_msg, MC1_FLAG, card_mem::mem_flag, MEM_MC1, cudbg_init::print, read_fw_mem(), card_mem::size_mc1, and cudbg_init::verbose.
|
static |
Definition at line 2668 of file cudbg_lib.c.
References A_MA_EDRAM0_BAR, A_MA_EDRAM1_BAR, A_MA_EXT_MEMORY0_BAR, A_MA_EXT_MEMORY1_BAR, A_MA_EXT_MEMORY_BAR, A_MA_TARGET_MEM_ENABLE, cudbg_init::adap, EDC0_FLAG, EDC1_FLAG, F_EDRAM0_ENABLE, F_EDRAM1_ENABLE, F_EXT_MEM0_ENABLE, F_EXT_MEM1_ENABLE, F_EXT_MEM_ENABLE, G_EDRAM0_SIZE, G_EDRAM1_SIZE, G_EXT_MEM0_SIZE, G_EXT_MEM1_SIZE, G_EXT_MEM_SIZE, is_t4(), MC0_FLAG, MC1_FLAG, card_mem::mem_flag, card_mem::size_edc0, card_mem::size_edc1, card_mem::size_mc0, card_mem::size_mc1, t4, and t4_read_reg().
Referenced by collect_edc0_meminfo(), collect_edc1_meminfo(), collect_mc0_meminfo(), and collect_mc1_meminfo().
|
static |
Definition at line 1091 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, fill_meminfo(), get_scratch_buff(), release_scratch_buff(), and write_compression_hdr().
|
static |
Definition at line 3506 of file cudbg_lib.c.
References A_MPS_CLS_TCAM_DATA2_CTL, A_MPS_CLS_TCAM_RDATA0_REQ_ID1, A_MPS_CLS_TCAM_RDATA1_REQ_ID1, A_MPS_CLS_TCAM_RDATA2_REQ_ID1, cudbg_init::adap, cudbg_mps_tcam::addr, begin_synchronized_op(), CHELSIO_T6, chip_id(), adapter::chip_params, cudbg_mps_tcam::cls_hi, cudbg_mps_tcam::cls_lo, compress_buff(), CUDBG_MAX_RPLC_SIZE, CUDBG_SYSTEM_ERROR, cudbg_tcamxy2valmask(), fw_ldst_cmd::cycles_to_len16, cudbg_buffer::data, cudbg_mps_tcam::dip_hit, end_synchronized_op(), F_DATADIPHIT, F_DATAVIDH2, F_FW_CMD_READ, F_FW_CMD_REQUEST, F_REPLICATE, F_T6_REPLICATE, fw_ldst_cmd::fw_ldst::fw_ldst_mps::fw_ldst_mps_rplc::fid_idx, FW_LDST_ADDRSPC_MPS, FW_LDST_CMD, FW_LDST_MPS_RPLC, FW_LEN16, G_DATALKPTYPE, G_DATAPORTNUM, G_DATAVIDH1, G_DMACH, G_VIDL, get_scratch_buff(), cudbg_mps_tcam::idx, INTR_OK, is_t5(), is_t6(), cudbg_mps_tcam::ivlan, cudbg_mps_tcam::lookup_type, M_DATALKPTYPE, cudbg_mps_tcam::mask, adapter::mbox, fw_ldst_cmd::fw_ldst::mps, MPS_CLS_SRAM_H, MPS_CLS_SRAM_L, MPS_CLS_TCAM_X_L, MPS_CLS_TCAM_Y_L, mps_rpl_backdoor(), chip_params::mps_rplc_size, chip_params::mps_tcam_size, fw_ldst_cmd::op_to_addrspace, cudbg_mps_tcam::port_num, release_scratch_buff(), cudbg_mps_tcam::repli, cudbg_mps_tcam::rplc, fw_ldst_cmd::fw_ldst::fw_ldst_mps::rplc, cudbg_mps_tcam::rplc_size, cudbg_buffer::size, SLEEP_OK, t4_read_reg(), t4_read_reg64(), t4_wr_mbox(), t4_write_reg(), fw_ldst_cmd::u, V_CTLCMDTYPE, V_CTLREQID, V_CTLTCAMINDEX, V_CTLTCAMSEL, V_CTLXYBITSEL, V_FW_CMD_OP, V_FW_LDST_CMD_ADDRSPACE, V_FW_LDST_CMD_FID, V_FW_LDST_CMD_IDX, cudbg_mps_tcam::vlan_vld, cudbg_mps_tcam::vnix, cudbg_mps_tcam::vniy, and write_compression_hdr().
|
static |
Definition at line 2100 of file cudbg_lib.c.
References read_cim_obq().
|
static |
Definition at line 2111 of file cudbg_lib.c.
References read_cim_obq().
|
static |
Definition at line 1557 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), NMTUS, release_scratch_buff(), cudbg_buffer::size, t4_read_mtu_tbl(), and write_compression_hdr().
|
static |
Definition at line 3134 of file cudbg_lib.c.
References cudbg_init::adap, cim_ha_rreg(), compress_buff(), CUDBG_CHAC_PBT_ADDR, CUDBG_CHAC_PBT_DATA, CUDBG_CHAC_PBT_LRF, CUDBG_LRF_ENTRIES, CUDBG_PBT_DATA_ENTRIES, CUDBG_PBT_DYNAMIC_ENTRIES, CUDBG_PBT_STATIC_ENTRIES, cudbg_buffer::data, get_scratch_buff(), cudbg_pbt_tables::lrf_table, cudbg_pbt_tables::pbt_data, cudbg_pbt_tables::pbt_dynamic, cudbg_pbt_tables::pbt_static, cudbg_init::print, release_scratch_buff(), cudbg_buffer::size, cudbg_init::verbose, and write_compression_hdr().
|
static |
Definition at line 3673 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), NUM_PCIE_CONFIG_REGS, release_scratch_buff(), cudbg_buffer::size, t4_hw_pci_read_cfg4(), t5_pcie_config_array, and write_compression_hdr().
|
static |
Definition at line 4012 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), ireg_field::ireg_addr, ireg_field::ireg_data, ireg_field::ireg_local_offset, ireg_field::ireg_offset_range, ireg_buf::outbuf, release_scratch_buff(), cudbg_buffer::size, t4_read_indirect(), t5_pcie_cdbg_array, t5_pcie_pdbg_array, ireg_buf::tp_pio, and write_compression_hdr().
|
static |
Definition at line 3216 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), ireg_field::ireg_addr, ireg_field::ireg_data, ireg_field::ireg_local_offset, ireg_field::ireg_offset_range, ireg_buf::outbuf, release_scratch_buff(), cudbg_buffer::size, t4_read_indirect(), t5_pm_rx_array, t5_pm_tx_array, ireg_buf::tp_pio, and write_compression_hdr().
|
static |
Definition at line 1525 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), release_scratch_buff(), struct_pm_stats::rx_cnt, struct_pm_stats::rx_cyc, t4_pmrx_get_stats(), t4_pmtx_get_stats(), struct_pm_stats::tx_cnt, struct_pm_stats::tx_cyc, and write_compression_hdr().
|
static |
Definition at line 1168 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), release_scratch_buff(), t4_tp_get_rdma_stats(), and write_compression_hdr().
|
static |
Definition at line 2866 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), CUDBG_CHUNK_SIZE, cudbg_buffer::data, get_scratch_buff(), is_t4(), is_t5(), is_t6(), min_t, release_scratch_buff(), cudbg_buffer::size, t4_get_regs(), T4_REGMAP_SIZE, T5_REGMAP_SIZE, and write_compression_hdr().
|
static |
Definition at line 570 of file cudbg_lib.c.
References cudbg_init::adap, adapter::chip_params, compress_buff(), cudbg_buffer::data, get_scratch_buff(), cudbg_init::print, release_scratch_buff(), chip_params::rss_nentries, cudbg_buffer::size, cudbg_error::sys_err, t4_read_rss(), cudbg_init::verbose, and write_compression_hdr().
|
static |
Definition at line 1613 of file cudbg_lib.c.
References A_TP_RSS_CONFIG, A_TP_RSS_CONFIG_CNG, A_TP_RSS_CONFIG_OFD, A_TP_RSS_CONFIG_SYN, A_TP_RSS_CONFIG_TNL, A_TP_RSS_CONFIG_VRT, cudbg_init::adap, rss_config::chip, adapter_params::chipid, compress_buff(), cudbg_buffer::data, get_scratch_buff(), adapter::params, release_scratch_buff(), t4_read_reg(), rss_config::tp_rssconf, rss_config::tp_rssconf_cng, rss_config::tp_rssconf_ofd, rss_config::tp_rssconf_syn, rss_config::tp_rssconf_tnl, rss_config::tp_rssconf_vrt, and write_compression_hdr().
|
static |
Definition at line 1585 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), release_scratch_buff(), cudbg_buffer::size, t4_read_rss_key(), and write_compression_hdr().
|
static |
Definition at line 1687 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), adapter::pf, release_scratch_buff(), rss_pf_conf::rss_pf_config, rss_pf_conf::rss_pf_map, rss_pf_conf::rss_pf_mask, t4_read_rss_pf_config(), t4_read_rss_pf_map(), t4_read_rss_pf_mask(), and write_compression_hdr().
|
static |
Definition at line 1651 of file cudbg_lib.c.
References cudbg_init::adap, adapter::chip_params, compress_buff(), cudbg_buffer::data, get_scratch_buff(), release_scratch_buff(), rss_vf_conf::rss_vf_vfh, rss_vf_conf::rss_vf_vfl, t4_read_rss_vf_config(), chip_params::vfcount, and write_compression_hdr().
|
static |
Definition at line 4205 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), ireg_field::ireg_addr, ireg_field::ireg_data, ireg_field::ireg_local_offset, ireg_field::ireg_offset_range, ireg_buf::outbuf, release_scratch_buff(), cudbg_buffer::size, t4_read_indirect(), t5_sge_dbg_index_array, ireg_buf::tp_pio, and write_compression_hdr().
|
static |
Definition at line 605 of file cudbg_lib.c.
References A_PCIE_FW, cudbg_init::adap, sw_state::caller_string, compress_buff(), cudbg_buffer::data, sw_state::fw_state, get_scratch_buff(), sw_state::os_type, release_scratch_buff(), t4_read_reg(), and write_compression_hdr().
|
static |
Definition at line 1450 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), release_scratch_buff(), t4_tp_get_tcp_stats(), struct_tcp_stats::v6, and write_compression_hdr().
|
static |
Definition at line 3290 of file cudbg_lib.c.
References A_LE_DB_ACT_CNT_IPV4, A_LE_DB_ACT_CNT_IPV6, A_LE_DB_ACTIVE_TABLE_START_INDEX, A_LE_DB_CONFIG, A_LE_DB_SERVER_INDEX, A_LE_DB_SRVR_START_INDEX, A_LE_DB_TID_HASHBASE, A_T6_LE_DB_HASH_TID_BASE, cudbg_init::adap, tid_info_region::aftid_base, tid_info_region::aftid_end, begin_synchronized_op(), CHELSIO_T5, CHELSIO_T6, chip_id(), compress_buff(), CUDBG_ENTITY_SIGNATURE, CUDBG_TID_INFO_REV, cudbg_buffer::data, end_synchronized_op(), tid_info_region::flags, tid_info_region::ftid_base, FW_EPERM, FW_PARAM_DEV_A, FW_PARAM_PFVF_A, get_scratch_buff(), tid_info_region::hash_base, tid_info_region::hpftid_base, INTR_OK, tid_info_region::IP_users, tid_info_region::IPv6_users, is_t5(), is_t6(), tid_info_region::le_db_conf, MAX_ATIDS_A, adapter::mbox, min_t, tid_info_region::natids, tid_info_region::nftids, tid_info_region::nhpftids, tid_info_region::nstids, tid_info_region::ntids, tid_info_region::nuotids, adapter::pf, release_scratch_buff(), cudbg_ver_hdr::revision, tid_info_region::sb, cudbg_ver_hdr::signature, cudbg_ver_hdr::size, cudbg_buffer::size, SLEEP_OK, tid_info_region::stid_base, cudbg_error::sys_err, t4_query_params(), t4_read_reg(), tid_info_region_rev1::tid, tid_info_region_rev1::tid_start, tid_info_region::uotid_base, tid_info_region_rev1::ver_hdr, and write_compression_hdr().
|
static |
Definition at line 1416 of file cudbg_lib.c.
References cudbg_init::adap, adapter::chip_params, compress_buff(), cudbg_buffer::data, get_scratch_buff(), chip_params::nchan, struct_tp_err_stats::nchan, release_scratch_buff(), struct_tp_err_stats::stats, t4_tp_get_err_stats(), and write_compression_hdr().
|
static |
Definition at line 4086 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), ireg_field::ireg_addr, ireg_field::ireg_data, ireg_field::ireg_local_offset, ireg_field::ireg_offset_range, is_t5(), is_t6(), ireg_buf::outbuf, release_scratch_buff(), cudbg_buffer::size, t4_tp_mib_read(), t4_tp_pio_read(), t4_tp_tm_pio_read(), t5_tp_mib_index_array, t5_tp_pio_array, t5_tp_tm_pio_array, t6_tp_mib_index_array, t6_tp_pio_array, t6_tp_tm_pio_array, ireg_buf::tp_pio, and write_compression_hdr().
|
static |
Definition at line 1346 of file cudbg_lib.c.
References A_TP_DBG_LA_CONFIG, cudbg_init::adap, compress_buff(), struct_tp_la::data, cudbg_buffer::data, G_DBGLAMODE, get_scratch_buff(), struct_tp_la::mode, release_scratch_buff(), struct_tp_la::size, t4_read_reg(), t4_tp_read_la(), TPLA_SIZE, and write_compression_hdr().
|
static |
Definition at line 3439 of file cudbg_lib.c.
References cudbg_init::adap, adapter::chip_params, compress_buff(), cudbg_buffer::data, get_scratch_buff(), chip_params::nchan, tx_rate::nchan, tx_rate::nrate, tx_rate::orate, release_scratch_buff(), cudbg_buffer::size, t4_get_chan_txrate(), and write_compression_hdr().
|
static |
Definition at line 722 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), struct_ulprx_la::data, cudbg_buffer::data, get_scratch_buff(), release_scratch_buff(), struct_ulprx_la::size, t4_ulprx_read_la(), ULPRX_LA_SIZE, and write_compression_hdr().
|
static |
Definition at line 674 of file cudbg_lib.c.
References A_ULP_TX_LA_RDDATA_0, A_ULP_TX_LA_RDPTR_0, A_ULP_TX_LA_WRPTR_0, cudbg_init::adap, compress_buff(), CUDBG_NUM_ULPTX, CUDBG_NUM_ULPTX_READ, cudbg_buffer::data, get_scratch_buff(), struct_ulptx_la::rd_data, struct_ulptx_la::rddata, struct_ulptx_la::rdptr, release_scratch_buff(), t4_read_reg(), write_compression_hdr(), and struct_ulptx_la::wrptr.
|
static |
Definition at line 3008 of file cudbg_lib.c.
References cudbg_init::adap, compress_buff(), cudbg_buffer::data, dump_up_cim(), get_scratch_buff(), ireg_field::ireg_addr, ireg_field::ireg_data, ireg_field::ireg_local_offset, ireg_field::ireg_offset_range, is_t5(), is_t6(), ireg_buf::outbuf, release_scratch_buff(), cudbg_buffer::size, t5_up_cim_reg_array, t6_up_cim_reg_array, ireg_buf::tp_pio, and write_compression_hdr().
|
static |
Definition at line 4360 of file cudbg_lib.c.
References cudbg_init::adap, struct_vpd_data::bn, BN_MAX_LEN, BN_REG_ADDR, BN_T6_ADDR, compress_buff(), CUDBG_STATUS_NOT_IMPLEMENTED, cudbg_buffer::data, struct_vpd_data::fw_build, struct_vpd_data::fw_major, struct_vpd_data::fw_micro, struct_vpd_data::fw_minor, adapter_params::fw_vers, G_FW_HDR_FW_VER_BUILD, G_FW_HDR_FW_VER_MAJOR, G_FW_HDR_FW_VER_MICRO, G_FW_HDR_FW_VER_MINOR, get_scratch_buff(), is_fw_attached(), is_t5(), is_t6(), struct_vpd_data::mn, MN_MAX_LEN, MN_REG_ADDR, MN_T6_ADDR, struct_vpd_data::na, NA_MAX_LEN, NA_REG_ADDR, NA_T6_ADDR, adapter::params, release_scratch_buff(), SCFG_VER_ADDR, SCFG_VER_LEN, struct_vpd_data::scfg_vers, simple_strtoul, cudbg_buffer::size, struct_vpd_data::sn, SN_MAX_LEN, SN_REG_ADDR, SN_T6_ADDR, t4_get_fw_version(), t4_get_scfg_version(), t4_get_vpd_version(), VPD_VER_ADDR, VPD_VER_LEN, struct_vpd_data::vpd_vers, and write_compression_hdr().
|
static |
Definition at line 789 of file cudbg_lib.c.
References A_SGE_STAT_MATCH, A_SGE_STAT_TOTAL, cudbg_init::adap, compress_buff(), cudbg_buffer::data, get_scratch_buff(), is_t4(), release_scratch_buff(), t4_read_reg(), struct_wc_stats::wr_cl_fail, struct_wc_stats::wr_cl_success, and write_compression_hdr().
int cudbg_collect | ( | void * | handle, |
void * | outbuf, | ||
u32 * | outbuf_size | ||
) |
cudbg_collect - Collect and store debug information.
@handle : A pointer returned by cudbg_alloc_handle. @outbuf : pointer to output buffer, to store the collected information or to use it as a scratch buffer in case HW flash is used to store the debug information. @outbuf_size : Size of output buffer.
If the function succeeds, the return value will be size of debug information collected and stored. -ve value represent error.
Definition at line 203 of file cudbg_lib.c.
References cudbg_init::adap, align_debug_buffer(), BUFFER_WARN_LIMIT, cudbg_hdr::chip_ver, adapter_params::chipid, CUDBG_ALL, CUDBG_EXT_DATA_VALID, CUDBG_EXT_ENTITY, CUDBG_MAJOR_VERSION, CUDBG_MAX_ENTITY, CUDBG_MINOR_VERSION, CUDBG_SIGNATURE, CUDBG_STATUS_SMALL_BUFF, CUDBG_SYSTEM_ERROR, cudbg_buffer::data, cudbg_hdr::data_len, large_entity::entity_code, ENTITY_FLAG_FW_NO_ATTACH, entity_list, cudbg_entity_hdr::entity_type, cudbg_entity_hdr::flag, get_entity_hdr(), get_next_ext_entity_hdr(), cudbg_hdr::hdr_flags, cudbg_entity_hdr::hdr_flags, cudbg_hdr::hdr_len, is_fw_attached(), is_large_entity(), large_entity_list, cudbg_hdr::major_ver, cudbg_hdr::max_entities, cudbg_hdr::minor_ver, cudbg_entity_hdr::next_ext_offset, cudbg_buffer::offset, adapter::params, cudbg_init::print, process_entity, reset_skip_entity(), cudbg_hdr::signature, cudbg_entity_hdr::size, cudbg_buffer::size, skip_entity(), cudbg_entity_hdr::start_offset, cudbg_entity_hdr::sys_err, cudbg_error::sys_err, cudbg_entity_hdr::sys_warn, cudbg_error::sys_warn, t4_get_flash_params(), cudbg_init::use_flash, cudbg_init::verbose, and wr_entity_to_flash().
Referenced by cudbg_dump().
|
static |
Definition at line 3710 of file cudbg_lib.c.
References A_LE_DB_DBGI_CONFIG, A_LE_DB_DBGI_REQ_DATA, A_LE_DB_DBGI_REQ_TCAM_CMD, A_LE_DB_DBGI_RSP_DATA, A_LE_DB_DBGI_RSP_STATUS, cudbg_init::adap, CUDBG_NUM_REQ_REGS, CUDBG_SYSTEM_ERROR, cudbg_tid_data::data, cudbg_tid_data::dbig_cmd, cudbg_tid_data::dbig_conf, cudbg_tid_data::dbig_rsp_stat, cudbg_init::print, S_DBGICMD, S_DBGICMDBUSY, S_DBGICMDSTRT, t4_read_reg(), t4_write_reg(), cudbg_tid_data::tid, and cudbg_init::verbose.
|
static |
Definition at line 2719 of file cudbg_lib.c.
References cudbg_init::adap, begin_synchronized_op(), end_synchronized_op(), FW_PARAM_DEV_FWCACHE_FLUSH, INTR_OK, is_fw_attached(), cudbg_init::print, SLEEP_OK, cudbg_error::sys_warn, t4_fwcache(), and cudbg_init::verbose.
Referenced by collect_edc0_meminfo(), collect_edc1_meminfo(), collect_mc0_meminfo(), and collect_mc1_meminfo().
Definition at line 3472 of file cudbg_lib.c.
References __force, cpu_to_be64, and ETH_ALEN.
Referenced by collect_mps_tcam().
|
static |
Definition at line 2984 of file cudbg_lib.c.
References cim_ha_rreg(), ireg_field::ireg_local_offset, ireg_field::ireg_offset_range, cudbg_init::print, and cudbg_init::verbose.
Referenced by collect_up_cim_indirect().
|
static |
Definition at line 837 of file cudbg_lib.c.
References A_CIM_EXTMEM2_ADDR_SIZE, A_CIM_EXTMEM2_BASE_ADDR, A_CIM_SDRAM_ADDR_SIZE, A_CIM_SDRAM_BASE_ADDR, A_LE_DB_CONFIG, A_LE_DB_HASH_TBL_BASE_ADDR, A_LE_DB_HASH_TID_BASE, A_LE_DB_TID_HASHBASE, A_MA_EDRAM0_BAR, A_MA_EDRAM1_BAR, A_MA_EXT_MEMORY0_BAR, A_MA_EXT_MEMORY1_BAR, A_MA_EXT_MEMORY_BAR, A_MA_TARGET_MEM_ENABLE, A_MPS_RX_LPBK_BG_PG_CNT0, A_MPS_RX_MAC_BG_PG_CNT0, A_MPS_RX_PG_RSV0, A_MPS_RX_PG_RSV4, A_SGE_CONTROL2, A_SGE_DBQ_CTXT_BADDR, A_SGE_DBVFIFO_BADDR, A_SGE_DBVFIFO_SIZE, A_SGE_FLM_CACHE_BADDR, A_SGE_IMSG_CTXT_BADDR, A_TP_CMM_MM_BASE, A_TP_CMM_MM_PS_FLST_BASE, A_TP_CMM_MM_RX_FLST_BASE, A_TP_CMM_MM_TX_FLST_BASE, A_TP_CMM_TCB_BASE, A_TP_CMM_TIMER_BASE, A_TP_PMM_RX_BASE, A_TP_PMM_RX_MAX_PAGE, A_TP_PMM_RX_PAGE_SIZE, A_TP_PMM_TX_BASE, A_TP_PMM_TX_MAX_PAGE, A_TP_PMM_TX_PAGE_SIZE, A_ULP_RX_CTX_BASE, A_ULP_TX_ERR_TABLE_BASE, ARRAY_SIZE, struct_meminfo::avail, struct_meminfo::avail_c, struct_mem_desc::base, CHELSIO_T5, chip_id(), adapter::chip_params, CUDBG_STATUS_ENTITY_NOT_FOUND, F_EDRAM0_ENABLE, F_EDRAM1_ENABLE, F_EXT_MEM0_ENABLE, F_EXT_MEM1_ENABLE, F_EXT_MEM_ENABLE, F_HASHEN, F_PMRXNUMCHN, F_VFIFO_ENABLE, G_ALLOC, G_BASEADDR, G_DBVFIFO_SIZE, G_EDRAM0_BASE, G_EDRAM0_SIZE, G_EDRAM1_BASE, G_EDRAM1_SIZE, G_EXT_MEM1_BASE, G_EXT_MEM1_SIZE, G_EXT_MEM_BASE, G_EXT_MEM_SIZE, G_PMRXMAXPAGE, G_PMTXMAXPAGE, G_PMTXNUMCHN, G_T5_ALLOC, G_T5_USED, G_T6_DBVFIFO_SIZE, G_USED, struct_mem_desc::idx, is_t4(), is_t5(), is_t6(), struct_mem_desc::limit, struct_meminfo::loopback_alloc, struct_meminfo::loopback_used, struct_meminfo::mem, struct_meminfo::mem_c, mem_desc_cmp(), chip_params::nchan, struct_meminfo::port_alloc, struct_meminfo::port_used, region, struct_meminfo::rx_pages_data, t4_read_reg(), struct_meminfo::tx_pages_data, ulp_region, struct_meminfo::up_extmem2_hi, struct_meminfo::up_extmem2_lo, struct_meminfo::up_ram_hi, and struct_meminfo::up_ram_lo.
Referenced by collect_dump_context(), and collect_meminfo().
int get_entity_hdr | ( | void * | outbuf, |
int | i, | ||
u32 | size, | ||
struct cudbg_entity_hdr ** | entity_hdr | ||
) |
Definition at line 555 of file cudbg_lib.c.
References CUDBG_STATUS_SMALL_BUFF, and cudbg_hdr::hdr_len.
Referenced by cudbg_collect().
|
static |
Get EGRESS, INGRESS, FLM, and CNM max qid.
For EGRESS and INGRESS, do the following calculation. max_qid = (DBQ/IMSG context region size in bytes) / (size of context in bytes).
For FLM, do the following calculation. max_qid = (FLM cache region size in bytes) / ((number of pointers cached in EDRAM) * 8 (bytes per pointer)).
There's a 1-to-1 mapping between FLM and CNM if there's no header splitting enabled; i.e., max CNM qid is equal to max FLM qid. However, if header splitting is enabled, then max CNM qid is half of max FLM qid.
Definition at line 1764 of file cudbg_lib.c.
References A_SGE_FLM_CFG, ARRAY_SIZE, struct_mem_desc::base, CTXT_CNM, CTXT_EGRESS, CTXT_FLM, CTXT_INGRESS, CUDBG_CTXT_SIZE_BYTES, CUDBG_MAX_CNM_QIDS, CUDBG_MAX_FL_QIDS, CUDBG_MAX_INGRESS_QIDS, G_EDRAMPTRCNT, struct_mem_desc::idx, struct_mem_desc::limit, M_CTXTQID, struct_meminfo::mem, struct_meminfo::mem_c, min_t, region, S_NOHDR, and t4_read_reg().
Referenced by collect_dump_context().
|
static |
Definition at line 95 of file cudbg_lib.c.
References CUDBG_STATUS_BUFFER_SHORT, cudbg_hdr::data_len, cudbg_buffer::offset, cudbg_entity_hdr::size, and cudbg_buffer::size.
Referenced by cudbg_collect().
|
static |
Definition at line 48 of file cudbg_lib.c.
References cudbg_init::adap, adapter::flags, and FW_OK.
Referenced by collect_vpd_data(), cudbg_collect(), cudbg_t4_fwcache(), and read_sge_ctxt().
int is_large_entity | ( | int | entity_code | ) |
Definition at line 543 of file cudbg_lib.c.
References large_entity_list.
Referenced by cudbg_collect().
|
static |
Definition at line 831 of file cudbg_lib.c.
Referenced by fill_meminfo().
|
static |
Definition at line 3479 of file cudbg_lib.c.
References A_MPS_VF_RPLCT_MAP0, A_MPS_VF_RPLCT_MAP1, A_MPS_VF_RPLCT_MAP2, A_MPS_VF_RPLCT_MAP3, A_MPS_VF_RPLCT_MAP4, A_MPS_VF_RPLCT_MAP5, A_MPS_VF_RPLCT_MAP6, A_MPS_VF_RPLCT_MAP7, is_t5(), and t4_read_reg().
Referenced by collect_mps_tcam().
|
static |
Definition at line 2236 of file cudbg_lib.c.
References cudbg_init::adap, CIM_IBQ_SIZE, compress_buff(), CUDBG_SYSTEM_ERROR, cudbg_buffer::data, get_scratch_buff(), cudbg_buffer::offset, cudbg_init::print, release_scratch_buff(), cudbg_error::sys_err, t4_read_cim_ibq(), cudbg_init::verbose, and write_compression_hdr().
Referenced by collect_cim_ibq_ncsi(), collect_cim_ibq_sge0(), collect_cim_ibq_sge1(), collect_cim_ibq_tp0(), collect_cim_ibq_tp1(), and collect_cim_ibq_ulp().
|
static |
Definition at line 2122 of file cudbg_lib.c.
References cudbg_init::adap, CIM_OBQ_SIZE, compress_buff(), CUDBG_SYSTEM_ERROR, cudbg_buffer::data, get_scratch_buff(), cudbg_buffer::offset, cudbg_init::print, release_scratch_buff(), cudbg_buffer::size, cudbg_error::sys_err, t4_read_cim_obq(), cudbg_init::verbose, and write_compression_hdr().
Referenced by collect_cim_obq_ncsi(), collect_cim_obq_sge(), collect_cim_obq_ulp0(), collect_cim_obq_ulp1(), collect_cim_obq_ulp2(), collect_cim_obq_ulp3(), collect_obq_sge_rx_q0(), and collect_obq_sge_rx_q1().
|
static |
Fetch the TX/RX payload regions start and end.
@padap (IN): adapter handle. @mem_type (IN): EDC0, EDC1, MC/MC0/MC1. @mem_tot_len (IN): total length of @mem_type memory region to read. @payload_type (IN): TX or RX Payload. @reg_info (OUT): store the payload region info.
Fetch the TX/RX payload region information from meminfo. However, reading from the @mem_type region starts at 0 and not from whatever base info is stored in meminfo. Hence, if the payload region exists, then calculate the payload region start and end wrt 0 and @mem_tot_len, respectively, and set @reg_info->exist to true. Otherwise, set @reg_info->exist to false.
Definition at line 2548 of file cudbg_lib.c.
References cudbg_init::adap, ARRAY_SIZE, compress_buff(), CUDBG_CHUNK_SIZE, CUDBG_STATUS_NO_SCRATCH_MEM, CUDBG_STATUS_NOT_IMPLEMENTED, cudbg_buffer::data, struct_region_info::end, struct_region_info::exist, get_scratch_buff(), min_t, cudbg_init::print, region, release_scratch_buff(), cudbg_buffer::size, struct_region_info::start, cudbg_error::sys_err, cudbg_init::verbose, and write_compression_hdr().
Referenced by collect_edc0_meminfo(), collect_edc1_meminfo(), collect_mc0_meminfo(), and collect_mc1_meminfo().
|
static |
Definition at line 74 of file cudbg_lib.c.
References cudbg_init::adap, begin_synchronized_op(), end_synchronized_op(), INTR_OK, is_fw_attached(), adapter::mbox, SLEEP_OK, t4_sge_ctxt_rd(), and t4_sge_ctxt_rd_bd().
Referenced by collect_dump_context().
void reset_skip_entity | ( | void | ) |
Definition at line 525 of file cudbg_lib.c.
References ARRAY_SIZE, and large_entity_list.
Referenced by cudbg_collect().
void skip_entity | ( | int | entity_code | ) |
Definition at line 533 of file cudbg_lib.c.
References large_entity_list, and large_entity::skip_flag.
Referenced by cudbg_collect().
|
static |
Definition at line 147 of file cudbg_lib.c.
References CUDBG_FLASH_SIZE, CUDBG_MAX_ENTITY, CUDBG_STATUS_FLASH_FULL, cudbg_write_flash(), cudbg_private::dbg_init, FLASH_CUDBG_NSECS, cudbg_init::print, cudbg_private::sec_info, cudbg_flash_hdr::timestamp, update_skip_size(), and cudbg_init::verbose.
Referenced by cudbg_collect().
struct large_entity large_entity_list[] |
Definition at line 41 of file cudbg_lib.c.
Referenced by cudbg_collect(), is_large_entity(), reset_skip_entity(), and skip_entity().