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>
128 lines
4.4 KiB
Diff
128 lines
4.4 KiB
Diff
From df6011fed2bb45989f9e5c2ea30b33937b08d06c Mon Sep 17 00:00:00 2001
|
|
From: Shiju Jose <shiju.jose@huawei.com>
|
|
Date: Thu, 28 Apr 2022 18:58:43 +0100
|
|
Subject: [PATCH 09/10] rasdaemon: ras-mc-ctl: Updated HiSilicon platform name
|
|
|
|
Updated the HiSilicon platform name as KunPeng9xx.
|
|
|
|
Signed-off-by: Shiju Jose <shiju.jose@huawei.com>
|
|
---
|
|
util/ras-mc-ctl.in | 24 ++++++++++++------------
|
|
1 file changed, 12 insertions(+), 12 deletions(-)
|
|
|
|
diff --git a/util/ras-mc-ctl.in b/util/ras-mc-ctl.in
|
|
index 75981a0..1cc19b3 100755
|
|
--- a/util/ras-mc-ctl.in
|
|
+++ b/util/ras-mc-ctl.in
|
|
@@ -1529,7 +1529,7 @@ sub errors
|
|
|
|
# Definitions of the vendor platform IDs.
|
|
use constant {
|
|
- HISILICON_KUNPENG_9XX => "Kunpeng9xx",
|
|
+ HISILICON_KUNPENG_9XX => "KunPeng9xx",
|
|
};
|
|
|
|
sub vendor_errors_summary
|
|
@@ -1552,7 +1552,7 @@ sub vendor_errors_summary
|
|
|
|
my $dbh = DBI->connect("dbi:SQLite:dbname=$dbname", "", "", {});
|
|
|
|
- # HiSilicon Kunpeng9xx errors
|
|
+ # HiSilicon KunPeng9xx errors
|
|
if ($platform_id eq HISILICON_KUNPENG_9XX) {
|
|
$found_platform = 1;
|
|
$query = "select err_severity, module_id, count(*) from hip08_oem_type1_event_v2 group by err_severity, module_id";
|
|
@@ -1569,7 +1569,7 @@ sub vendor_errors_summary
|
|
$out .= "\t$module_id: $count\n";
|
|
}
|
|
if ($out ne "") {
|
|
- print "HiSilicon Kunpeng9xx OEM type1 error events summary:\n$out\n";
|
|
+ print "HiSilicon KunPeng9xx OEM type1 error events summary:\n$out\n";
|
|
}
|
|
$query_handle->finish;
|
|
|
|
@@ -1587,7 +1587,7 @@ sub vendor_errors_summary
|
|
$out .= "\t$module_id: $count\n";
|
|
}
|
|
if ($out ne "") {
|
|
- print "HiSilicon Kunpeng9xx OEM type2 error events summary:\n$out\n";
|
|
+ print "HiSilicon KunPeng9xx OEM type2 error events summary:\n$out\n";
|
|
}
|
|
$query_handle->finish;
|
|
|
|
@@ -1605,7 +1605,7 @@ sub vendor_errors_summary
|
|
$out .= "\t$sub_module_id: $count\n";
|
|
}
|
|
if ($out ne "") {
|
|
- print "HiSilicon Kunpeng9xx PCIe controller error events summary:\n$out\n";
|
|
+ print "HiSilicon KunPeng9xx PCIe controller error events summary:\n$out\n";
|
|
}
|
|
$query_handle->finish;
|
|
|
|
@@ -1623,7 +1623,7 @@ sub vendor_errors_summary
|
|
$out .= "\t$module_id: $count\n";
|
|
}
|
|
if ($out ne "") {
|
|
- print "HiSilicon Kunpeng9xx common error events summary:\n$out\n";
|
|
+ print "HiSilicon KunPeng9xx common error events summary:\n$out\n";
|
|
}
|
|
$query_handle->finish;
|
|
}
|
|
@@ -1660,7 +1660,7 @@ sub vendor_errors
|
|
|
|
my $dbh = DBI->connect("dbi:SQLite:dbname=$dbname", "", "", {});
|
|
|
|
- # HiSilicon Kunpeng9xx errors
|
|
+ # HiSilicon KunPeng9xx errors
|
|
if ($platform_id eq HISILICON_KUNPENG_9XX) {
|
|
$found_platform = 1;
|
|
$query = "select id, timestamp, version, soc_id, socket_id, nimbus_id, module_id, sub_module_id, err_severity, regs_dump from hip08_oem_type1_event_v2 order by id, module_id, err_severity";
|
|
@@ -1684,7 +1684,7 @@ sub vendor_errors
|
|
}
|
|
}
|
|
if ($out ne "") {
|
|
- print "HiSilicon Kunpeng9xx OEM type1 error events:\n$out\n";
|
|
+ print "HiSilicon KunPeng9xx OEM type1 error events:\n$out\n";
|
|
}
|
|
$query_handle->finish;
|
|
|
|
@@ -1709,7 +1709,7 @@ sub vendor_errors
|
|
}
|
|
}
|
|
if ($out ne "") {
|
|
- print "HiSilicon Kunpeng9xx OEM type2 error events:\n$out\n";
|
|
+ print "HiSilicon KunPeng9xx OEM type2 error events:\n$out\n";
|
|
}
|
|
$query_handle->finish;
|
|
|
|
@@ -1736,7 +1736,7 @@ sub vendor_errors
|
|
}
|
|
}
|
|
if ($out ne "") {
|
|
- print "HiSilicon Kunpeng9xx PCIe controller error events:\n$out\n";
|
|
+ print "HiSilicon KunPeng9xx PCIe controller error events:\n$out\n";
|
|
}
|
|
$query_handle->finish;
|
|
|
|
@@ -1767,7 +1767,7 @@ sub vendor_errors
|
|
}
|
|
}
|
|
if ($out ne "") {
|
|
- print "HiSilicon Kunpeng9xx common error events:\n$out\n";
|
|
+ print "HiSilicon KunPeng9xx common error events:\n$out\n";
|
|
}
|
|
$query_handle->finish;
|
|
}
|
|
@@ -1784,7 +1784,7 @@ sub vendor_errors
|
|
sub vendor_platforms
|
|
{
|
|
print "\nSupported platforms for the vendor-specific errors:\n";
|
|
- print "\tHiSilicon Kunpeng9xx, platform-id=\"", HISILICON_KUNPENG_9XX, "\"\n";
|
|
+ print "\tHiSilicon KunPeng9xx, platform-id=\"", HISILICON_KUNPENG_9XX, "\"\n";
|
|
print "\n";
|
|
}
|
|
|
|
--
|
|
2.25.1
|
|
|