Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp573428rwb; Thu, 6 Oct 2022 01:06:17 -0700 (PDT) X-Google-Smtp-Source: AMsMyM64cAsSM7wNOFz35pgNwq13ujAFyAdqALeGxTGT5SLiHAfiqhgWAwZV9d4dgMFW4UWGsnAQ X-Received: by 2002:a17:902:9a49:b0:17a:6662:9334 with SMTP id x9-20020a1709029a4900b0017a66629334mr3339342plv.63.1665043576834; Thu, 06 Oct 2022 01:06:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665043576; cv=pass; d=google.com; s=arc-20160816; b=KjHngEm7NyeVHRs+xXOTT6WOdK0u2gGDJOWX7JwHGzDnYCpX7SDczqWY7ZtQsUw9Rb vBjgS+4hDQ5uy8MxGwgiJIOw80FLs5D73IzRJwxwaUcB9ot+cq5LR1sPvCvQ6DyvCfZc LTHufWzUZzzuJDlGjwNEw18RHXwyvglMC++d4SArOKYxZlKPyDeHD9mfFhpkfEKJ5lJ3 y69RuSUoj6ADq329eBVI3Gh98Ux7oVnTEu0m9Q7/afJLoIUncLFH+GNj4m0MwlIrnYDb lslorjOSCVLTp4QDVcEGX5/0WgZZ6j/3U+UeoZE4Ql5IpioPSU0GcaQ8/6DxithWUmee 6L2Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:references:cc:to:content-language:subject :user-agent:date:message-id:dkim-signature; bh=QNoKZzHPb1JsMrM91AocBdQ0jdBw3TGrJT0R4uQaakQ=; b=ITx9vfl4HXzX/WCuQau7E9+04KGH+IYDsg12nDZDSQaEhxT0J1aRwtXQ+SxzE9JLUw BTg6IKf808SXZPR7jqhOPhHjKN/m4F0b9BhJf5UfY7fGrIHJAjOM1AGnYdlIIUAhNk6M uhaD0sYk48gQiMeU+Mfkova5gG3tXa64CwqlQ+KHoeL68ZDe46hB/2DmCZUX5DgCUO7r pdgpa6sb+LmSMMBEmUBsDkml1lghJ+EanckhzCp05vqe0tSq9FzyMYk428OXWlXotqK+ Ya+5DMlKe011euaME5Gxlw13mwm9qSY8WIJ5YSjj9SGOWQBvHfCYO2qM3J5JYZemTysh hz9w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=qHDIdivn; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f9-20020a170902ab8900b00172ded6ff02si17173668plr.382.2022.10.06.01.05.48; Thu, 06 Oct 2022 01:06:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=qHDIdivn; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230399AbiJFHqh (ORCPT + 99 others); Thu, 6 Oct 2022 03:46:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49732 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230428AbiJFHq2 (ORCPT ); Thu, 6 Oct 2022 03:46:28 -0400 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on2131.outbound.protection.outlook.com [40.107.95.131]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 067E58FD48; Thu, 6 Oct 2022 00:46:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ObJjAkhPg8HqX5+KwKfUrk0y3b7WdYEBO+OK4XY9vMDtMUNiJDI82vILNH7G0u5HOYof5RxgW72T8/QQ8RNoqm0uTNfcMF9aQygdLVC4qm3nX7IWZ+mART4ASNAS6fJtcQpxXM0DojXT69ENtWscDRAdfqyKvlK5YHw64vuplpJj1y3lCGwlhHxFE3v7zoy9ENnb56VyoZO+rNERiHQJJ8Ld/dig8/cjmPj4D0XIoqGuUXth8RLSzKJtbpI4o9ms8OnDpVQHbmxxMATGH2HWxbE/F0BAWil5rw37UYvB/j8w1A8W1GYwi2PWQSAccrag+wDVO9Gnk4h6WeDjbWeSOw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=QNoKZzHPb1JsMrM91AocBdQ0jdBw3TGrJT0R4uQaakQ=; b=KtBkm3GX0F5qxMiN0zkW6gtbhI9n+Em8fgPx72TzizFGEihio15tEf9pp5+GdePhyY7HwZ7DQE2MNkYJHsK4MKeFx34i+du0aG7lv1Ay3hcoEl1MLAQnjuA8AcUB9P1sqoih0s6SMdG12HBOpb0xIaXBhWiUxoLutvdT/ERaGsSXDBtQcCHAK5AUo4g2Vs7rB6nvB5TQXB2p79wTnctK9yid5QmoYZH31ypqqPBPoTDDnP/zR3CNwvg+w5M/fYqO+GY+chlF2koJy5Rp85ditzXZbVB0f5qbzjIWD2sJ00Ml36Mzwv8k2ViSpb2UrulyvOXcmRQlRdMO7Y0E1terCQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=QNoKZzHPb1JsMrM91AocBdQ0jdBw3TGrJT0R4uQaakQ=; b=qHDIdivn6L7sEX5o2gSpnWBGFvAjl1HEplp0mDQAxhbuPAeOTvMWDTPHtDVvgCGYBt4lBAWyvhmqWrkeyC5XPvFu69vDNwDIRlL+x1QebesCrFXtieuvgsGqc0/iyM4bMiuc5hgVopKGanffBuhH0ssZcoPGFeaf0gjMUypefG8= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) by BY5PR01MB5796.prod.exchangelabs.com (2603:10b6:a03:1be::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5654.20; Thu, 6 Oct 2022 07:46:17 +0000 Received: from SJ0PR01MB7282.prod.exchangelabs.com ([fe80::7d50:e907:8e2e:1ff0]) by SJ0PR01MB7282.prod.exchangelabs.com ([fe80::7d50:e907:8e2e:1ff0%3]) with mapi id 15.20.5676.032; Thu, 6 Oct 2022 07:46:17 +0000 Message-ID: Date: Thu, 6 Oct 2022 14:46:05 +0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.3.0 Subject: Re: [PATCH v9 4/9] docs: misc-devices: (smpro-errmon) Add documentation Content-Language: en-CA To: Greg Kroah-Hartman Cc: macro@orcam.me.uk, Lee Jones , Bagas Sanjaya , Rob Herring , Krzysztof Kozlowski , Jean Delvare , Guenter Roeck , Jonathan Corbet , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Thu Nguyen , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, OpenBMC Maillist , Open Source Submission , Phong Vo , thang@os.amperecomputing.com References: <20220929094321.770125-1-quan@os.amperecomputing.com> <20220929094321.770125-5-quan@os.amperecomputing.com> From: Quan Nguyen In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: SG2PR02CA0131.apcprd02.prod.outlook.com (2603:1096:4:188::6) To SJ0PR01MB7282.prod.exchangelabs.com (2603:10b6:a03:3f2::24) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR01MB7282:EE_|BY5PR01MB5796:EE_ X-MS-Office365-Filtering-Correlation-Id: 9f564b24-6b92-442b-fc97-08daa76eda0c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: AB/Ymqz4FzWq5Lz3rl7ezFe9GQ5L8gimx/PF2B51P5M0fUK7nvQzy09rrdAOwJjby8SHoOsKgGnf7eP+CFTvGsBu6pa+/4Y/hLuFyf3j23XQeeidyWfvq698m0UW2HVFe9U2fRNBFeETy7jKNniCI3CGrrfrUKHnRhFq4oDk41qgJObL8J+99qgYF/tL2g9AzQmVAqjlhRtGk1tp1UV0Yv7vbPMQ+3s327UsKJENUBV15BJBe0ilVzEm7Duxvi1IqQXemHomV/cJrvU81O6Hlg+hmf36T7Hx6iNtF0ZSMiQuo6cQ+xweUJkIqiPfFi5SC36ZfyBiigJQcGY/r3Q64uaoRrGTil1KYaxMjcHiZxEhoK3Ly6In4iFhTT5DK28En2gresX7tV6WQ7ET9cynWDWu7NFawKZsEcaPcQq2LgfiLzYbQC+Fv9BQeVbA+PZQqbpRTjqZMZpNxdrwiA4WccdQUCI3hYNbCV4iESxeCJfEqcJbZlfbY4lCan4lUuuLb3BuCCjUvuXmVnISz0LJYg7D/+I/m0zVmnpcXlxdQu5tvTUP8k6Ct1LZK4XnaRyJHiaF8CdGfip5cXyCjDbR6vTJrNPm7sl6uxdWyi5xhDWq+m0inKCgbnhiGXNvykPLdtv56JHk/ubMlc6Sof4IwfdBSxFp8F3zW//B29vxtvOqVgq6dPl10kT+vHTeU+VF/7iSbJXjYEA21JwjWnlzLXmeufoL4WCB9lshDTsrdvQytcMoapzTAkG0YJGE/paZm3DtB5D5Xo4D9gyMdEZVrfOsjvw4fSnwIsWsyA8HIpo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR01MB7282.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230022)(4636009)(136003)(346002)(396003)(39850400004)(376002)(366004)(451199015)(38350700002)(31686004)(186003)(478600001)(38100700002)(6486002)(54906003)(31696002)(30864003)(7416002)(83380400001)(66556008)(41300700001)(316002)(66476007)(2616005)(8676002)(6666004)(6916009)(107886003)(86362001)(6512007)(8936002)(26005)(5660300002)(53546011)(66946007)(52116002)(4326008)(6506007)(2906002)(43740500002);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?ZUhSL2JxVTBlOWdVUjlxcUVkWmNYeWREaW5QdXNWRjI0SVdTRTVEZ3l6N1Nx?= =?utf-8?B?N0JrTUtTR1NIcnZ4UzE0OFkrcWt6UWtjR2l1aHJ6MWRiQUhtQ1pQdUdTT1Mr?= =?utf-8?B?WXlxNjlQMzEyWEVseXRaK2Y5SGZUMzk4K2dkdThBdXlFZ0prSkpEUFptOWtN?= =?utf-8?B?MFZZWUZwcEVjaCtkcEw0dWZRRUtZSkgzWHdmNUJMVTQxd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8?B?OW04WUJOcUNHUysydSs4aTRMUkRZeU1LczdNTnZTb0xwdk1ldDJoOGRMZlNR?= =?utf-8?B?ZkdmV2FUelMwcmN5RG93OHhBYnF2UUt3KzR3ZmJSUWZJNUN6Z2YxT2lEdzQ3?= =?utf-8?B?QkdObHRTVUpVZzcwc2QySWs1TnlIWTRHdUlPTFJ4NFFDNzhaQitqdSs2THd3?= =?utf-8?Q?R1nOAUIJad8zWk4FbaG7N18=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 9f564b24-6b92-442b-fc97-08daa76eda0c X-MS-Exchange-CrossTenant-AuthSource: SJ0PR01MB7282.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2022 07:46:17.6777 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: OAg1/3g4NLrK6IBukoYKxY6hMPoT4YVJEEZQlwer6eTwGLGOBPNBqIs8z46uNILgy6cIVi1zrANfjRZzQIftu/swZO/0t3rugizGGb9YKDE= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY5PR01MB5796 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29/09/2022 16:56, Greg Kroah-Hartman wrote: > On Thu, Sep 29, 2022 at 04:43:16PM +0700, Quan Nguyen wrote: >> Adds documentation for Ampere(R)'s Altra(R) SMpro errmon driver. >> >> Signed-off-by: Thu Nguyen >> Signed-off-by: Quan Nguyen >> --- >> Changes in v9: >> + Fix issue when building htmldocs [Bagas] >> + Remove unnecessary channel info for VRD and DIMM event [Quan] >> + Update SPDX license info [Greg] >> + Update document to align with new changes in sysfs [Quan] >> >> Changes in v8: >> + Update to reflect single value per sysfs [Quan] >> >> Changes in v7: >> + None >> >> Changes in v6: >> + First introduced in v6 [Quan] >> >> Documentation/misc-devices/index.rst | 1 + >> Documentation/misc-devices/smpro-errmon.rst | 193 ++++++++++++++++++++ >> 2 files changed, 194 insertions(+) >> create mode 100644 Documentation/misc-devices/smpro-errmon.rst >> >> diff --git a/Documentation/misc-devices/index.rst b/Documentation/misc-devices/index.rst >> index 756be15a49a4..b74b3b34a235 100644 >> --- a/Documentation/misc-devices/index.rst >> +++ b/Documentation/misc-devices/index.rst >> @@ -27,6 +27,7 @@ fit into other categories. >> max6875 >> oxsemi-tornado >> pci-endpoint-test >> + smpro-errmon >> spear-pcie-gadget >> uacce >> xilinx_sdfec >> diff --git a/Documentation/misc-devices/smpro-errmon.rst b/Documentation/misc-devices/smpro-errmon.rst >> new file mode 100644 >> index 000000000000..b17f30a6cafd >> --- /dev/null >> +++ b/Documentation/misc-devices/smpro-errmon.rst >> @@ -0,0 +1,193 @@ >> +.. SPDX-License-Identifier: GPL-2.0-only >> + >> +Kernel driver Ampere(R)'s Altra(R) SMpro errmon >> +=============================================== >> + >> +Supported chips: >> + >> + * Ampere(R) Altra(R) >> + >> + Prefix: 'smpro' >> + >> + Preference: Altra SoC BMC Interface Specification >> + >> +Author: Thu Nguyen >> + >> +Description >> +----------- >> + >> +This driver supports hardware monitoring for Ampere(R) Altra(R) SoC's based on the >> +SMpro co-processor (SMpro). >> +The following SoC alert/event types are supported by the errmon driver: >> + >> +* Core CE/UE error >> +* Memory CE/UE error >> +* PCIe CE/UE error >> +* Other CE/UE error >> +* Internal SMpro/PMpro error >> +* VRD hot >> +* VRD warn/fault >> +* DIMM Hot >> + >> +The SMpro interface provides the registers to query the status of the SoC alerts/events >> +and their data and export to userspace by this driver. >> + >> +The SoC alerts/events will be referenced as error below. >> + >> +Usage Notes >> +----------- >> + >> +SMpro errmon driver creates the sysfs files for each error type. >> +Example: ``error_core_ce`` to get Core CE error type. >> + >> +* If the error is absented, the sysfs file returns empty. >> +* If the errors are presented, one each read to the sysfs, the oldest error will be returned and clear, the next read will be returned with the next error until all the errors are read out. >> + >> +For each host error type, SMpro keeps a latest max number of errors. All the oldest errors that were not read out will be dropped. In that case, the read to the corresponding overflow sysfs will return 1, otherwise, return 0. >> +Example: ``overflow_core_ce`` to report the overflow status of Core CE error type. >> + >> +The format of the error is depended on the error type. >> + >> +1) For Core/Memory/PCIe/Other CE/UE error types:: >> + >> +The return 48-byte in hex format in table below: >> + >> + ======= ============= =========== ========================================== >> + OFFSET FIELD SIZE (BYTE) DESCRIPTION >> + ======= ============= =========== ========================================== >> + 00 Error Type 1 See Table below for details >> + 01 Subtype 1 See Table below for details >> + 02 Instance 2 See Table below for details >> + 04 Error status 4 See ARM RAS specification for details >> + 08 Error Address 8 See ARM RAS specification for details >> + 16 Error Misc 0 8 See ARM RAS specification for details >> + 24 Error Misc 1 8 See ARM RAS specification for details >> + 32 Error Misc 2 8 See ARM RAS specification for details >> + 40 Error Misc 3 8 See ARM RAS specification for details >> + ======= ============= =========== ========================================== >> + >> +Below table defines the value of Error types, Sub Types, Sub component and instance: >> + >> + ============ ========== ========= =============== ==================================== >> + Error Group Error Type Sub type Sub component Instance >> + ============ ========== ========= =============== ==================================== >> + CPM (core) 0 0 Snoop-Logic CPM # >> + CPM (core) 0 2 Armv8 Core 1 CPM # >> + MCU (mem) 1 1 ERR1 MCU # | SLOT << 11 >> + MCU (mem) 1 2 ERR2 MCU # | SLOT << 11 >> + MCU (mem) 1 3 ERR3 MCU # >> + MCU (mem) 1 4 ERR4 MCU # >> + MCU (mem) 1 5 ERR5 MCU # >> + MCU (mem) 1 6 ERR6 MCU # >> + MCU (mem) 1 7 Link Error MCU # >> + Mesh (other) 2 0 Cross Point X | (Y << 5) | NS <<11 >> + Mesh (other) 2 1 Home Node(IO) X | (Y << 5) | NS <<11 >> + Mesh (other) 2 2 Home Node(Mem) X | (Y << 5) | NS <<11 | device<<12 >> + Mesh (other) 2 4 CCIX Node X | (Y << 5) | NS <<11 >> + 2P Link (other) 3 0 N/A Altra 2P Link # >> + GIC (other) 5 0 ERR0 0 >> + GIC (other) 5 1 ERR1 0 >> + GIC (other) 5 2 ERR2 0 >> + GIC (other) 5 3 ERR3 0 >> + GIC (other) 5 4 ERR4 0 >> + GIC (other) 5 5 ERR5 0 >> + GIC (other) 5 6 ERR6 0 >> + GIC (other) 5 7 ERR7 0 >> + GIC (other) 5 8 ERR8 0 >> + GIC (other) 5 9 ERR9 0 >> + GIC (other) 5 10 ERR10 0 >> + GIC (other) 5 11 ERR11 0 >> + GIC (other) 5 12 ERR12 0 >> + GIC (other) 5 13-21 ERR13 RC# + 1 >> + SMMU (other) 6 TCU 100 RC # >> + SMMU (other) 6 TBU0 0 RC # >> + SMMU (other) 6 TBU1 1 RC # >> + SMMU (other) 6 TBU2 2 RC # >> + SMMU (other) 6 TBU3 3 RC # >> + SMMU (other) 6 TBU4 4 RC # >> + SMMU (other) 6 TBU5 5 RC # >> + SMMU (other) 6 TBU6 6 RC # >> + SMMU (other) 6 TBU7 7 RC # >> + SMMU (other) 6 TBU8 8 RC # >> + SMMU (other) 6 TBU9 9 RC # >> + PCIe AER (pcie) 7 Root 0 RC # >> + PCIe AER (pcie) 7 Device 1 RC # >> + PCIe RC (pcie) 8 RCA HB 0 RC # >> + PCIe RC (pcie) 8 RCB HB 1 RC # >> + PCIe RC (pcie) 8 RASDP 8 RC # >> + OCM (other) 9 ERR0 0 0 >> + OCM (other) 9 ERR1 1 0 >> + OCM (other) 9 ERR2 2 0 >> + SMpro (other) 10 ERR0 0 0 >> + SMpro (other) 10 ERR1 1 0 >> + SMpro (other) 10 MPA_ERR 2 0 >> + PMpro (other) 11 ERR0 0 0 >> + PMpro (other) 11 ERR1 1 0 >> + PMpro (other) 11 MPA_ERR 2 0 >> + ============ ========== ========= =============== ==================================== >> + >> + For example: >> + # cat error_other_ue >> + 880807001e004010401040101500000001004010401040100c0000000000000000000000000000000000000000000000 >> + >> +2) For the Internal SMpro/PMpro error types:: >> + >> +The error_[smpro|pmro] sysfs returns string of 8-byte hex value: >> + <4-byte hex value of Error info><4-byte hex value of Error extensive data> >> + >> +The warn_[smpro|pmro] sysfs returns string of 4-byte hex value: >> + <4-byte hex value of Warning info> >> + >> +Reference to Altra SoC BMC Interface Specification for the details. >> + >> +3) For the VRD hot, VRD /warn/fault, DIMM Hot event:: >> + >> +The return string is 2-byte hex string value. Reference to section 5.7 GPI status register in Altra SoC BMC Interface Specification for the details. >> + >> + Example: >> + #cat event_vrd_hot >> + 0000 >> + >> +Sysfs entries >> +------------- >> + >> +The following sysfs files are supported: >> + >> +* Ampere(R) Altra(R): >> + >> +Alert Types: >> + >> + ======================== ================= ================================================== >> + Alert Type Sysfs name Description >> + ======================== ================= ================================================== >> + Core CE Error error_core_ce Trigger when Core has CE error >> + Core CE Error overflow overflow_core_ce Trigger when Core CE error overflow >> + Core UE Error error_core_ue Trigger when Core has UE error >> + Core UE Error overflow overflow_core_ue Trigger when Core UE error overflow >> + Memory CE Error error_mem_ce Trigger when Memory has CE error >> + Memory CE Error overflow overflow_mem_ce Trigger when Memory CE error overflow >> + Memory UE Error error_mem_ue Trigger when Memory has UE error >> + Memory UE Error overflow overflow_mem_ue Trigger when Memory UE error overflow >> + PCIe CE Error error_pcie_ce Trigger when any PCIe controller has CE error >> + PCIe CE Error overflow overflow_pcie_ce Trigger when any PCIe controller CE error overflow >> + PCIe UE Error error_pcie_ue Trigger when any PCIe controller has UE error >> + PCIe UE Error overflow overflow_pcie_ue Trigger when any PCIe controller UE error overflow >> + Other CE Error error_other_ce Trigger when any Others CE error >> + Other CE Error overflow overflow_other_ce Trigger when any Others CE error overflow >> + Other UE Error error_other_ue Trigger when any Others UE error >> + Other UE Error overflow overflow_other_ue Trigger when Others UE error overflow >> + SMpro Error error_smpro Trigger when system have SMpro error >> + SMpro Warning warn_smpro Trigger when system have SMpro warning >> + PMpro Error error_pmpro Trigger when system have PMpro error >> + PMpro Warning warn_pmpro Trigger when system have PMpro warning >> + ======================== ================= ================================================== >> + >> +Event Type: >> + >> + ============================ ========================== >> + Event Type Sysfs name >> + ============================ ========================== >> + VRD HOT event_vrd_hot >> + VR Warn/Fault event_vrd_warn_fault >> + DIMM Hot event_dimm_hot >> + ============================ ========================== >> -- >> 2.35.1 >> > > Why not just put this in the driver itself to be generated automatically > instead of living in a file that will never be noticed if anything ever > changes? > I'm not sure what you mean by "to be generated automatically" but information can be documented in the driver code itself and in the Documentation/ABI entries. Will drop this file and move them to both the driver code and to the Documentaion/ABI entries in next version. Thanks, - Quan