Lines Matching refs:p_hwfn

910 static void qed_grc_set_param(struct qed_hwfn *p_hwfn,  in qed_grc_set_param()  argument
913 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_set_param()
919 static u32 qed_grc_get_param(struct qed_hwfn *p_hwfn, in qed_grc_get_param() argument
922 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_get_param()
928 static void qed_dbg_grc_init_params(struct qed_hwfn *p_hwfn) in qed_dbg_grc_init_params() argument
930 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_init_params()
933 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_grc_init_params()
939 static void qed_set_dbg_bin_buf(struct qed_hwfn *p_hwfn, in qed_set_dbg_bin_buf() argument
943 struct virt_mem_desc *buf = &p_hwfn->dbg_arrays[buf_type]; in qed_set_dbg_bin_buf()
950 static enum dbg_status qed_dbg_dev_init(struct qed_hwfn *p_hwfn) in qed_dbg_dev_init() argument
952 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_dev_init()
962 if (QED_IS_K2(p_hwfn->cdev)) { in qed_dbg_dev_init()
968 } else if (QED_IS_BB_B0(p_hwfn->cdev)) { in qed_dbg_dev_init()
983 switch (p_hwfn->cdev->num_ports_in_engine) { in qed_dbg_dev_init()
996 if (QED_IS_CMT(p_hwfn->cdev)) in qed_dbg_dev_init()
1014 qed_dbg_grc_init_params(p_hwfn); in qed_dbg_dev_init()
1022 static const struct dbg_block *get_dbg_block(struct qed_hwfn *p_hwfn, in get_dbg_block() argument
1027 dbg_block = p_hwfn->dbg_arrays[BIN_BUF_DBG_BLOCKS].ptr; in get_dbg_block()
1032 *p_hwfn, in qed_get_dbg_block_per_chip() argument
1036 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_get_dbg_block_per_chip()
1039 p_hwfn->dbg_arrays[BIN_BUF_DBG_BLOCKS_CHIP_DATA].ptr + in qed_get_dbg_block_per_chip()
1044 *p_hwfn, in qed_get_dbg_reset_reg()
1047 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_get_dbg_reset_reg()
1050 p_hwfn->dbg_arrays[BIN_BUF_DBG_RESET_REGS].ptr + in qed_get_dbg_reset_reg()
1057 static void qed_read_storm_fw_info(struct qed_hwfn *p_hwfn, in qed_read_storm_fw_info() argument
1079 dest[i] = qed_rd(p_hwfn, p_ptt, addr); in qed_read_storm_fw_info()
1091 dest[i] = qed_rd(p_hwfn, p_ptt, addr); in qed_read_storm_fw_info()
1180 static u32 qed_dump_fw_ver_param(struct qed_hwfn *p_hwfn, in qed_dump_fw_ver_param() argument
1189 if (dump && !qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_FW_VER)) { in qed_dump_fw_ver_param()
1191 qed_read_fw_info(p_hwfn, p_ptt, &fw_info); in qed_dump_fw_ver_param()
1198 DP_NOTICE(p_hwfn, in qed_dump_fw_ver_param()
1230 static u32 qed_dump_mfw_ver_param(struct qed_hwfn *p_hwfn, in qed_dump_mfw_ver_param() argument
1237 !qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_FW_VER)) { in qed_dump_mfw_ver_param()
1244 public_data_addr = qed_rd(p_hwfn, in qed_dump_mfw_ver_param()
1254 global_section_offsize = qed_rd(p_hwfn, p_ptt, in qed_dump_mfw_ver_param()
1261 mfw_ver = qed_rd(p_hwfn, p_ptt, in qed_dump_mfw_ver_param()
1269 DP_NOTICE(p_hwfn, in qed_dump_mfw_ver_param()
1279 static u32 qed_dump_chip_revision_param(struct qed_hwfn *p_hwfn, in qed_dump_chip_revision_param() argument
1283 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dump_chip_revision_param()
1289 chip_rev = qed_rd(p_hwfn, p_ptt, MISCS_REG_CHIP_REV); in qed_dump_chip_revision_param()
1290 chip_metal = qed_rd(p_hwfn, p_ptt, MISCS_REG_CHIP_METAL); in qed_dump_chip_revision_param()
1311 static u32 qed_dump_common_global_params(struct qed_hwfn *p_hwfn, in qed_dump_common_global_params() argument
1317 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dump_common_global_params()
1328 offset += qed_dump_fw_ver_param(p_hwfn, p_ptt, dump_buf + offset, dump); in qed_dump_common_global_params()
1329 offset += qed_dump_mfw_ver_param(p_hwfn, in qed_dump_common_global_params()
1331 offset += qed_dump_chip_revision_param(p_hwfn, in qed_dump_common_global_params()
1344 dump, "pci-func", p_hwfn->abs_pf_id); in qed_dump_common_global_params()
1349 dump, "path", QED_PATH_ID(p_hwfn)); in qed_dump_common_global_params()
1376 static void qed_update_blocks_reset_state(struct qed_hwfn *p_hwfn, in qed_update_blocks_reset_state() argument
1379 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_update_blocks_reset_state()
1390 rst_reg = qed_get_dbg_reset_reg(p_hwfn, rst_reg_id); in qed_update_blocks_reset_state()
1397 reg_val[rst_reg_id] = qed_rd(p_hwfn, p_ptt, in qed_update_blocks_reset_state()
1407 blk = qed_get_dbg_block_per_chip(p_hwfn, (enum block_id)blk_id); in qed_update_blocks_reset_state()
1420 static bool qed_is_mode_match_rec(struct qed_hwfn *p_hwfn, in qed_is_mode_match_rec() argument
1423 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_is_mode_match_rec()
1429 DP_NOTICE(p_hwfn, in qed_is_mode_match_rec()
1435 dbg_array = p_hwfn->dbg_arrays[BIN_BUF_DBG_MODE_TREE].ptr; in qed_is_mode_match_rec()
1440 return !qed_is_mode_match_rec(p_hwfn, in qed_is_mode_match_rec()
1444 arg1 = qed_is_mode_match_rec(p_hwfn, in qed_is_mode_match_rec()
1446 arg2 = qed_is_mode_match_rec(p_hwfn, in qed_is_mode_match_rec()
1456 static bool qed_is_mode_match(struct qed_hwfn *p_hwfn, u16 *modes_buf_offset) in qed_is_mode_match() argument
1458 return qed_is_mode_match_rec(p_hwfn, modes_buf_offset, 0); in qed_is_mode_match()
1462 static void qed_bus_enable_dbg_block(struct qed_hwfn *p_hwfn, in qed_bus_enable_dbg_block() argument
1465 qed_wr(p_hwfn, p_ptt, DBG_REG_DBG_BLOCK_ON, enable ? 1 : 0); in qed_bus_enable_dbg_block()
1469 static void qed_bus_reset_dbg_block(struct qed_hwfn *p_hwfn, in qed_bus_reset_dbg_block() argument
1476 block = qed_get_dbg_block_per_chip(p_hwfn, BLOCK_DBG); in qed_bus_reset_dbg_block()
1477 reset_reg = qed_get_dbg_reset_reg(p_hwfn, block->reset_reg_id); in qed_bus_reset_dbg_block()
1481 old_reset_reg_val = qed_rd(p_hwfn, p_ptt, reset_reg_addr); in qed_bus_reset_dbg_block()
1485 qed_wr(p_hwfn, p_ptt, reset_reg_addr, new_reset_reg_val); in qed_bus_reset_dbg_block()
1486 qed_wr(p_hwfn, p_ptt, reset_reg_addr, old_reset_reg_val); in qed_bus_reset_dbg_block()
1492 static void qed_bus_enable_clients(struct qed_hwfn *p_hwfn, in qed_bus_enable_clients() argument
1495 qed_wr(p_hwfn, p_ptt, DBG_REG_CLIENT_ENABLE, client_mask); in qed_bus_enable_clients()
1498 static void qed_bus_config_dbg_line(struct qed_hwfn *p_hwfn, in qed_bus_config_dbg_line() argument
1507 qed_get_dbg_block_per_chip(p_hwfn, block_id); in qed_bus_config_dbg_line()
1509 qed_wr(p_hwfn, p_ptt, DWORDS_TO_BYTES(block->dbg_select_reg_addr), in qed_bus_config_dbg_line()
1511 qed_wr(p_hwfn, p_ptt, DWORDS_TO_BYTES(block->dbg_dword_enable_reg_addr), in qed_bus_config_dbg_line()
1513 qed_wr(p_hwfn, p_ptt, DWORDS_TO_BYTES(block->dbg_shift_reg_addr), in qed_bus_config_dbg_line()
1515 qed_wr(p_hwfn, p_ptt, DWORDS_TO_BYTES(block->dbg_force_valid_reg_addr), in qed_bus_config_dbg_line()
1517 qed_wr(p_hwfn, p_ptt, DWORDS_TO_BYTES(block->dbg_force_frame_reg_addr), in qed_bus_config_dbg_line()
1522 static void qed_bus_disable_blocks(struct qed_hwfn *p_hwfn, in qed_bus_disable_blocks() argument
1525 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_bus_disable_blocks()
1531 qed_get_dbg_block_per_chip(p_hwfn, in qed_bus_disable_blocks()
1552 qed_is_mode_match(p_hwfn, &modes_buf_offset)) in qed_bus_disable_blocks()
1553 qed_wr(p_hwfn, p_ptt, in qed_bus_disable_blocks()
1563 static bool qed_grc_is_included(struct qed_hwfn *p_hwfn, in qed_grc_is_included() argument
1566 return qed_grc_get_param(p_hwfn, grc_param) > 0; in qed_grc_is_included()
1586 static bool qed_grc_is_storm_included(struct qed_hwfn *p_hwfn, in qed_grc_is_storm_included() argument
1589 return qed_grc_get_param(p_hwfn, (enum dbg_grc_params)storm) > 0; in qed_grc_is_storm_included()
1595 static bool qed_grc_is_mem_included(struct qed_hwfn *p_hwfn, in qed_grc_is_mem_included() argument
1601 block = get_dbg_block(p_hwfn, block_id); in qed_grc_is_mem_included()
1609 !qed_grc_is_storm_included(p_hwfn, associated_storm_id)) in qed_grc_is_mem_included()
1618 return qed_grc_is_included(p_hwfn, big_ram->grc_param); in qed_grc_is_mem_included()
1624 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_PXP); in qed_grc_is_mem_included()
1626 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_RAM); in qed_grc_is_mem_included()
1628 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_PBUF); in qed_grc_is_mem_included()
1632 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CAU); in qed_grc_is_mem_included()
1634 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CAU_EXT); in qed_grc_is_mem_included()
1636 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_QM); in qed_grc_is_mem_included()
1640 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CFC) || in qed_grc_is_mem_included()
1641 qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CM_CTX); in qed_grc_is_mem_included()
1643 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_DORQ); in qed_grc_is_mem_included()
1646 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_IGU); in qed_grc_is_mem_included()
1648 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_MULD); in qed_grc_is_mem_included()
1650 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_PRS); in qed_grc_is_mem_included()
1652 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_DMAE); in qed_grc_is_mem_included()
1654 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_TM); in qed_grc_is_mem_included()
1656 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_SDM); in qed_grc_is_mem_included()
1659 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_DIF); in qed_grc_is_mem_included()
1661 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CM); in qed_grc_is_mem_included()
1663 return qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_IOR); in qed_grc_is_mem_included()
1670 static void qed_grc_stall_storms(struct qed_hwfn *p_hwfn, in qed_grc_stall_storms() argument
1677 if (!qed_grc_is_storm_included(p_hwfn, in qed_grc_stall_storms()
1683 qed_wr(p_hwfn, p_ptt, reg_addr, stall ? 1 : 0); in qed_grc_stall_storms()
1692 static void qed_grc_unreset_blocks(struct qed_hwfn *p_hwfn, in qed_grc_unreset_blocks() argument
1695 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_unreset_blocks()
1702 qed_wr(p_hwfn, in qed_grc_unreset_blocks()
1718 block = qed_get_dbg_block_per_chip(p_hwfn, in qed_grc_unreset_blocks()
1741 reset_reg = qed_get_dbg_reset_reg(p_hwfn, reset_reg_id); in qed_grc_unreset_blocks()
1751 qed_wr(p_hwfn, in qed_grc_unreset_blocks()
1763 qed_get_block_attn_data(struct qed_hwfn *p_hwfn, in qed_get_block_attn_data() argument
1768 p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_BLOCKS].ptr; in qed_get_block_attn_data()
1775 qed_get_block_attn_regs(struct qed_hwfn *p_hwfn, in qed_get_block_attn_regs() argument
1780 qed_get_block_attn_data(p_hwfn, block_id, attn_type); in qed_get_block_attn_regs()
1785 p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_REGS].ptr + in qed_get_block_attn_regs()
1790 static void qed_grc_clear_all_prty(struct qed_hwfn *p_hwfn, in qed_grc_clear_all_prty() argument
1793 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_clear_all_prty()
1802 attn_reg_arr = qed_get_block_attn_regs(p_hwfn, in qed_grc_clear_all_prty()
1823 qed_is_mode_match(p_hwfn, &modes_buf_offset)) in qed_grc_clear_all_prty()
1824 qed_rd(p_hwfn, p_ptt, in qed_grc_clear_all_prty()
1831 static enum dbg_status qed_find_nvram_image(struct qed_hwfn *p_hwfn, in qed_find_nvram_image() argument
1843 nvm_result = qed_mcp_nvm_rd_cmd(p_hwfn, in qed_find_nvram_image()
1862 DP_VERBOSE(p_hwfn, in qed_find_nvram_image()
1875 static enum dbg_status qed_nvram_read(struct qed_hwfn *p_hwfn, in qed_nvram_read() argument
1886 DP_VERBOSE(p_hwfn, in qed_nvram_read()
1901 if (qed_mcp_nvm_rd_cmd(p_hwfn, p_ptt, in qed_nvram_read()
1958 void qed_read_regs(struct qed_hwfn *p_hwfn, in qed_read_regs() argument
1964 buf[i] = qed_rd(p_hwfn, p_ptt, DWORDS_TO_BYTES(addr + i)); in qed_read_regs()
1971 static u32 qed_grc_dump_addr_range(struct qed_hwfn *p_hwfn, in qed_grc_dump_addr_range() argument
1978 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_addr_range()
2039 read_using_dmae = !qed_dmae_grc2host(p_hwfn, in qed_grc_dump_addr_range()
2046 DP_VERBOSE(p_hwfn, in qed_grc_dump_addr_range()
2062 qed_port_pretend(p_hwfn, p_ptt, port_id); in qed_grc_dump_addr_range()
2067 qed_fid_pretend(p_hwfn, p_ptt, fid); in qed_grc_dump_addr_range()
2072 qed_port_fid_pretend(p_hwfn, p_ptt, port_id, fid); in qed_grc_dump_addr_range()
2078 qed_fid_pretend(p_hwfn, p_ptt, fid); in qed_grc_dump_addr_range()
2089 qed_read_regs(p_hwfn, p_ptt, dump_buf, addr, len); in qed_grc_dump_addr_range()
2097 DP_VERBOSE(p_hwfn, in qed_grc_dump_addr_range()
2119 static u32 qed_grc_dump_reg_entry(struct qed_hwfn *p_hwfn, in qed_grc_dump_reg_entry() argument
2128 offset += qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_reg_entry()
2144 static u32 qed_grc_dump_reg_entry_skip(struct qed_hwfn *p_hwfn, in qed_grc_dump_reg_entry_skip() argument
2162 offset += qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_reg_entry_skip()
2183 static u32 qed_grc_dump_regs_entries(struct qed_hwfn *p_hwfn, in qed_grc_dump_regs_entries() argument
2212 mode_match = qed_is_mode_match(p_hwfn, in qed_grc_dump_regs_entries()
2231 offset += qed_grc_dump_reg_entry(p_hwfn, in qed_grc_dump_regs_entries()
2247 static u32 qed_grc_dump_split_data(struct qed_hwfn *p_hwfn, in qed_grc_dump_split_data() argument
2256 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_split_data()
2275 offset += qed_grc_dump_regs_entries(p_hwfn, in qed_grc_dump_split_data()
2299 static u32 qed_grc_dump_registers(struct qed_hwfn *p_hwfn, in qed_grc_dump_registers() argument
2307 &p_hwfn->dbg_arrays[BIN_BUF_DBG_DUMP_REG]; in qed_grc_dump_registers()
2308 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_registers()
2328 (u32 *)p_hwfn->dbg_arrays[BIN_BUF_DBG_DUMP_REG].ptr + in qed_grc_dump_registers()
2352 offset += qed_grc_dump_split_data(p_hwfn, p_ptt, in qed_grc_dump_registers()
2365 qed_fid_pretend(p_hwfn, p_ptt, in qed_grc_dump_registers()
2367 p_hwfn->rel_pf_id)); in qed_grc_dump_registers()
2376 static u32 qed_grc_dump_reset_regs(struct qed_hwfn *p_hwfn, in qed_grc_dump_reset_regs() argument
2394 reset_reg = qed_get_dbg_reset_reg(p_hwfn, reset_reg_id); in qed_grc_dump_reset_regs()
2400 offset += qed_grc_dump_reg_entry(p_hwfn, in qed_grc_dump_reset_regs()
2421 static u32 qed_grc_dump_modified_regs(struct qed_hwfn *p_hwfn, in qed_grc_dump_modified_regs() argument
2425 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_modified_regs()
2441 attn_reg_arr = qed_get_block_attn_regs(p_hwfn, in qed_grc_dump_modified_regs()
2460 !qed_is_mode_match(p_hwfn, &modes_buf_offset)) in qed_grc_dump_modified_regs()
2465 offset += qed_grc_dump_reg_entry(p_hwfn, in qed_grc_dump_modified_regs()
2474 offset += qed_grc_dump_reg_entry(p_hwfn, in qed_grc_dump_modified_regs()
2509 offset += qed_grc_dump_reg_entry(p_hwfn, in qed_grc_dump_modified_regs()
2530 static u32 qed_grc_dump_special_regs(struct qed_hwfn *p_hwfn, in qed_grc_dump_special_regs() argument
2543 offset += qed_grc_dump_reg_entry_skip(p_hwfn, in qed_grc_dump_special_regs()
2553 qed_grc_dump_reg_entry_skip(p_hwfn, in qed_grc_dump_special_regs()
2577 static u32 qed_grc_dump_mem_hdr(struct qed_hwfn *p_hwfn, in qed_grc_dump_mem_hdr() argument
2592 DP_NOTICE(p_hwfn, in qed_grc_dump_mem_hdr()
2655 static u32 qed_grc_dump_mem(struct qed_hwfn *p_hwfn, in qed_grc_dump_mem() argument
2669 offset += qed_grc_dump_mem_hdr(p_hwfn, in qed_grc_dump_mem()
2677 offset += qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_mem()
2687 static u32 qed_grc_dump_mem_entries(struct qed_hwfn *p_hwfn, in qed_grc_dump_mem_entries() argument
2713 mode_match = qed_is_mode_match(p_hwfn, in qed_grc_dump_mem_entries()
2737 DP_NOTICE(p_hwfn, "Invalid mem_group_id\n"); in qed_grc_dump_mem_entries()
2741 if (!qed_grc_is_mem_included(p_hwfn, in qed_grc_dump_mem_entries()
2752 block = get_dbg_block(p_hwfn, in qed_grc_dump_mem_entries()
2762 offset += qed_grc_dump_mem(p_hwfn, in qed_grc_dump_mem_entries()
2783 static u32 qed_grc_dump_memories(struct qed_hwfn *p_hwfn, in qed_grc_dump_memories() argument
2788 &p_hwfn->dbg_arrays[BIN_BUF_DBG_DUMP_MEM]; in qed_grc_dump_memories()
2808 offset += qed_grc_dump_mem_entries(p_hwfn, in qed_grc_dump_memories()
2814 DP_NOTICE(p_hwfn, in qed_grc_dump_memories()
2827 static u32 qed_grc_dump_ctx_data(struct qed_hwfn *p_hwfn, in qed_grc_dump_ctx_data() argument
2835 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_ctx_data()
2848 offset += qed_grc_dump_mem_hdr(p_hwfn, in qed_grc_dump_ctx_data()
2865 qed_wr(p_hwfn, in qed_grc_dump_ctx_data()
2867 offset += qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_ctx_data()
2882 static u32 qed_grc_dump_ctx(struct qed_hwfn *p_hwfn, in qed_grc_dump_ctx() argument
2889 if (!qed_grc_is_storm_included(p_hwfn, in qed_grc_dump_ctx()
2894 offset += qed_grc_dump_ctx_data(p_hwfn, in qed_grc_dump_ctx()
2903 offset += qed_grc_dump_ctx_data(p_hwfn, in qed_grc_dump_ctx()
2912 offset += qed_grc_dump_ctx_data(p_hwfn, in qed_grc_dump_ctx()
2921 offset += qed_grc_dump_ctx_data(p_hwfn, in qed_grc_dump_ctx()
2943 static u32 qed_grc_dump_read_from_vfc(struct qed_hwfn *p_hwfn, in qed_grc_dump_read_from_vfc() argument
2952 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_read_from_vfc()
2962 ARR_REG_WR(p_hwfn, in qed_grc_dump_read_from_vfc()
2968 ARR_REG_WR(p_hwfn, in qed_grc_dump_read_from_vfc()
2978 qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_read_from_vfc()
2996 qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_read_from_vfc()
3008 static u32 qed_grc_dump_vfc_cam(struct qed_hwfn *p_hwfn, in qed_grc_dump_vfc_cam() argument
3018 offset += qed_grc_dump_mem_hdr(p_hwfn, in qed_grc_dump_vfc_cam()
3036 offset += qed_grc_dump_read_from_vfc(p_hwfn, in qed_grc_dump_vfc_cam()
3051 static u32 qed_grc_dump_vfc_ram(struct qed_hwfn *p_hwfn, in qed_grc_dump_vfc_ram() argument
3063 offset += qed_grc_dump_mem_hdr(p_hwfn, in qed_grc_dump_vfc_ram()
3084 offset += qed_grc_dump_read_from_vfc(p_hwfn, in qed_grc_dump_vfc_ram()
3099 static u32 qed_grc_dump_vfc(struct qed_hwfn *p_hwfn, in qed_grc_dump_vfc() argument
3106 if (!qed_grc_is_storm_included(p_hwfn, in qed_grc_dump_vfc()
3112 offset += qed_grc_dump_vfc_cam(p_hwfn, in qed_grc_dump_vfc()
3119 offset += qed_grc_dump_vfc_ram(p_hwfn, in qed_grc_dump_vfc()
3131 static u32 qed_grc_dump_rss(struct qed_hwfn *p_hwfn, in qed_grc_dump_rss() argument
3134 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_rss()
3150 offset += qed_grc_dump_mem_hdr(p_hwfn, in qed_grc_dump_rss()
3171 qed_wr(p_hwfn, p_ptt, RSS_REG_RSS_RAM_ADDR, rss_addr); in qed_grc_dump_rss()
3172 offset += qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_rss()
3189 static u32 qed_grc_dump_big_ram(struct qed_hwfn *p_hwfn, in qed_grc_dump_big_ram() argument
3193 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_big_ram()
3202 reg_val = qed_rd(p_hwfn, p_ptt, big_ram->is_256b_reg_addr); in qed_grc_dump_big_ram()
3211 offset += qed_grc_dump_mem_hdr(p_hwfn, in qed_grc_dump_big_ram()
3229 qed_wr(p_hwfn, p_ptt, big_ram->addr_reg_addr, i); in qed_grc_dump_big_ram()
3232 offset += qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_big_ram()
3245 static u32 qed_grc_dump_mcp(struct qed_hwfn *p_hwfn, in qed_grc_dump_mcp() argument
3253 if (dump && !qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_MCP)) { in qed_grc_dump_mcp()
3254 halted = !qed_mcp_halt(p_hwfn, p_ptt); in qed_grc_dump_mcp()
3256 DP_NOTICE(p_hwfn, "MCP halt failed!\n"); in qed_grc_dump_mcp()
3260 offset += qed_grc_dump_mem(p_hwfn, in qed_grc_dump_mcp()
3270 offset += qed_grc_dump_mem(p_hwfn, in qed_grc_dump_mcp()
3281 offset += qed_grc_dump_registers(p_hwfn, in qed_grc_dump_mcp()
3291 offset += qed_grc_dump_reg_entry(p_hwfn, in qed_grc_dump_mcp()
3300 if (halted && qed_mcp_resume(p_hwfn, p_ptt)) in qed_grc_dump_mcp()
3301 DP_NOTICE(p_hwfn, "Failed to resume MCP after halt!\n"); in qed_grc_dump_mcp()
3309 static u32 qed_grc_dump_phy(struct qed_hwfn *p_hwfn, in qed_grc_dump_phy() argument
3333 DP_NOTICE(p_hwfn, in qed_grc_dump_phy()
3336 offset += qed_grc_dump_mem_hdr(p_hwfn, in qed_grc_dump_phy()
3353 qed_wr(p_hwfn, p_ptt, addr_hi_addr, tbus_hi_offset); in qed_grc_dump_phy()
3356 qed_wr(p_hwfn, in qed_grc_dump_phy()
3358 *(bytes_buf++) = (u8)qed_rd(p_hwfn, in qed_grc_dump_phy()
3361 *(bytes_buf++) = (u8)qed_rd(p_hwfn, in qed_grc_dump_phy()
3374 static u32 qed_grc_dump_mcp_hw_dump(struct qed_hwfn *p_hwfn, in qed_grc_dump_mcp_hw_dump() argument
3383 status = qed_find_nvram_image(p_hwfn, in qed_grc_dump_mcp_hw_dump()
3402 status = qed_nvram_read(p_hwfn, in qed_grc_dump_mcp_hw_dump()
3409 DP_NOTICE(p_hwfn, in qed_grc_dump_mcp_hw_dump()
3420 static u32 qed_grc_dump_static_debug(struct qed_hwfn *p_hwfn, in qed_grc_dump_static_debug() argument
3424 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump_static_debug()
3428 if (dump && qed_rd(p_hwfn, p_ptt, DBG_REG_DBG_BLOCK_ON)) in qed_grc_dump_static_debug()
3433 qed_bus_disable_blocks(p_hwfn, p_ptt); in qed_grc_dump_static_debug()
3435 qed_bus_reset_dbg_block(p_hwfn, p_ptt); in qed_grc_dump_static_debug()
3436 qed_wr(p_hwfn, in qed_grc_dump_static_debug()
3438 qed_wr(p_hwfn, in qed_grc_dump_static_debug()
3440 qed_wr(p_hwfn, p_ptt, DBG_REG_FULL_MODE, 1); in qed_grc_dump_static_debug()
3441 qed_bus_enable_dbg_block(p_hwfn, p_ptt, true); in qed_grc_dump_static_debug()
3453 qed_get_dbg_block_per_chip(p_hwfn, (enum block_id)block_id); in qed_grc_dump_static_debug()
3465 if (!qed_is_mode_match(p_hwfn, &modes_buf_offset)) in qed_grc_dump_static_debug()
3476 block = get_dbg_block(p_hwfn, (enum block_id)block_id); in qed_grc_dump_static_debug()
3477 offset += qed_grc_dump_mem_hdr(p_hwfn, in qed_grc_dump_static_debug()
3499 qed_bus_enable_clients(p_hwfn, in qed_grc_dump_static_debug()
3508 qed_bus_config_dbg_line(p_hwfn, in qed_grc_dump_static_debug()
3514 offset += qed_grc_dump_addr_range(p_hwfn, in qed_grc_dump_static_debug()
3525 qed_bus_enable_clients(p_hwfn, p_ptt, 0); in qed_grc_dump_static_debug()
3526 qed_bus_config_dbg_line(p_hwfn, p_ptt, in qed_grc_dump_static_debug()
3531 qed_bus_enable_dbg_block(p_hwfn, p_ptt, false); in qed_grc_dump_static_debug()
3532 qed_bus_enable_clients(p_hwfn, p_ptt, 0); in qed_grc_dump_static_debug()
3541 static enum dbg_status qed_grc_dump(struct qed_hwfn *p_hwfn, in qed_grc_dump() argument
3546 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_grc_dump()
3556 qed_update_blocks_reset_state(p_hwfn, p_ptt); in qed_grc_dump()
3559 offset += qed_dump_common_global_params(p_hwfn, in qed_grc_dump()
3576 if (qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_REGS)) in qed_grc_dump()
3577 offset += qed_grc_dump_reset_regs(p_hwfn, in qed_grc_dump()
3583 qed_grc_unreset_blocks(p_hwfn, p_ptt, false); in qed_grc_dump()
3584 qed_update_blocks_reset_state(p_hwfn, p_ptt); in qed_grc_dump()
3589 !qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_MCP)) { in qed_grc_dump()
3590 parities_masked = !qed_mcp_mask_parities(p_hwfn, p_ptt, 1); in qed_grc_dump()
3592 DP_NOTICE(p_hwfn, in qed_grc_dump()
3595 (p_hwfn, DBG_GRC_PARAM_PARITY_SAFE)) in qed_grc_dump()
3601 if (qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_REGS)) in qed_grc_dump()
3602 offset += qed_grc_dump_modified_regs(p_hwfn, in qed_grc_dump()
3608 (qed_grc_is_included(p_hwfn, in qed_grc_dump()
3610 qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_VFC))) in qed_grc_dump()
3611 qed_grc_stall_storms(p_hwfn, p_ptt, true); in qed_grc_dump()
3614 if (qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_REGS)) { in qed_grc_dump()
3621 offset += qed_grc_dump_registers(p_hwfn, in qed_grc_dump()
3629 offset += qed_grc_dump_special_regs(p_hwfn, in qed_grc_dump()
3635 offset += qed_grc_dump_memories(p_hwfn, p_ptt, dump_buf + offset, dump); in qed_grc_dump()
3638 if (qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_MCP)) in qed_grc_dump()
3639 offset += qed_grc_dump_mcp(p_hwfn, in qed_grc_dump()
3643 if (qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_CM_CTX)) in qed_grc_dump()
3644 offset += qed_grc_dump_ctx(p_hwfn, in qed_grc_dump()
3648 if (qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_RSS)) in qed_grc_dump()
3649 offset += qed_grc_dump_rss(p_hwfn, in qed_grc_dump()
3654 if (qed_grc_is_included(p_hwfn, s_big_ram_defs[i].grc_param)) in qed_grc_dump()
3655 offset += qed_grc_dump_big_ram(p_hwfn, in qed_grc_dump()
3661 if (qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_VFC)) { in qed_grc_dump()
3662 dwords_read = qed_grc_dump_vfc(p_hwfn, in qed_grc_dump()
3670 if (qed_grc_is_included(p_hwfn, in qed_grc_dump()
3673 offset += qed_grc_dump_phy(p_hwfn, in qed_grc_dump()
3677 if (qed_grc_is_included(p_hwfn, DBG_GRC_PARAM_DUMP_MCP_HW_DUMP) && in qed_grc_dump()
3678 !qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_MCP) && 1) in qed_grc_dump()
3679 offset += qed_grc_dump_mcp_hw_dump(p_hwfn, in qed_grc_dump()
3684 if (qed_grc_is_included(p_hwfn, in qed_grc_dump()
3687 offset += qed_grc_dump_static_debug(p_hwfn, in qed_grc_dump()
3696 if (qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_UNSTALL)) in qed_grc_dump()
3697 qed_grc_stall_storms(p_hwfn, p_ptt, false); in qed_grc_dump()
3700 qed_grc_clear_all_prty(p_hwfn, p_ptt); in qed_grc_dump()
3704 qed_mcp_mask_parities(p_hwfn, p_ptt, 0); in qed_grc_dump()
3715 static u32 qed_idle_chk_dump_failure(struct qed_hwfn *p_hwfn, in qed_idle_chk_dump_failure() argument
3723 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_idle_chk_dump_failure()
3733 p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_REGS].ptr + in qed_idle_chk_dump_failure()
3792 DP_NOTICE(p_hwfn, "Invalid block_id\n"); in qed_idle_chk_dump_failure()
3813 qed_is_mode_match(p_hwfn, in qed_idle_chk_dump_failure()
3835 offset += qed_grc_dump_addr_range(p_hwfn, in qed_idle_chk_dump_failure()
3850 qed_idle_chk_dump_rule_entries(struct qed_hwfn *p_hwfn, struct qed_ptt *p_ptt, in qed_idle_chk_dump_rule_entries() argument
3855 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_idle_chk_dump_rule_entries()
3873 p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_REGS].ptr + in qed_idle_chk_dump_rule_entries()
3877 (u32 *)p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_IMMS].ptr + in qed_idle_chk_dump_rule_entries()
3891 DP_NOTICE(p_hwfn, "Invalid block_id\n"); in qed_idle_chk_dump_rule_entries()
3905 qed_idle_chk_dump_failure(p_hwfn, in qed_idle_chk_dump_rule_entries()
3954 DP_NOTICE(p_hwfn, in qed_idle_chk_dump_rule_entries()
3960 qed_grc_dump_addr_range(p_hwfn, p_ptt, in qed_idle_chk_dump_rule_entries()
3974 offset += qed_idle_chk_dump_failure(p_hwfn, in qed_idle_chk_dump_rule_entries()
3993 static u32 qed_idle_chk_dump(struct qed_hwfn *p_hwfn, in qed_idle_chk_dump() argument
3997 &p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_RULES]; in qed_idle_chk_dump()
4002 offset += qed_dump_common_global_params(p_hwfn, in qed_idle_chk_dump()
4028 mode_match = qed_is_mode_match(p_hwfn, in qed_idle_chk_dump()
4040 qed_idle_chk_dump_rule_entries(p_hwfn, in qed_idle_chk_dump()
4069 static enum dbg_status qed_mcp_trace_get_data_info(struct qed_hwfn *p_hwfn, in qed_mcp_trace_get_data_info() argument
4077 spad_trace_offsize = qed_rd(p_hwfn, p_ptt, MCP_SPAD_TRACE_OFFSIZE_ADDR); in qed_mcp_trace_get_data_info()
4084 signature = qed_rd(p_hwfn, p_ptt, in qed_mcp_trace_get_data_info()
4092 *trace_data_size = qed_rd(p_hwfn, in qed_mcp_trace_get_data_info()
4106 static enum dbg_status qed_mcp_trace_get_meta_info(struct qed_hwfn *p_hwfn, in qed_mcp_trace_get_meta_info() argument
4116 spad_trace_offsize = qed_rd(p_hwfn, p_ptt, MCP_SPAD_TRACE_OFFSIZE_ADDR); in qed_mcp_trace_get_meta_info()
4122 *running_bundle_id = qed_rd(p_hwfn, p_ptt, running_mfw_addr); in qed_mcp_trace_get_meta_info()
4130 return qed_find_nvram_image(p_hwfn, in qed_mcp_trace_get_meta_info()
4139 static enum dbg_status qed_mcp_trace_read_meta(struct qed_hwfn *p_hwfn, in qed_mcp_trace_read_meta() argument
4149 status = qed_nvram_read(p_hwfn, in qed_mcp_trace_read_meta()
4183 static enum dbg_status qed_mcp_trace_dump(struct qed_hwfn *p_hwfn, in qed_mcp_trace_dump() argument
4197 use_mfw = !qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_NO_MCP); in qed_mcp_trace_dump()
4200 status = qed_mcp_trace_get_data_info(p_hwfn, in qed_mcp_trace_dump()
4208 offset += qed_dump_common_global_params(p_hwfn, in qed_mcp_trace_dump()
4219 halted = !qed_mcp_halt(p_hwfn, p_ptt); in qed_mcp_trace_dump()
4221 DP_NOTICE(p_hwfn, "MCP halt failed!\n"); in qed_mcp_trace_dump()
4236 offset += qed_grc_dump_addr_range(p_hwfn, in qed_mcp_trace_dump()
4245 if (halted && qed_mcp_resume(p_hwfn, p_ptt)) in qed_mcp_trace_dump()
4246 DP_NOTICE(p_hwfn, "Failed to resume MCP after halt!\n"); in qed_mcp_trace_dump()
4257 qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_MCP_TRACE_META_SIZE); in qed_mcp_trace_dump()
4259 status = qed_mcp_trace_get_meta_info(p_hwfn, in qed_mcp_trace_dump()
4274 status = qed_mcp_trace_read_meta(p_hwfn, in qed_mcp_trace_dump()
4294 static enum dbg_status qed_reg_fifo_dump(struct qed_hwfn *p_hwfn, in qed_reg_fifo_dump() argument
4305 offset += qed_dump_common_global_params(p_hwfn, in qed_reg_fifo_dump()
4327 fifo_has_data = qed_rd(p_hwfn, p_ptt, in qed_reg_fifo_dump()
4340 offset += qed_grc_dump_addr_range(p_hwfn, in qed_reg_fifo_dump()
4348 fifo_has_data = qed_rd(p_hwfn, p_ptt, in qed_reg_fifo_dump()
4364 static enum dbg_status qed_igu_fifo_dump(struct qed_hwfn *p_hwfn, in qed_igu_fifo_dump() argument
4375 offset += qed_dump_common_global_params(p_hwfn, in qed_igu_fifo_dump()
4397 fifo_has_data = qed_rd(p_hwfn, p_ptt, in qed_igu_fifo_dump()
4410 offset += qed_grc_dump_addr_range(p_hwfn, in qed_igu_fifo_dump()
4418 fifo_has_data = qed_rd(p_hwfn, p_ptt, in qed_igu_fifo_dump()
4434 static enum dbg_status qed_protection_override_dump(struct qed_hwfn *p_hwfn, in qed_protection_override_dump() argument
4445 offset += qed_dump_common_global_params(p_hwfn, in qed_protection_override_dump()
4466 qed_rd(p_hwfn, p_ptt, GRC_REG_NUMBER_VALID_OVERRIDE_WINDOW) * in qed_protection_override_dump()
4470 offset += qed_grc_dump_addr_range(p_hwfn, in qed_protection_override_dump()
4492 static u32 qed_fw_asserts_dump(struct qed_hwfn *p_hwfn, in qed_fw_asserts_dump() argument
4495 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_fw_asserts_dump()
4503 offset += qed_dump_common_global_params(p_hwfn, in qed_fw_asserts_dump()
4519 qed_read_storm_fw_info(p_hwfn, p_ptt, storm_id, &fw_info); in qed_fw_asserts_dump()
4547 next_list_idx = qed_rd(p_hwfn, p_ptt, next_list_idx_addr); in qed_fw_asserts_dump()
4555 qed_grc_dump_addr_range(p_hwfn, p_ptt, in qed_fw_asserts_dump()
4641 static u32 qed_ilt_dump_pages_section(struct qed_hwfn *p_hwfn, in qed_ilt_dump_pages_section() argument
4652 struct qed_ilt_client_cfg *clients = p_hwfn->p_cxt_mngr->clients; in qed_ilt_dump_pages_section()
4668 cdut_pf_init_pages = qed_get_cdut_num_pf_init_pages(p_hwfn); in qed_ilt_dump_pages_section()
4669 cdut_vf_init_pages = qed_get_cdut_num_vf_init_pages(p_hwfn); in qed_ilt_dump_pages_section()
4670 cdut_pf_work_pages = qed_get_cdut_num_pf_work_pages(p_hwfn); in qed_ilt_dump_pages_section()
4671 cdut_vf_work_pages = qed_get_cdut_num_vf_work_pages(p_hwfn); in qed_ilt_dump_pages_section()
4674 pf_start_line = p_hwfn->p_cxt_mngr->pf_start_line; in qed_ilt_dump_pages_section()
4704 if (qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_DUMP_ILT_CDUC)) { in qed_ilt_dump_pages_section()
4715 for (i = 0; i < p_hwfn->p_cxt_mngr->vf_count; in qed_ilt_dump_pages_section()
4732 if (qed_grc_get_param(p_hwfn, DBG_GRC_PARAM_DUMP_ILT_CDUT)) { in qed_ilt_dump_pages_section()
4745 for (i = 0; i < p_hwfn->p_cxt_mngr->vf_count; in qed_ilt_dump_pages_section()
4791 qed_ilt_dump_dump_common_global_params(struct qed_hwfn *p_hwfn, in qed_ilt_dump_dump_common_global_params() argument
4801 struct qed_ilt_client_cfg *clients = p_hwfn->p_cxt_mngr->clients; in qed_ilt_dump_dump_common_global_params()
4804 offset += qed_dump_common_global_params(p_hwfn, p_ptt, in qed_ilt_dump_dump_common_global_params()
4849 qed_get_cdut_num_pf_init_pages(p_hwfn)); in qed_ilt_dump_dump_common_global_params()
4853 qed_get_cdut_num_vf_init_pages(p_hwfn)); in qed_ilt_dump_dump_common_global_params()
4857 qed_get_cdut_num_pf_work_pages(p_hwfn)); in qed_ilt_dump_dump_common_global_params()
4861 qed_get_cdut_num_vf_work_pages(p_hwfn)); in qed_ilt_dump_dump_common_global_params()
4865 p_hwfn->p_cxt_mngr->task_ctx_size); in qed_ilt_dump_dump_common_global_params()
4869 p_hwfn->p_cxt_mngr->first_vf_in_pf); in qed_ilt_dump_dump_common_global_params()
4873 p_hwfn->p_cxt_mngr->vf_count); in qed_ilt_dump_dump_common_global_params()
4881 p_hwfn->p_cxt_mngr->pf_start_line); in qed_ilt_dump_dump_common_global_params()
4889 p_hwfn->p_cxt_mngr->ilt_shadow_size); in qed_ilt_dump_dump_common_global_params()
4904 p_hwfn->p_cxt_mngr->iscsi_task_pages); in qed_ilt_dump_dump_common_global_params()
4908 p_hwfn->p_cxt_mngr->fcoe_task_pages); in qed_ilt_dump_dump_common_global_params()
4912 p_hwfn->p_cxt_mngr->roce_task_pages); in qed_ilt_dump_dump_common_global_params()
4916 p_hwfn->p_cxt_mngr->eth_task_pages); in qed_ilt_dump_dump_common_global_params()
4941 static u32 qed_ilt_dump_dump_num_pf_cids(struct qed_hwfn *p_hwfn, in qed_ilt_dump_dump_num_pf_cids() argument
4955 num_pf_cids = p_hwfn->p_cxt_mngr->conn_cfg[conn_type].cid_count; in qed_ilt_dump_dump_num_pf_cids()
4968 static u32 qed_ilt_dump_dump_num_vf_cids(struct qed_hwfn *p_hwfn, in qed_ilt_dump_dump_num_vf_cids() argument
4983 p_hwfn->p_cxt_mngr->conn_cfg[conn_type].cids_per_vf; in qed_ilt_dump_dump_num_vf_cids()
4996 static u32 qed_ilt_dump(struct qed_hwfn *p_hwfn, in qed_ilt_dump() argument
5001 struct qed_ilt_client_cfg *clients = p_hwfn->p_cxt_mngr->clients; in qed_ilt_dump()
5022 conn_ctx_size = p_hwfn->p_cxt_mngr->conn_ctx_size; in qed_ilt_dump()
5024 ilt_pages = p_hwfn->p_cxt_mngr->ilt_shadow; in qed_ilt_dump()
5048 qed_ilt_dump_dump_common_global_params(p_hwfn, in qed_ilt_dump()
5063 offset += qed_ilt_dump_dump_common_global_params(p_hwfn, in qed_ilt_dump()
5079 qed_ilt_dump_dump_num_pf_cids(p_hwfn, in qed_ilt_dump()
5089 offset += qed_ilt_dump_dump_num_pf_cids(p_hwfn, in qed_ilt_dump()
5100 qed_ilt_dump_dump_num_vf_cids(p_hwfn, in qed_ilt_dump()
5110 offset += qed_ilt_dump_dump_num_vf_cids(p_hwfn, in qed_ilt_dump()
5118 num_pages = p_hwfn->p_cxt_mngr->ilt_shadow_size; in qed_ilt_dump()
5175 qed_ilt_dump_pages_section(p_hwfn, dump_buf, &offset, &continue_dump, in qed_ilt_dump()
5181 qed_ilt_dump_pages_section(p_hwfn, dump_buf, &offset, &continue_dump, in qed_ilt_dump()
5204 enum dbg_status qed_dbg_set_bin_ptr(struct qed_hwfn *p_hwfn, in qed_dbg_set_bin_ptr() argument
5212 qed_set_dbg_bin_buf(p_hwfn, in qed_dbg_set_bin_ptr()
5230 bool qed_read_fw_info(struct qed_hwfn *p_hwfn, in qed_read_fw_info() argument
5233 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_read_fw_info()
5244 qed_read_storm_fw_info(p_hwfn, p_ptt, storm_id, fw_info); in qed_read_fw_info()
5252 enum dbg_status qed_dbg_grc_config(struct qed_hwfn *p_hwfn, in qed_dbg_grc_config() argument
5255 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_config()
5259 DP_VERBOSE(p_hwfn, in qed_dbg_grc_config()
5263 status = qed_dbg_dev_init(p_hwfn); in qed_dbg_grc_config()
5270 qed_dbg_grc_init_params(p_hwfn); in qed_dbg_grc_config()
5305 qed_grc_set_param(p_hwfn, i, preset_val); in qed_dbg_grc_config()
5309 qed_grc_set_param(p_hwfn, grc_param, val); in qed_dbg_grc_config()
5316 void qed_dbg_grc_set_params_default(struct qed_hwfn *p_hwfn) in qed_dbg_grc_set_params_default() argument
5318 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_grc_set_params_default()
5327 enum dbg_status qed_dbg_grc_get_dump_buf_size(struct qed_hwfn *p_hwfn, in qed_dbg_grc_get_dump_buf_size() argument
5331 enum dbg_status status = qed_dbg_dev_init(p_hwfn); in qed_dbg_grc_get_dump_buf_size()
5338 if (!p_hwfn->dbg_arrays[BIN_BUF_DBG_MODE_TREE].ptr || in qed_dbg_grc_get_dump_buf_size()
5339 !p_hwfn->dbg_arrays[BIN_BUF_DBG_DUMP_REG].ptr || in qed_dbg_grc_get_dump_buf_size()
5340 !p_hwfn->dbg_arrays[BIN_BUF_DBG_DUMP_MEM].ptr || in qed_dbg_grc_get_dump_buf_size()
5341 !p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_BLOCKS].ptr || in qed_dbg_grc_get_dump_buf_size()
5342 !p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_REGS].ptr) in qed_dbg_grc_get_dump_buf_size()
5345 return qed_grc_dump(p_hwfn, p_ptt, NULL, false, buf_size); in qed_dbg_grc_get_dump_buf_size()
5348 enum dbg_status qed_dbg_grc_dump(struct qed_hwfn *p_hwfn, in qed_dbg_grc_dump() argument
5359 status = qed_dbg_grc_get_dump_buf_size(p_hwfn, in qed_dbg_grc_dump()
5372 status = qed_grc_dump(p_hwfn, p_ptt, dump_buf, true, num_dumped_dwords); in qed_dbg_grc_dump()
5375 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_grc_dump()
5380 enum dbg_status qed_dbg_idle_chk_get_dump_buf_size(struct qed_hwfn *p_hwfn, in qed_dbg_idle_chk_get_dump_buf_size() argument
5384 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_idle_chk_get_dump_buf_size()
5390 status = qed_dbg_dev_init(p_hwfn); in qed_dbg_idle_chk_get_dump_buf_size()
5394 if (!p_hwfn->dbg_arrays[BIN_BUF_DBG_MODE_TREE].ptr || in qed_dbg_idle_chk_get_dump_buf_size()
5395 !p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_REGS].ptr || in qed_dbg_idle_chk_get_dump_buf_size()
5396 !p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_IMMS].ptr || in qed_dbg_idle_chk_get_dump_buf_size()
5397 !p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_RULES].ptr) in qed_dbg_idle_chk_get_dump_buf_size()
5401 idle_chk->buf_size = qed_idle_chk_dump(p_hwfn, in qed_dbg_idle_chk_get_dump_buf_size()
5411 enum dbg_status qed_dbg_idle_chk_dump(struct qed_hwfn *p_hwfn, in qed_dbg_idle_chk_dump() argument
5422 status = qed_dbg_idle_chk_get_dump_buf_size(p_hwfn, in qed_dbg_idle_chk_dump()
5432 qed_grc_unreset_blocks(p_hwfn, p_ptt, true); in qed_dbg_idle_chk_dump()
5433 qed_update_blocks_reset_state(p_hwfn, p_ptt); in qed_dbg_idle_chk_dump()
5436 *num_dumped_dwords = qed_idle_chk_dump(p_hwfn, p_ptt, dump_buf, true); in qed_dbg_idle_chk_dump()
5439 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_idle_chk_dump()
5444 enum dbg_status qed_dbg_mcp_trace_get_dump_buf_size(struct qed_hwfn *p_hwfn, in qed_dbg_mcp_trace_get_dump_buf_size() argument
5448 enum dbg_status status = qed_dbg_dev_init(p_hwfn); in qed_dbg_mcp_trace_get_dump_buf_size()
5455 return qed_mcp_trace_dump(p_hwfn, p_ptt, NULL, false, buf_size); in qed_dbg_mcp_trace_get_dump_buf_size()
5458 enum dbg_status qed_dbg_mcp_trace_dump(struct qed_hwfn *p_hwfn, in qed_dbg_mcp_trace_dump() argument
5468 qed_dbg_mcp_trace_get_dump_buf_size(p_hwfn, in qed_dbg_mcp_trace_dump()
5479 qed_update_blocks_reset_state(p_hwfn, p_ptt); in qed_dbg_mcp_trace_dump()
5482 status = qed_mcp_trace_dump(p_hwfn, in qed_dbg_mcp_trace_dump()
5486 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_mcp_trace_dump()
5491 enum dbg_status qed_dbg_reg_fifo_get_dump_buf_size(struct qed_hwfn *p_hwfn, in qed_dbg_reg_fifo_get_dump_buf_size() argument
5495 enum dbg_status status = qed_dbg_dev_init(p_hwfn); in qed_dbg_reg_fifo_get_dump_buf_size()
5502 return qed_reg_fifo_dump(p_hwfn, p_ptt, NULL, false, buf_size); in qed_dbg_reg_fifo_get_dump_buf_size()
5505 enum dbg_status qed_dbg_reg_fifo_dump(struct qed_hwfn *p_hwfn, in qed_dbg_reg_fifo_dump() argument
5516 status = qed_dbg_reg_fifo_get_dump_buf_size(p_hwfn, in qed_dbg_reg_fifo_dump()
5526 qed_update_blocks_reset_state(p_hwfn, p_ptt); in qed_dbg_reg_fifo_dump()
5528 status = qed_reg_fifo_dump(p_hwfn, in qed_dbg_reg_fifo_dump()
5532 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_reg_fifo_dump()
5537 enum dbg_status qed_dbg_igu_fifo_get_dump_buf_size(struct qed_hwfn *p_hwfn, in qed_dbg_igu_fifo_get_dump_buf_size() argument
5541 enum dbg_status status = qed_dbg_dev_init(p_hwfn); in qed_dbg_igu_fifo_get_dump_buf_size()
5548 return qed_igu_fifo_dump(p_hwfn, p_ptt, NULL, false, buf_size); in qed_dbg_igu_fifo_get_dump_buf_size()
5551 enum dbg_status qed_dbg_igu_fifo_dump(struct qed_hwfn *p_hwfn, in qed_dbg_igu_fifo_dump() argument
5562 status = qed_dbg_igu_fifo_get_dump_buf_size(p_hwfn, in qed_dbg_igu_fifo_dump()
5572 qed_update_blocks_reset_state(p_hwfn, p_ptt); in qed_dbg_igu_fifo_dump()
5574 status = qed_igu_fifo_dump(p_hwfn, in qed_dbg_igu_fifo_dump()
5577 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_igu_fifo_dump()
5583 qed_dbg_protection_override_get_dump_buf_size(struct qed_hwfn *p_hwfn, in qed_dbg_protection_override_get_dump_buf_size() argument
5587 enum dbg_status status = qed_dbg_dev_init(p_hwfn); in qed_dbg_protection_override_get_dump_buf_size()
5594 return qed_protection_override_dump(p_hwfn, in qed_dbg_protection_override_get_dump_buf_size()
5598 enum dbg_status qed_dbg_protection_override_dump(struct qed_hwfn *p_hwfn, in qed_dbg_protection_override_dump() argument
5610 qed_dbg_protection_override_get_dump_buf_size(p_hwfn, in qed_dbg_protection_override_dump()
5620 qed_update_blocks_reset_state(p_hwfn, p_ptt); in qed_dbg_protection_override_dump()
5622 status = qed_protection_override_dump(p_hwfn, in qed_dbg_protection_override_dump()
5628 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_protection_override_dump()
5633 enum dbg_status qed_dbg_fw_asserts_get_dump_buf_size(struct qed_hwfn *p_hwfn, in qed_dbg_fw_asserts_get_dump_buf_size() argument
5637 enum dbg_status status = qed_dbg_dev_init(p_hwfn); in qed_dbg_fw_asserts_get_dump_buf_size()
5645 qed_update_blocks_reset_state(p_hwfn, p_ptt); in qed_dbg_fw_asserts_get_dump_buf_size()
5647 *buf_size = qed_fw_asserts_dump(p_hwfn, p_ptt, NULL, false); in qed_dbg_fw_asserts_get_dump_buf_size()
5652 enum dbg_status qed_dbg_fw_asserts_dump(struct qed_hwfn *p_hwfn, in qed_dbg_fw_asserts_dump() argument
5664 qed_dbg_fw_asserts_get_dump_buf_size(p_hwfn, in qed_dbg_fw_asserts_dump()
5673 *num_dumped_dwords = qed_fw_asserts_dump(p_hwfn, p_ptt, dump_buf, true); in qed_dbg_fw_asserts_dump()
5676 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_fw_asserts_dump()
5681 static enum dbg_status qed_dbg_ilt_get_dump_buf_size(struct qed_hwfn *p_hwfn, in qed_dbg_ilt_get_dump_buf_size() argument
5685 enum dbg_status status = qed_dbg_dev_init(p_hwfn); in qed_dbg_ilt_get_dump_buf_size()
5692 *buf_size = qed_ilt_dump(p_hwfn, p_ptt, NULL, 0, false); in qed_dbg_ilt_get_dump_buf_size()
5697 static enum dbg_status qed_dbg_ilt_dump(struct qed_hwfn *p_hwfn, in qed_dbg_ilt_dump() argument
5703 *num_dumped_dwords = qed_ilt_dump(p_hwfn, in qed_dbg_ilt_dump()
5708 qed_dbg_grc_set_params_default(p_hwfn); in qed_dbg_ilt_dump()
5713 enum dbg_status qed_dbg_read_attn(struct qed_hwfn *p_hwfn, in qed_dbg_read_attn() argument
5720 enum dbg_status status = qed_dbg_dev_init(p_hwfn); in qed_dbg_read_attn()
5727 if (!p_hwfn->dbg_arrays[BIN_BUF_DBG_MODE_TREE].ptr || in qed_dbg_read_attn()
5728 !p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_BLOCKS].ptr || in qed_dbg_read_attn()
5729 !p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_REGS].ptr) in qed_dbg_read_attn()
5732 attn_reg_arr = qed_get_block_attn_regs(p_hwfn, in qed_dbg_read_attn()
5748 if (eval_mode && !qed_is_mode_match(p_hwfn, &modes_buf_offset)) in qed_dbg_read_attn()
5756 sts_val = qed_rd(p_hwfn, p_ptt, sts_addr); in qed_dbg_read_attn()
5769 reg_result->mask_val = qed_rd(p_hwfn, in qed_dbg_read_attn()
5778 qed_get_block_attn_data(p_hwfn, block_id, attn_type)->names_offset; in qed_dbg_read_attn()
6464 static const char *qed_dbg_get_block_name(struct qed_hwfn *p_hwfn, in qed_dbg_get_block_name() argument
6469 p_hwfn->dbg_arrays[BIN_BUF_DBG_BLOCKS_USER_DATA].ptr + block_id; in qed_dbg_get_block_name()
6475 *p_hwfn) in qed_dbg_get_user_data()
6477 return (struct dbg_tools_user_data *)p_hwfn->dbg_user_info; in qed_dbg_get_user_data()
6483 static u32 qed_parse_idle_chk_dump_rules(struct qed_hwfn *p_hwfn, in qed_parse_idle_chk_dump_rules() argument
6513 p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_PARSING_DATA].ptr + in qed_parse_idle_chk_dump_rules()
6522 p_hwfn->dbg_arrays[BIN_BUF_DBG_PARSING_STRINGS].ptr + in qed_parse_idle_chk_dump_rules()
6626 static enum dbg_status qed_parse_idle_chk_dump(struct qed_hwfn *p_hwfn, in qed_parse_idle_chk_dump() argument
6645 if (!p_hwfn->dbg_arrays[BIN_BUF_DBG_PARSING_STRINGS].ptr || in qed_parse_idle_chk_dump()
6646 !p_hwfn->dbg_arrays[BIN_BUF_DBG_IDLE_CHK_PARSING_DATA].ptr) in qed_parse_idle_chk_dump()
6695 qed_parse_idle_chk_dump_rules(p_hwfn, in qed_parse_idle_chk_dump()
6716 qed_parse_idle_chk_dump_rules(p_hwfn, in qed_parse_idle_chk_dump()
6769 qed_mcp_trace_alloc_meta_data(struct qed_hwfn *p_hwfn, in qed_mcp_trace_alloc_meta_data() argument
6777 dev_user_data = qed_dbg_get_user_data(p_hwfn); in qed_mcp_trace_alloc_meta_data()
6783 qed_mcp_trace_free_meta_data(p_hwfn); in qed_mcp_trace_alloc_meta_data()
6865 static enum dbg_status qed_parse_mcp_trace_buf(struct qed_hwfn *p_hwfn, in qed_parse_mcp_trace_buf() argument
6878 dev_user_data = qed_dbg_get_user_data(p_hwfn); in qed_parse_mcp_trace_buf()
6984 static enum dbg_status qed_parse_mcp_trace_dump(struct qed_hwfn *p_hwfn, in qed_parse_mcp_trace_dump() argument
7048 qed_dbg_get_user_data(p_hwfn); in qed_parse_mcp_trace_dump()
7060 status = qed_mcp_trace_alloc_meta_data(p_hwfn, meta_buf); in qed_parse_mcp_trace_dump()
7064 status = qed_parse_mcp_trace_buf(p_hwfn, in qed_parse_mcp_trace_dump()
7077 qed_mcp_trace_free_meta_data(p_hwfn); in qed_parse_mcp_trace_dump()
7519 enum dbg_status qed_dbg_user_set_bin_ptr(struct qed_hwfn *p_hwfn, in qed_dbg_user_set_bin_ptr() argument
7527 qed_set_dbg_bin_buf(p_hwfn, in qed_dbg_user_set_bin_ptr()
7535 enum dbg_status qed_dbg_alloc_user_data(struct qed_hwfn *p_hwfn, in qed_dbg_alloc_user_data() argument
7552 enum dbg_status qed_get_idle_chk_results_buf_size(struct qed_hwfn *p_hwfn, in qed_get_idle_chk_results_buf_size() argument
7559 return qed_parse_idle_chk_dump(p_hwfn, in qed_get_idle_chk_results_buf_size()
7567 enum dbg_status qed_print_idle_chk_results(struct qed_hwfn *p_hwfn, in qed_print_idle_chk_results() argument
7576 return qed_parse_idle_chk_dump(p_hwfn, in qed_print_idle_chk_results()
7584 void qed_dbg_mcp_trace_set_meta_data(struct qed_hwfn *p_hwfn, in qed_dbg_mcp_trace_set_meta_data() argument
7588 qed_dbg_get_user_data(p_hwfn); in qed_dbg_mcp_trace_set_meta_data()
7593 enum dbg_status qed_get_mcp_trace_results_buf_size(struct qed_hwfn *p_hwfn, in qed_get_mcp_trace_results_buf_size() argument
7598 return qed_parse_mcp_trace_dump(p_hwfn, in qed_get_mcp_trace_results_buf_size()
7602 enum dbg_status qed_print_mcp_trace_results(struct qed_hwfn *p_hwfn, in qed_print_mcp_trace_results() argument
7612 return qed_parse_mcp_trace_dump(p_hwfn, in qed_print_mcp_trace_results()
7617 enum dbg_status qed_print_mcp_trace_results_cont(struct qed_hwfn *p_hwfn, in qed_print_mcp_trace_results_cont() argument
7623 return qed_parse_mcp_trace_dump(p_hwfn, dump_buf, results_buf, in qed_print_mcp_trace_results_cont()
7627 enum dbg_status qed_print_mcp_trace_line(struct qed_hwfn *p_hwfn, in qed_print_mcp_trace_line() argument
7634 return qed_parse_mcp_trace_buf(p_hwfn, in qed_print_mcp_trace_line()
7643 void qed_mcp_trace_free_meta_data(struct qed_hwfn *p_hwfn) in qed_mcp_trace_free_meta_data() argument
7649 dev_user_data = qed_dbg_get_user_data(p_hwfn); in qed_mcp_trace_free_meta_data()
7671 enum dbg_status qed_get_reg_fifo_results_buf_size(struct qed_hwfn *p_hwfn, in qed_get_reg_fifo_results_buf_size() argument
7679 enum dbg_status qed_print_reg_fifo_results(struct qed_hwfn *p_hwfn, in qed_print_reg_fifo_results() argument
7689 enum dbg_status qed_get_igu_fifo_results_buf_size(struct qed_hwfn *p_hwfn, in qed_get_igu_fifo_results_buf_size() argument
7697 enum dbg_status qed_print_igu_fifo_results(struct qed_hwfn *p_hwfn, in qed_print_igu_fifo_results() argument
7708 qed_get_protection_override_results_buf_size(struct qed_hwfn *p_hwfn, in qed_get_protection_override_results_buf_size() argument
7717 enum dbg_status qed_print_protection_override_results(struct qed_hwfn *p_hwfn, in qed_print_protection_override_results() argument
7729 enum dbg_status qed_get_fw_asserts_results_buf_size(struct qed_hwfn *p_hwfn, in qed_get_fw_asserts_results_buf_size() argument
7737 enum dbg_status qed_print_fw_asserts_results(struct qed_hwfn *p_hwfn, in qed_print_fw_asserts_results() argument
7748 enum dbg_status qed_dbg_parse_attn(struct qed_hwfn *p_hwfn, in qed_dbg_parse_attn() argument
7759 block_name = qed_dbg_get_block_name(p_hwfn, results->block_id); in qed_dbg_parse_attn()
7763 if (!p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_INDEXES].ptr || in qed_dbg_parse_attn()
7764 !p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_NAME_OFFSETS].ptr || in qed_dbg_parse_attn()
7765 !p_hwfn->dbg_arrays[BIN_BUF_DBG_PARSING_STRINGS].ptr) in qed_dbg_parse_attn()
7769 (u32 *)p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_NAME_OFFSETS].ptr + in qed_dbg_parse_attn()
7772 attn_name_base = p_hwfn->dbg_arrays[BIN_BUF_DBG_PARSING_STRINGS].ptr; in qed_dbg_parse_attn()
7784 p_hwfn->dbg_arrays[BIN_BUF_DBG_ATTN_INDEXES].ptr + in qed_dbg_parse_attn()
7822 DP_NOTICE(p_hwfn, in qed_dbg_parse_attn()
7837 qed_print_idle_chk_results_wrapper(struct qed_hwfn *p_hwfn, in qed_print_idle_chk_results_wrapper() argument
7844 return qed_print_idle_chk_results(p_hwfn, dump_buf, num_dumped_dwords, in qed_print_idle_chk_results_wrapper()
7869 enum dbg_status (*get_size)(struct qed_hwfn *p_hwfn,
7871 enum dbg_status (*perform_dump)(struct qed_hwfn *p_hwfn,
7874 enum dbg_status (*print_results)(struct qed_hwfn *p_hwfn,
7877 enum dbg_status (*results_buf_size)(struct qed_hwfn *p_hwfn,
7937 static enum dbg_status format_feature(struct qed_hwfn *p_hwfn, in format_feature() argument
7941 &p_hwfn->cdev->dbg_features[feature_idx]; in format_feature()
7955 rc = qed_features_lookup[feature_idx].results_buf_size(p_hwfn, in format_feature()
7969 DP_NOTICE(p_hwfn->cdev, in format_feature()
7978 DP_NOTICE(p_hwfn->cdev, in format_feature()
7984 rc = qed_features_lookup[feature_idx].print_results(p_hwfn, in format_feature()
8001 if (p_hwfn->cdev->print_dbg_data) in format_feature()
8005 if (p_hwfn->cdev->dbg_bin_dump) { in format_feature()
8024 static enum dbg_status qed_dbg_dump(struct qed_hwfn *p_hwfn, in qed_dbg_dump() argument
8029 &p_hwfn->cdev->dbg_features[feature_idx]; in qed_dbg_dump()
8033 DP_NOTICE(p_hwfn->cdev, "Collecting a debug feature [\"%s\"]\n", in qed_dbg_dump()
8048 rc = qed_features_lookup[feature_idx].get_size(p_hwfn, p_ptt, in qed_dbg_dump()
8055 DP_NOTICE(p_hwfn->cdev, in qed_dbg_dump()
8070 rc = qed_features_lookup[feature_idx].perform_dump(p_hwfn, p_ptt, in qed_dbg_dump()
8089 rc = format_feature(p_hwfn, feature_idx); in qed_dbg_dump()
8136 static int qed_dbg_nvm_image_length(struct qed_hwfn *p_hwfn, in qed_dbg_nvm_image_length() argument
8143 rc = qed_mcp_get_nvm_image_att(p_hwfn, image_id, &image_att); in qed_dbg_nvm_image_length()
8156 struct qed_hwfn *p_hwfn = in qed_dbg_nvm_image() local
8162 rc = qed_dbg_nvm_image_length(p_hwfn, image_id, &len_rounded); in qed_dbg_nvm_image()
8166 DP_NOTICE(p_hwfn->cdev, in qed_dbg_nvm_image()
8171 rc = qed_mcp_get_nvm_image(p_hwfn, image_id, buffer, len_rounded); in qed_dbg_nvm_image()
8290 struct qed_hwfn *p_hwfn = &cdev->hwfns[cdev->engine_for_debug]; in qed_dbg_all_data() local
8291 struct dbg_tools_data *dev_data = &p_hwfn->dbg_info; in qed_dbg_all_data()
8541 struct qed_hwfn *p_hwfn = &cdev->hwfns[cdev->engine_for_debug]; in qed_dbg_all_data_size() local
8571 qed_dbg_nvm_image_length(p_hwfn, QED_NVM_IMAGE_NVM_CFG1, &image_len); in qed_dbg_all_data_size()
8574 qed_dbg_nvm_image_length(p_hwfn, QED_NVM_IMAGE_DEFAULT_CFG, &image_len); in qed_dbg_all_data_size()
8577 qed_dbg_nvm_image_length(p_hwfn, QED_NVM_IMAGE_NVM_META, &image_len); in qed_dbg_all_data_size()
8580 qed_dbg_nvm_image_length(p_hwfn, QED_NVM_IMAGE_MDUMP, &image_len); in qed_dbg_all_data_size()
8599 struct qed_hwfn *p_hwfn = &cdev->hwfns[cdev->engine_for_debug]; in qed_dbg_feature() local
8605 p_ptt = qed_ptt_acquire(p_hwfn); in qed_dbg_feature()
8610 dbg_rc = qed_dbg_dump(p_hwfn, p_ptt, feature); in qed_dbg_feature()
8626 qed_ptt_release(p_hwfn, p_ptt); in qed_dbg_feature()
8633 struct qed_hwfn *p_hwfn = &cdev->hwfns[cdev->engine_for_debug]; in qed_dbg_feature_size() local
8634 struct qed_ptt *p_ptt = qed_ptt_acquire(p_hwfn); in qed_dbg_feature_size()
8641 rc = qed_features_lookup[feature].get_size(p_hwfn, p_ptt, in qed_dbg_feature_size()
8650 qed_ptt_release(p_hwfn, p_ptt); in qed_dbg_feature_size()