Update with the latest patches for the 1. CPU online fault isolation for arm event. 2. Modify recording Hisilicon common error data in the rasdaemon 3. In the ras-mc-ctl, 3.1. Improve Hisilicon common error statistics. 3.2. Add support to display the HiSilicon vendor-errors for a specified module. 3.3. Add printing usage if necessary parameters are not passed for the HiSilicon vendor-errors options. 3.4. Reformat error info of the HiSilicon Kunpeng920. 3.5. Relocate reading and display Kunpeng920 errors to under Kunpeng9xx. 3.6. Updated the HiSilicon platform name as KunPeng9xx. 4. Fixed a memory out-of-bounds issue in the rasdaemon. Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
57 lines
2.5 KiB
Diff
57 lines
2.5 KiB
Diff
From f5c3c03039be28bb6b5bbe00e12e9586b19a1060 Mon Sep 17 00:00:00 2001
|
|
From: Shiju Jose <shiju.jose@huawei.com>
|
|
Date: Sat, 5 Mar 2022 16:18:55 +0000
|
|
Subject: [PATCH 05/10] rasdaemon: ras-mc-ctl: Reformat error info of the
|
|
HiSilicon Kunpeng920
|
|
|
|
Reformat the code to display the error info of HiSilicon Kunpeng920.
|
|
|
|
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
|
|
---
|
|
util/ras-mc-ctl.in | 15 +++++++++------
|
|
1 file changed, 9 insertions(+), 6 deletions(-)
|
|
|
|
diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
|
|
index 08eb287..8755b6f 100755
|
|
--- a/util/ras-mc-ctl.in
|
|
+++ b/util/ras-mc-ctl.in
|
|
@@ -1671,8 +1671,9 @@ sub vendor_errors
|
|
$out .= "nimbus_id=$nimbus_id, " if ($nimbus_id);
|
|
$out .= "module_id=$module_id, " if ($module_id);
|
|
$out .= "sub_module_id=$sub_module_id, " if ($sub_module_id);
|
|
- $out .= "err_severity=$err_severity, \n" if ($err_severity);
|
|
- $out .= "Error Registers: $regs\n\n" if ($regs);
|
|
+ $out .= "err_severity=$err_severity, " if ($err_severity);
|
|
+ $out .= "Error Registers: $regs " if ($regs);
|
|
+ $out .= "\n\n";
|
|
}
|
|
if ($out ne "") {
|
|
print "HiSilicon Kunpeng920 OEM type1 error events:\n$out\n";
|
|
@@ -1694,8 +1695,9 @@ sub vendor_errors
|
|
$out .= "nimbus_id=$nimbus_id, " if ($nimbus_id);
|
|
$out .= "module_id=$module_id, " if ($module_id);
|
|
$out .= "sub_module_id=$sub_module_id, " if ($sub_module_id);
|
|
- $out .= "err_severity=$err_severity, \n" if ($err_severity);
|
|
- $out .= "Error Registers: $regs\n\n" if ($regs);
|
|
+ $out .= "err_severity=$err_severity, " if ($err_severity);
|
|
+ $out .= "Error Registers: $regs " if ($regs);
|
|
+ $out .= "\n\n";
|
|
}
|
|
if ($out ne "") {
|
|
print "HiSilicon Kunpeng920 OEM type2 error events:\n$out\n";
|
|
@@ -1719,8 +1721,9 @@ sub vendor_errors
|
|
$out .= "core_id=$core_id, " if ($core_id);
|
|
$out .= "port_id=$port_id, " if ($port_id);
|
|
$out .= "err_severity=$err_severity, " if ($err_severity);
|
|
- $out .= "err_type=$err_type, \n" if ($err_type);
|
|
- $out .= "Error Registers: $regs\n\n" if ($regs);
|
|
+ $out .= "err_type=$err_type, " if ($err_type);
|
|
+ $out .= "Error Registers: $regs " if ($regs);
|
|
+ $out .= "\n\n";
|
|
}
|
|
if ($out ne "") {
|
|
print "HiSilicon Kunpeng920 PCIe controller error events:\n$out\n";
|
|
--
|
|
2.25.1
|
|
|