From patchwork Fri May 6 13:33:06 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shiju Jose X-Patchwork-Id: 12841171 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 811B0C433FE for ; Fri, 6 May 2022 13:42:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1441826AbiEFNpq (ORCPT ); Fri, 6 May 2022 09:45:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44366 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1441906AbiEFNpb (ORCPT ); Fri, 6 May 2022 09:45:31 -0400 Received: from frasgout.his.huawei.com (frasgout.his.huawei.com [185.176.79.56]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D09C222BC9 for ; Fri, 6 May 2022 06:41:46 -0700 (PDT) Received: from fraeml710-chm.china.huawei.com (unknown [172.18.147.207]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4Kvs8n0NdLz684Xd; Fri, 6 May 2022 21:38:33 +0800 (CST) Received: from lhreml715-chm.china.huawei.com (10.201.108.66) by fraeml710-chm.china.huawei.com (10.206.15.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 6 May 2022 15:41:45 +0200 Received: from P_UKIT01-A7bmah.china.huawei.com (10.47.73.106) by lhreml715-chm.china.huawei.com (10.201.108.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Fri, 6 May 2022 14:41:44 +0100 From: To: , CC: , , , , , , , Subject: [PATCH 09/10] rasdaemon: ras-mc-ctl: Updated HiSilicon platform name Date: Fri, 6 May 2022 14:33:06 +0100 Message-ID: <20220506133307.1799-10-shiju.jose@huawei.com> X-Mailer: git-send-email 2.26.0.windows.1 In-Reply-To: <20220506133307.1799-1-shiju.jose@huawei.com> References: <20220506133307.1799-1-shiju.jose@huawei.com> MIME-Version: 1.0 X-Originating-IP: [10.47.73.106] X-ClientProxiedBy: lhreml744-chm.china.huawei.com (10.201.108.194) To lhreml715-chm.china.huawei.com (10.201.108.66) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-edac@vger.kernel.org From: Shiju Jose Updated the HiSilicon platform name as KunPeng9xx. Signed-off-by: Shiju Jose --- 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"; }