Lines Matching refs:hdev
74 static int hclge_dbg_get_dfx_bd_num(struct hclge_dev *hdev, int offset) in hclge_dbg_get_dfx_bd_num() argument
83 ret = hclge_query_bd_num_cmd_send(hdev, desc); in hclge_dbg_get_dfx_bd_num()
85 dev_err(&hdev->pdev->dev, in hclge_dbg_get_dfx_bd_num()
95 static int hclge_dbg_cmd_send(struct hclge_dev *hdev, in hclge_dbg_cmd_send() argument
112 ret = hclge_cmd_send(&hdev->hw, desc_src, bd_num); in hclge_dbg_cmd_send()
114 dev_err(&hdev->pdev->dev, in hclge_dbg_cmd_send()
119 static void hclge_dbg_dump_reg_common(struct hclge_dev *hdev, in hclge_dbg_dump_reg_common() argument
141 bd_num = hclge_dbg_get_dfx_bd_num(hdev, reg_msg->offset); in hclge_dbg_dump_reg_common()
143 dev_err(&hdev->pdev->dev, "get cmd(%d) bd num(%d) failed\n", in hclge_dbg_dump_reg_common()
151 dev_err(&hdev->pdev->dev, "call kzalloc failed\n"); in hclge_dbg_dump_reg_common()
156 ret = hclge_dbg_cmd_send(hdev, desc, index, bd_num, reg_msg->cmd); in hclge_dbg_dump_reg_common()
170 dev_info(&hdev->pdev->dev, "%s: 0x%x\n", in hclge_dbg_dump_reg_common()
180 static void hclge_dbg_dump_dcb(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_dcb() argument
182 struct device *dev = &hdev->pdev->dev; in hclge_dbg_dump_dcb()
193 dev_err(&hdev->pdev->dev, in hclge_dbg_dump_dcb()
198 ret = hclge_dbg_cmd_send(hdev, desc, qset_id, 1, in hclge_dbg_dump_dcb()
209 ret = hclge_dbg_cmd_send(hdev, desc, pri_id, 1, HCLGE_OPC_PRI_DFX_STS); in hclge_dbg_dump_dcb()
218 ret = hclge_dbg_cmd_send(hdev, desc, pg_id, 1, HCLGE_OPC_PG_DFX_STS); in hclge_dbg_dump_dcb()
227 ret = hclge_dbg_cmd_send(hdev, desc, port_id, 1, in hclge_dbg_dump_dcb()
236 ret = hclge_dbg_cmd_send(hdev, desc, nq_id, 1, HCLGE_OPC_SCH_NQ_CNT); in hclge_dbg_dump_dcb()
242 ret = hclge_dbg_cmd_send(hdev, desc, nq_id, 1, HCLGE_OPC_SCH_RQ_CNT); in hclge_dbg_dump_dcb()
248 ret = hclge_dbg_cmd_send(hdev, desc, 0, 2, HCLGE_OPC_TM_INTERNAL_STS); in hclge_dbg_dump_dcb()
260 ret = hclge_dbg_cmd_send(hdev, desc, port_id, 1, in hclge_dbg_dump_dcb()
268 ret = hclge_dbg_cmd_send(hdev, desc, port_id, 1, in hclge_dbg_dump_dcb()
280 static void hclge_dbg_dump_reg_cmd(struct hclge_dev *hdev, const char *cmd_buf) in hclge_dbg_dump_reg_cmd() argument
290 hclge_dbg_dump_reg_common(hdev, reg_info, cmd_buf); in hclge_dbg_dump_reg_cmd()
296 hclge_dbg_dump_dcb(hdev, &cmd_buf[sizeof("dcb")]); in hclge_dbg_dump_reg_cmd()
301 dev_info(&hdev->pdev->dev, "unknown command\n"); in hclge_dbg_dump_reg_cmd()
306 static void hclge_title_idx_print(struct hclge_dev *hdev, bool flag, int index, in hclge_title_idx_print() argument
311 dev_info(&hdev->pdev->dev, "%s(%d): %s\n", title_buf, index, in hclge_title_idx_print()
314 dev_info(&hdev->pdev->dev, "%s(%d): %s\n", title_buf, index, in hclge_title_idx_print()
318 static void hclge_dbg_dump_tc(struct hclge_dev *hdev) in hclge_dbg_dump_tc() argument
324 if (!hnae3_dev_dcb_supported(hdev)) { in hclge_dbg_dump_tc()
325 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_tc()
332 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tc()
334 dev_err(&hdev->pdev->dev, "dump tc fail, ret = %d\n", ret); in hclge_dbg_dump_tc()
340 dev_info(&hdev->pdev->dev, "dump tc\n"); in hclge_dbg_dump_tc()
341 dev_info(&hdev->pdev->dev, "weight_offset: %u\n", in hclge_dbg_dump_tc()
345 hclge_title_idx_print(hdev, ets_weight->tc_weight[i], i, in hclge_dbg_dump_tc()
349 static void hclge_dbg_dump_tm_pg(struct hclge_dev *hdev) in hclge_dbg_dump_tm_pg() argument
360 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_pg()
365 dev_info(&hdev->pdev->dev, "PG_C pg_id: %u\n", pg_shap_cfg_cmd->pg_id); in hclge_dbg_dump_tm_pg()
366 dev_info(&hdev->pdev->dev, "PG_C pg_shapping: 0x%x\n", in hclge_dbg_dump_tm_pg()
371 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_pg()
376 dev_info(&hdev->pdev->dev, "PG_P pg_id: %u\n", pg_shap_cfg_cmd->pg_id); in hclge_dbg_dump_tm_pg()
377 dev_info(&hdev->pdev->dev, "PG_P pg_shapping: 0x%x\n", in hclge_dbg_dump_tm_pg()
382 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_pg()
387 dev_info(&hdev->pdev->dev, "PORT port_shapping: 0x%x\n", in hclge_dbg_dump_tm_pg()
392 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_pg()
396 dev_info(&hdev->pdev->dev, "PG_SCH pg_id: %u\n", desc.data[0]); in hclge_dbg_dump_tm_pg()
400 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_pg()
404 dev_info(&hdev->pdev->dev, "PRI_SCH pri_id: %u\n", desc.data[0]); in hclge_dbg_dump_tm_pg()
408 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_pg()
412 dev_info(&hdev->pdev->dev, "QS_SCH qs_id: %u\n", desc.data[0]); in hclge_dbg_dump_tm_pg()
414 if (!hnae3_dev_dcb_supported(hdev)) { in hclge_dbg_dump_tm_pg()
415 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_tm_pg()
422 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_pg()
427 dev_info(&hdev->pdev->dev, "BP_TO_QSET tc_id: %u\n", in hclge_dbg_dump_tm_pg()
429 dev_info(&hdev->pdev->dev, "BP_TO_QSET qs_group_id: 0x%x\n", in hclge_dbg_dump_tm_pg()
431 dev_info(&hdev->pdev->dev, "BP_TO_QSET qs_bit_map: 0x%x\n", in hclge_dbg_dump_tm_pg()
436 dev_err(&hdev->pdev->dev, "dump tm_pg fail(0x%x), ret = %d\n", in hclge_dbg_dump_tm_pg()
440 static void hclge_dbg_dump_tm(struct hclge_dev *hdev) in hclge_dbg_dump_tm() argument
455 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm()
460 dev_info(&hdev->pdev->dev, "dump tm\n"); in hclge_dbg_dump_tm()
461 dev_info(&hdev->pdev->dev, "PG_TO_PRI gp_id: %u\n", in hclge_dbg_dump_tm()
463 dev_info(&hdev->pdev->dev, "PG_TO_PRI map: 0x%x\n", in hclge_dbg_dump_tm()
468 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm()
473 dev_info(&hdev->pdev->dev, "QS_TO_PRI qs_id: %u\n", in hclge_dbg_dump_tm()
475 dev_info(&hdev->pdev->dev, "QS_TO_PRI priority: %u\n", in hclge_dbg_dump_tm()
477 dev_info(&hdev->pdev->dev, "QS_TO_PRI link_vld: %u\n", in hclge_dbg_dump_tm()
482 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm()
487 dev_info(&hdev->pdev->dev, "NQ_TO_QS nq_id: %u\n", nq_to_qs_map->nq_id); in hclge_dbg_dump_tm()
488 dev_info(&hdev->pdev->dev, "NQ_TO_QS qset_id: 0x%x\n", in hclge_dbg_dump_tm()
493 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm()
498 dev_info(&hdev->pdev->dev, "PG pg_id: %u\n", pg_weight->pg_id); in hclge_dbg_dump_tm()
499 dev_info(&hdev->pdev->dev, "PG dwrr: %u\n", pg_weight->dwrr); in hclge_dbg_dump_tm()
503 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm()
508 dev_info(&hdev->pdev->dev, "QS qs_id: %u\n", qs_weight->qs_id); in hclge_dbg_dump_tm()
509 dev_info(&hdev->pdev->dev, "QS dwrr: %u\n", qs_weight->dwrr); in hclge_dbg_dump_tm()
513 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm()
518 dev_info(&hdev->pdev->dev, "PRI pri_id: %u\n", priority_weight->pri_id); in hclge_dbg_dump_tm()
519 dev_info(&hdev->pdev->dev, "PRI dwrr: %u\n", priority_weight->dwrr); in hclge_dbg_dump_tm()
523 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm()
528 dev_info(&hdev->pdev->dev, "PRI_C pri_id: %u\n", shap_cfg_cmd->pri_id); in hclge_dbg_dump_tm()
529 dev_info(&hdev->pdev->dev, "PRI_C pri_shapping: 0x%x\n", in hclge_dbg_dump_tm()
534 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm()
539 dev_info(&hdev->pdev->dev, "PRI_P pri_id: %u\n", shap_cfg_cmd->pri_id); in hclge_dbg_dump_tm()
540 dev_info(&hdev->pdev->dev, "PRI_P pri_shapping: 0x%x\n", in hclge_dbg_dump_tm()
543 hclge_dbg_dump_tm_pg(hdev); in hclge_dbg_dump_tm()
548 dev_err(&hdev->pdev->dev, "dump tm fail(0x%x), ret = %d\n", in hclge_dbg_dump_tm()
552 static void hclge_dbg_dump_tm_map(struct hclge_dev *hdev, in hclge_dbg_dump_tm_map() argument
574 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_map()
583 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_map()
592 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_map()
597 dev_info(&hdev->pdev->dev, "queue_id | qset_id | pri_id | tc_id\n"); in hclge_dbg_dump_tm_map()
598 dev_info(&hdev->pdev->dev, "%04d | %04d | %02d | %02d\n", in hclge_dbg_dump_tm_map()
601 if (!hnae3_dev_dcb_supported(hdev)) { in hclge_dbg_dump_tm_map()
602 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_tm_map()
613 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_tm_map()
620 dev_info(&hdev->pdev->dev, "index | tm bp qset maping:\n"); in hclge_dbg_dump_tm_map()
624 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_tm_map()
637 dev_err(&hdev->pdev->dev, "dump tqp map fail(0x%x), ret = %d\n", in hclge_dbg_dump_tm_map()
641 static void hclge_dbg_dump_qos_pause_cfg(struct hclge_dev *hdev) in hclge_dbg_dump_qos_pause_cfg() argument
649 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_qos_pause_cfg()
651 dev_err(&hdev->pdev->dev, "dump checksum fail, ret = %d\n", in hclge_dbg_dump_qos_pause_cfg()
657 dev_info(&hdev->pdev->dev, "dump qos pause cfg\n"); in hclge_dbg_dump_qos_pause_cfg()
658 dev_info(&hdev->pdev->dev, "pause_trans_gap: 0x%x\n", in hclge_dbg_dump_qos_pause_cfg()
660 dev_info(&hdev->pdev->dev, "pause_trans_time: 0x%x\n", in hclge_dbg_dump_qos_pause_cfg()
664 static void hclge_dbg_dump_qos_pri_map(struct hclge_dev *hdev) in hclge_dbg_dump_qos_pri_map() argument
672 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_qos_pri_map()
674 dev_err(&hdev->pdev->dev, in hclge_dbg_dump_qos_pri_map()
680 dev_info(&hdev->pdev->dev, "dump qos pri map\n"); in hclge_dbg_dump_qos_pri_map()
681 dev_info(&hdev->pdev->dev, "vlan_to_pri: 0x%x\n", pri_map->vlan_pri); in hclge_dbg_dump_qos_pri_map()
682 dev_info(&hdev->pdev->dev, "pri_0_to_tc: 0x%x\n", pri_map->pri0_tc); in hclge_dbg_dump_qos_pri_map()
683 dev_info(&hdev->pdev->dev, "pri_1_to_tc: 0x%x\n", pri_map->pri1_tc); in hclge_dbg_dump_qos_pri_map()
684 dev_info(&hdev->pdev->dev, "pri_2_to_tc: 0x%x\n", pri_map->pri2_tc); in hclge_dbg_dump_qos_pri_map()
685 dev_info(&hdev->pdev->dev, "pri_3_to_tc: 0x%x\n", pri_map->pri3_tc); in hclge_dbg_dump_qos_pri_map()
686 dev_info(&hdev->pdev->dev, "pri_4_to_tc: 0x%x\n", pri_map->pri4_tc); in hclge_dbg_dump_qos_pri_map()
687 dev_info(&hdev->pdev->dev, "pri_5_to_tc: 0x%x\n", pri_map->pri5_tc); in hclge_dbg_dump_qos_pri_map()
688 dev_info(&hdev->pdev->dev, "pri_6_to_tc: 0x%x\n", pri_map->pri6_tc); in hclge_dbg_dump_qos_pri_map()
689 dev_info(&hdev->pdev->dev, "pri_7_to_tc: 0x%x\n", pri_map->pri7_tc); in hclge_dbg_dump_qos_pri_map()
692 static void hclge_dbg_dump_qos_buf_cfg(struct hclge_dev *hdev) in hclge_dbg_dump_qos_buf_cfg() argument
706 ret = hclge_cmd_send(&hdev->hw, desc, 1); in hclge_dbg_dump_qos_buf_cfg()
710 dev_info(&hdev->pdev->dev, "dump qos buf cfg\n"); in hclge_dbg_dump_qos_buf_cfg()
714 dev_info(&hdev->pdev->dev, "tx_packet_buf_tc_%d: 0x%x\n", i, in hclge_dbg_dump_qos_buf_cfg()
719 ret = hclge_cmd_send(&hdev->hw, desc, 1); in hclge_dbg_dump_qos_buf_cfg()
723 dev_info(&hdev->pdev->dev, "\n"); in hclge_dbg_dump_qos_buf_cfg()
726 dev_info(&hdev->pdev->dev, "rx_packet_buf_tc_%d: 0x%x\n", i, in hclge_dbg_dump_qos_buf_cfg()
729 dev_info(&hdev->pdev->dev, "rx_share_buf: 0x%x\n", in hclge_dbg_dump_qos_buf_cfg()
734 ret = hclge_cmd_send(&hdev->hw, desc, 1); in hclge_dbg_dump_qos_buf_cfg()
739 dev_info(&hdev->pdev->dev, "\n"); in hclge_dbg_dump_qos_buf_cfg()
740 dev_info(&hdev->pdev->dev, "rx_com_wl: high: 0x%x, low: 0x%x\n", in hclge_dbg_dump_qos_buf_cfg()
745 ret = hclge_cmd_send(&hdev->hw, desc, 1); in hclge_dbg_dump_qos_buf_cfg()
750 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_qos_buf_cfg()
753 dev_info(&hdev->pdev->dev, "\n"); in hclge_dbg_dump_qos_buf_cfg()
755 if (!hnae3_dev_dcb_supported(hdev)) { in hclge_dbg_dump_qos_buf_cfg()
756 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_qos_buf_cfg()
764 ret = hclge_cmd_send(&hdev->hw, desc, 2); in hclge_dbg_dump_qos_buf_cfg()
770 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_qos_buf_cfg()
776 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_qos_buf_cfg()
785 ret = hclge_cmd_send(&hdev->hw, desc, 2); in hclge_dbg_dump_qos_buf_cfg()
789 dev_info(&hdev->pdev->dev, "\n"); in hclge_dbg_dump_qos_buf_cfg()
792 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_qos_buf_cfg()
799 dev_info(&hdev->pdev->dev, in hclge_dbg_dump_qos_buf_cfg()
807 dev_err(&hdev->pdev->dev, in hclge_dbg_dump_qos_buf_cfg()
811 static void hclge_dbg_dump_mng_table(struct hclge_dev *hdev) in hclge_dbg_dump_mng_table() argument
818 dev_info(&hdev->pdev->dev, "mng tab:\n"); in hclge_dbg_dump_mng_table()
827 dev_info(&hdev->pdev->dev, "%s", printf_buf); in hclge_dbg_dump_mng_table()
835 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_dump_mng_table()
837 dev_err(&hdev->pdev->dev, in hclge_dbg_dump_mng_table()
871 dev_info(&hdev->pdev->dev, "%s", printf_buf); in hclge_dbg_dump_mng_table()
875 static void hclge_dbg_fd_tcam_read(struct hclge_dev *hdev, u8 stage, in hclge_dbg_fd_tcam_read() argument
899 ret = hclge_cmd_send(&hdev->hw, desc, 3); in hclge_dbg_fd_tcam_read()
903 dev_info(&hdev->pdev->dev, " read result tcam key %s(%u):\n", in hclge_dbg_fd_tcam_read()
909 dev_info(&hdev->pdev->dev, "%08x\n", *req++); in hclge_dbg_fd_tcam_read()
914 dev_info(&hdev->pdev->dev, "%08x\n", *req++); in hclge_dbg_fd_tcam_read()
919 dev_info(&hdev->pdev->dev, "%08x\n", *req++); in hclge_dbg_fd_tcam_read()
922 static void hclge_dbg_fd_tcam(struct hclge_dev *hdev) in hclge_dbg_fd_tcam() argument
926 for (i = 0; i < hdev->fd_cfg.rule_num[0]; i++) { in hclge_dbg_fd_tcam()
927 hclge_dbg_fd_tcam_read(hdev, 0, true, i); in hclge_dbg_fd_tcam()
928 hclge_dbg_fd_tcam_read(hdev, 0, false, i); in hclge_dbg_fd_tcam()
932 static void hclge_dbg_dump_rst_info(struct hclge_dev *hdev) in hclge_dbg_dump_rst_info() argument
934 dev_info(&hdev->pdev->dev, "PF reset count: %u\n", in hclge_dbg_dump_rst_info()
935 hdev->rst_stats.pf_rst_cnt); in hclge_dbg_dump_rst_info()
936 dev_info(&hdev->pdev->dev, "FLR reset count: %u\n", in hclge_dbg_dump_rst_info()
937 hdev->rst_stats.flr_rst_cnt); in hclge_dbg_dump_rst_info()
938 dev_info(&hdev->pdev->dev, "GLOBAL reset count: %u\n", in hclge_dbg_dump_rst_info()
939 hdev->rst_stats.global_rst_cnt); in hclge_dbg_dump_rst_info()
940 dev_info(&hdev->pdev->dev, "IMP reset count: %u\n", in hclge_dbg_dump_rst_info()
941 hdev->rst_stats.imp_rst_cnt); in hclge_dbg_dump_rst_info()
942 dev_info(&hdev->pdev->dev, "reset done count: %u\n", in hclge_dbg_dump_rst_info()
943 hdev->rst_stats.reset_done_cnt); in hclge_dbg_dump_rst_info()
944 dev_info(&hdev->pdev->dev, "HW reset done count: %u\n", in hclge_dbg_dump_rst_info()
945 hdev->rst_stats.hw_reset_done_cnt); in hclge_dbg_dump_rst_info()
946 dev_info(&hdev->pdev->dev, "reset count: %u\n", in hclge_dbg_dump_rst_info()
947 hdev->rst_stats.reset_cnt); in hclge_dbg_dump_rst_info()
948 dev_info(&hdev->pdev->dev, "reset count: %u\n", in hclge_dbg_dump_rst_info()
949 hdev->rst_stats.reset_cnt); in hclge_dbg_dump_rst_info()
950 dev_info(&hdev->pdev->dev, "reset fail count: %u\n", in hclge_dbg_dump_rst_info()
951 hdev->rst_stats.reset_fail_cnt); in hclge_dbg_dump_rst_info()
952 dev_info(&hdev->pdev->dev, "vector0 interrupt enable status: 0x%x\n", in hclge_dbg_dump_rst_info()
953 hclge_read_dev(&hdev->hw, HCLGE_MISC_VECTOR_REG_BASE)); in hclge_dbg_dump_rst_info()
954 dev_info(&hdev->pdev->dev, "reset interrupt source: 0x%x\n", in hclge_dbg_dump_rst_info()
955 hclge_read_dev(&hdev->hw, HCLGE_MISC_RESET_STS_REG)); in hclge_dbg_dump_rst_info()
956 dev_info(&hdev->pdev->dev, "reset interrupt status: 0x%x\n", in hclge_dbg_dump_rst_info()
957 hclge_read_dev(&hdev->hw, HCLGE_MISC_VECTOR_INT_STS)); in hclge_dbg_dump_rst_info()
958 dev_info(&hdev->pdev->dev, "hardware reset status: 0x%x\n", in hclge_dbg_dump_rst_info()
959 hclge_read_dev(&hdev->hw, HCLGE_GLOBAL_RESET_REG)); in hclge_dbg_dump_rst_info()
960 dev_info(&hdev->pdev->dev, "handshake status: 0x%x\n", in hclge_dbg_dump_rst_info()
961 hclge_read_dev(&hdev->hw, HCLGE_NIC_CSQ_DEPTH_REG)); in hclge_dbg_dump_rst_info()
962 dev_info(&hdev->pdev->dev, "function reset status: 0x%x\n", in hclge_dbg_dump_rst_info()
963 hclge_read_dev(&hdev->hw, HCLGE_FUN_RST_ING)); in hclge_dbg_dump_rst_info()
966 static void hclge_dbg_get_m7_stats_info(struct hclge_dev *hdev) in hclge_dbg_get_m7_stats_info() argument
977 ret = hclge_cmd_send(&hdev->hw, &desc, 1); in hclge_dbg_get_m7_stats_info()
979 dev_err(&hdev->pdev->dev, in hclge_dbg_get_m7_stats_info()
990 dev_err(&hdev->pdev->dev, in hclge_dbg_get_m7_stats_info()
996 ret = hclge_dbg_cmd_send(hdev, desc_tmp, 0, bd_num, in hclge_dbg_get_m7_stats_info()
1000 dev_err(&hdev->pdev->dev, in hclge_dbg_get_m7_stats_info()
1006 dev_info(&hdev->pdev->dev, "0x%08x 0x%08x 0x%08x\n", in hclge_dbg_get_m7_stats_info()
1010 dev_info(&hdev->pdev->dev, "0x%08x 0x%08x 0x%08x\n", in hclge_dbg_get_m7_stats_info()
1023 static void hclge_ncl_config_data_print(struct hclge_dev *hdev, in hclge_ncl_config_data_print() argument
1037 dev_info(&hdev->pdev->dev, "0x%04x | 0x%08x\n", in hclge_ncl_config_data_print()
1052 static void hclge_dbg_dump_ncl_config(struct hclge_dev *hdev, in hclge_dbg_dump_ncl_config() argument
1068 dev_err(&hdev->pdev->dev, "Invalid offset or length.\n"); in hclge_dbg_dump_ncl_config()
1072 dev_err(&hdev->pdev->dev, "Non-positive offset or length.\n"); in hclge_dbg_dump_ncl_config()
1076 dev_info(&hdev->pdev->dev, "offset | data\n"); in hclge_dbg_dump_ncl_config()
1084 ret = hclge_dbg_cmd_send(hdev, desc, data0, bd_num, in hclge_dbg_dump_ncl_config()
1089 hclge_ncl_config_data_print(hdev, desc, &offset, &length); in hclge_dbg_dump_ncl_config()
1096 static void hclge_dbg_dump_mac_tnl_status(struct hclge_dev *hdev) in hclge_dbg_dump_mac_tnl_status() argument
1103 dev_info(&hdev->pdev->dev, "Recently generated mac tnl interruption:\n"); in hclge_dbg_dump_mac_tnl_status()
1105 while (kfifo_get(&hdev->mac_tnl_log, &stats)) { in hclge_dbg_dump_mac_tnl_status()
1107 dev_info(&hdev->pdev->dev, "[%07lu.%03lu] status = 0x%x\n", in hclge_dbg_dump_mac_tnl_status()
1119 struct hclge_dev *hdev = vport->back; in hclge_dbg_run_cmd() local
1122 hclge_dbg_fd_tcam(hdev); in hclge_dbg_run_cmd()
1124 hclge_dbg_dump_tc(hdev); in hclge_dbg_run_cmd()
1126 hclge_dbg_dump_tm_map(hdev, &cmd_buf[sizeof(DUMP_TM_MAP)]); in hclge_dbg_run_cmd()
1128 hclge_dbg_dump_tm(hdev); in hclge_dbg_run_cmd()
1130 hclge_dbg_dump_qos_pause_cfg(hdev); in hclge_dbg_run_cmd()
1132 hclge_dbg_dump_qos_pri_map(hdev); in hclge_dbg_run_cmd()
1134 hclge_dbg_dump_qos_buf_cfg(hdev); in hclge_dbg_run_cmd()
1136 hclge_dbg_dump_mng_table(hdev); in hclge_dbg_run_cmd()
1138 hclge_dbg_dump_reg_cmd(hdev, &cmd_buf[sizeof(DUMP_REG)]); in hclge_dbg_run_cmd()
1140 hclge_dbg_dump_rst_info(hdev); in hclge_dbg_run_cmd()
1142 hclge_dbg_get_m7_stats_info(hdev); in hclge_dbg_run_cmd()
1144 hclge_dbg_dump_ncl_config(hdev, in hclge_dbg_run_cmd()
1147 hclge_dbg_dump_mac_tnl_status(hdev); in hclge_dbg_run_cmd()
1149 dev_info(&hdev->pdev->dev, "unknown command\n"); in hclge_dbg_run_cmd()