hikptool: Add dfx reg of the ECAM for PCIE dump cmd

The DFX register of the ECAM is added when the PCIe dumps registers

Signed-off-by: veega2022 <zhuweijia@huawei.com>
(cherry picked from commit 24ef5e839f9a6cbd324c1c88060be5e0b04ea45b)
This commit is contained in:
veega2022 2024-05-23 23:14:01 +08:00
parent 5ff15d1ced
commit e9b9e6ae98
2 changed files with 49 additions and 1 deletions

View File

@ -0,0 +1,44 @@
From 87b58805e41ccb47c313266e76219d9b0bb5f05e Mon Sep 17 00:00:00 2001
From: moubingquan <moubingquan@huawei.com>
Date: Mon, 20 May 2024 14:13:24 +0800
Subject: [PATCH] hikptool: The ecam register is added to the PCIe dumpreg.
The ecam register is added to facilitate fault locating.
Updated the tool version to 1.1.2.
Signed-off-by: moubingquan <moubingquan@huawei.com>
---
pcie/func_lib/pcie_func/pcie_reg_dump.c | 2 ++
tool_lib/tool_lib.h | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/pcie/func_lib/pcie_func/pcie_reg_dump.c b/pcie/func_lib/pcie_func/pcie_reg_dump.c
index b8c2241..535807c 100644
--- a/pcie/func_lib/pcie_func/pcie_reg_dump.c
+++ b/pcie/func_lib/pcie_func/pcie_reg_dump.c
@@ -144,6 +144,8 @@ struct pcie_dumpreg_info g_reg_table_pcs[] = {
};
struct pcie_dumpreg_info g_reg_table_iob_tx[] = {
+ {0, "IOB_TX_ECAM_CONTROL0"},
+ {0, "IOB_TX_ECAM_CONTROL1"},
{0, "IOB_TX_ECAM_BASE_ADDR_L"},
{0, "IOB_TX_ECAM_BASE_ADDR_H"},
{0, "IOB_TX_CXL_BASE_BUS_0"},
diff --git a/tool_lib/tool_lib.h b/tool_lib/tool_lib.h
index 72a99c6..644a08e 100644
--- a/tool_lib/tool_lib.h
+++ b/tool_lib/tool_lib.h
@@ -18,7 +18,7 @@
#define TOOL_NAME "hikptool"
-#define TOOL_VER "1.1.1"
+#define TOOL_VER "1.1.2"
#define HI_GET_BITFIELD(value, start, mask) (((value) >> (start)) & (mask))
#define HI_SET_FIELD(origin, shift, val) ((origin) |= (val) << (shift))
--
2.45.0.windows.1

View File

@ -3,7 +3,7 @@
Name: hikptool Name: hikptool
Summary: A userspace tool for Linux providing problem location on Kunpeng chips Summary: A userspace tool for Linux providing problem location on Kunpeng chips
Version: 1.0.0 Version: 1.0.0
Release: 14 Release: 15
License: MulanPSL2 License: MulanPSL2
Source: %{name}-%{version}.tar.gz Source: %{name}-%{version}.tar.gz
ExclusiveOS: linux ExclusiveOS: linux
@ -77,6 +77,7 @@ Patch0058: 0058-hikptool-The-nic_port-command-is-adapted-to-display-.patch
Patch0059: 0059-hikptool-fix-cleancode-codecheck-alarm.patch Patch0059: 0059-hikptool-fix-cleancode-codecheck-alarm.patch
Patch0060: 0060-hikptool-Delete-meaningless-printing.patch Patch0060: 0060-hikptool-Delete-meaningless-printing.patch
Patch0061: 0061-hikptool-Update-the-tool-version-number-to-1.1.1.patch Patch0061: 0061-hikptool-Update-the-tool-version-number-to-1.1.1.patch
Patch0062: 0062-hikptool-The-ecam-register-is-added-to-the-PCIe-dump.patch
%description %description
This package contains the hikptool This package contains the hikptool
@ -129,6 +130,9 @@ fi
/sbin/ldconfig /sbin/ldconfig
%changelog %changelog
* Thu May 23 2024 veega2022 <zhuweijia@huawei.com> 1.0.0-15
- Synchronize code, the DFX register of the ECAM is added when the PCIe dumps registers
* Wed Apr 24 2024 veega2022 <zhuweijia@huawei.com> 1.0.0-14 * Wed Apr 24 2024 veega2022 <zhuweijia@huawei.com> 1.0.0-14
- Synchronize code, fix some issues with ROH, PCIE and NIC modules - Synchronize code, fix some issues with ROH, PCIE and NIC modules