hikptool/0055-hikptool-augument-serdes-relationship-of-the-PCIe.patch

31 lines
1.1 KiB
Diff
Raw Normal View History

From 51382f799643371ecfbe2e311923e9ebfac436ea Mon Sep 17 00:00:00 2001
From: moubingquan <moubingquan@huawei.com>
Date: Tue, 19 Dec 2023 11:09:35 +0800
Subject: [PATCH] hikptool : augument serdes relationship of the PCIe
The Ndie infomation is missing when different chips are adapted.
Add two Ndie to ensure that die information is properly printed.
Fixes: 1d2a0bb9cddc ("hikptool : Querying the SerDes Relationship of the PCIe")
Signed-off-by: moubingquan <moubingquan@huawei.com>
---
pcie/func_lib/pcie_func/pcie_statistics.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pcie/func_lib/pcie_func/pcie_statistics.c b/pcie/func_lib/pcie_func/pcie_statistics.c
index 5dff720..d2661a4 100644
--- a/pcie/func_lib/pcie_func/pcie_statistics.c
+++ b/pcie/func_lib/pcie_func/pcie_statistics.c
@@ -26,7 +26,7 @@ static const char *g_global_width_name[GLOBAL_WIDTH_TABLE_SIZE] = {
};
static const char *g_global_ndie_name[] = {
- "Ndie_A", "Ndie_B"
+ "Ndie_A", "Ndie_B", "Ndie_C", "Ndie_D"
};
static int port_distribution_rsp_data_check(const struct hikp_cmd_ret *cmd_ret, uint32_t *port_num)
--
2.33.0