hikptool/0094-hikptool-pcie-The-PCS-layer-register-print-command-i.patch
zhangyuyang a1e8d45430 hikptool: Add HCCS and SDMA modules along with log collection
The HCCS and SDMA modules and the log collection function are added.

Signed-off-by: zhangyuyang <zhangyuyang31@huawei.com>
(cherry picked from commit 73fe961568c3b5e4406a65a46e926f2f0623d585)
2025-03-18 17:06:56 +08:00

74 lines
3.0 KiB
Diff

From 315bab874c894053be65b47be3ac783dcd1259da Mon Sep 17 00:00:00 2001
From: moubingquan <moubingquan@huawei.com>
Date: Wed, 8 Jan 2025 10:49:19 +0800
Subject: [PATCH 71/81] [hikptool/ pcie]:The PCS-layer register print command
is deleted.
The register print of the PCS layer is deleted.
Currently, the register of this module does
not need to be dumped.
Signed-off-by: moubingquan <moubingquan@huawei.com>
---
pcie/func_lib/pcie_func/pcie_reg_dump.c | 15 ---------------
pcie/func_lib/pcie_func/pcie_reg_dump.h | 10 ----------
2 files changed, 25 deletions(-)
diff --git a/pcie/func_lib/pcie_func/pcie_reg_dump.c b/pcie/func_lib/pcie_func/pcie_reg_dump.c
index ad7cc7f..cb59d2c 100644
--- a/pcie/func_lib/pcie_func/pcie_reg_dump.c
+++ b/pcie/func_lib/pcie_func/pcie_reg_dump.c
@@ -131,20 +131,6 @@ struct pcie_dumpreg_info g_reg_table_mac[] = {
{0, "MAC_POWERDOWN_VALUE_REG"},
};
-struct pcie_dumpreg_info g_reg_table_pcs[] = {
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(SERDES_STATUS_RPT),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(EBUF_STATUS),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(GEN3_DEC_ENC_STATUS),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(WAKE_STATUS),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(RECV_DET_OR_PWR_CHAGE),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(EQEVAL_STATUS),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(LANE_INTR_STATUS),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(M_PCS_RPT_REG),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(MSG_BUS_DFX),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(DETECT_CLK_FLG_REG),
- HIKP_PCIE_PCS_LANE_TBL_ENTRY(SDS_CFG_REG_REG),
-};
-
struct pcie_dumpreg_info g_reg_table_iob_tx[] = {
{0, "IOB_TX_ECAM_CONTROL0"},
{0, "IOB_TX_ECAM_CONTROL1"},
@@ -456,7 +442,6 @@ struct pcie_dumpreg_table g_dump_info_glb[] = {
{HIKP_ARRAY_SIZE(g_reg_table_iob_rx), g_reg_table_iob_rx},
{HIKP_ARRAY_SIZE(g_reg_table_ap_glb), g_reg_table_ap_glb},
{HIKP_ARRAY_SIZE(g_reg_table_core_glb), g_reg_table_core_glb},
- {HIKP_ARRAY_SIZE(g_reg_table_pcs), g_reg_table_pcs},
{HIKP_ARRAY_SIZE(g_reg_table_core_tl), g_reg_table_core_tl},
{HIKP_ARRAY_SIZE(g_reg_table_dfx_core_tl), g_reg_table_dfx_core_tl},
};
diff --git a/pcie/func_lib/pcie_func/pcie_reg_dump.h b/pcie/func_lib/pcie_func/pcie_reg_dump.h
index 3c52a6e..c74ce56 100644
--- a/pcie/func_lib/pcie_func/pcie_reg_dump.h
+++ b/pcie/func_lib/pcie_func/pcie_reg_dump.h
@@ -22,16 +22,6 @@
#define PCIE_DUMPREG_LOGFILE_NAME "pcie_dumpreg"
#define LOG_FILE_PATH_MAX_LEN 512
-#define HIKP_PCIE_PCS_LANE_TBL_ENTRY(name) \
- {0, STR(CONTACT(name, _00))}, {0, STR(CONTACT(name, _01))}, \
- {0, STR(CONTACT(name, _02))}, {0, STR(CONTACT(name, _03))}, \
- {0, STR(CONTACT(name, _04))}, {0, STR(CONTACT(name, _05))}, \
- {0, STR(CONTACT(name, _06))}, {0, STR(CONTACT(name, _07))}, \
- {0, STR(CONTACT(name, _08))}, {0, STR(CONTACT(name, _09))}, \
- {0, STR(CONTACT(name, _10))}, {0, STR(CONTACT(name, _11))}, \
- {0, STR(CONTACT(name, _12))}, {0, STR(CONTACT(name, _13))}, \
- {0, STR(CONTACT(name, _14))}, {0, STR(CONTACT(name, _15))}
-
enum pcie_dump_level {
DUMP_GLOBAL_LEVEL = 1,
DUMP_PORT_LEVEL = 2,
--
2.45.0.windows.1