Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp580569rwb; Thu, 6 Oct 2022 01:14:16 -0700 (PDT) X-Google-Smtp-Source: AMsMyM45mBDCKDjbImStAl5mOoJHgS2Q7vSdxSErquYrP5PPSDOBfIXK/NJCHFnhm3Bz1skAyKFy X-Received: by 2002:a63:db14:0:b0:44d:e4f3:b45c with SMTP id e20-20020a63db14000000b0044de4f3b45cmr3356125pgg.267.1665044056041; Thu, 06 Oct 2022 01:14:16 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1665044056; cv=pass; d=google.com; s=arc-20160816; b=uIPUf3CAl6ickFVw/kZfN04Dfm2nvs+Qdxd2ZNJ9B0ZsmXxXTENuNIKDeYZMIOhMyw YV++QKnQxpDzdS9Z7dp50xXef+BB19czrT+yPHvvnPBvffflX2NXIlli+fiUgML1XgB2 AX7YD9G2/wGZYw3cGhS/WsgEDoyiCgDjen7EIqOM5KzSKcDs2mcDXrUS1atMLBhXgD6Z aEBPTNpXOOJIVWeejTWJtmYcY8oe4DGPf+Xr5xLDZgbG5IAfFykj4fg2rz9EsCLQJ/qo S0796f/VWnsA+mGjvDhTGLsgQiPx6tydYMo0eyqbrwi2V3FJ1FaVIsJXnubQEE/uoJtO pazQ== 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=dFKNihARPcKK/KrJCsuGFuKWkO+V2CuuU76bTyfcWpI=; b=xk3ET1wXUhm13ZaChNcvtU9NGuX/Ziz9KWFLCPb2Y+TROaD3Z8M3dMNwJfupxwglVt dWmC0rv394OdfOW2z+6h0F7CIylXh68NrDHu1vOBqTlYH0CqKAM9ssD7v4eZUu2cFYBi wvUBRr0XxqAxlUB0Wf1cwJg5bsT9DwMMBIQK2UK3evaH+o7zioeOQi1LeKKBwEPRTkjp +anLYOG38ZC+1MZuX/E6uznZ+OHv/voOOlik9BaBrY1ivIsik+5PqBHWWDD8n/zJhEkg zR22map+3ERbqCgsWwEvTKq5bxDNmtqXvQyKRhsj7SATbQvCDWJb7zh85wJkLqMOpXRN d8TQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=GmNNlRIV; 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 g7-20020a63e607000000b004403a3d2987si18537682pgh.106.2022.10.06.01.14.03; Thu, 06 Oct 2022 01:14: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=GmNNlRIV; 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 S229596AbiJFHq7 (ORCPT + 99 others); Thu, 6 Oct 2022 03:46:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49898 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230447AbiJFHqt (ORCPT ); Thu, 6 Oct 2022 03:46:49 -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 663273FD54; Thu, 6 Oct 2022 00:46:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZGJi3DUmTPERawMAL1eIwdRME+hY8hxsjO7i31+XVCd2nrvjhg2sDUW9aeRN1oVDV9y5N9d9o9XUuN7soqH38l8Q8esyGSYjvOvAAVg4yTUTTVKdzq9OebvRyW3XFJGDXFeNZxBL3ZR49/fSMpUrfjioSjDFfiqilkf9xDtNn42QX2XnPzIKL2LqrahZ78EAEovrwID69YYq4l0ZM1hJz8tiRpd8D7di87Y2AJANIFpxlUVBFL22vRhxyNSiu2ZsJf3YG3tk29FAsL30ZgvlyTAhRoenEnoeA9UfV3w1yM5ExBn5Y0QWeZ3LinT17O4HOSsZVXpVCTT1xW6CwwaaaA== 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=dFKNihARPcKK/KrJCsuGFuKWkO+V2CuuU76bTyfcWpI=; b=oar/y8R8SIrXFf5vFNyfJk4Ll7ZDYJpqjazVcVM9gG+O1V1LKJurMIBEpRZHvjD5XaHK8P+jlZ2bCDrScDgBuZYh0OBAdeTmSMATwvz42++36TiLlm6c1QEPxU7tS6k9NimAN3lQoM9aqdD16yubMgFG5KytZ+KyewcHPt6YLwx3lfaRxYGuqXBiBCcjuYMBEb3GNpTqUOvja+1PRDPSNRYMyLU2i6W3Rsez98+pRdqZrsKRA77Izzu7klCMhwYGR7j48xCFJCRz0R8IUMe+LyGanagaVsBZohCyTsBASNqnSp2z/+bpgmqzZhI74YmMOrhgiB7KMAcVabXeiNZJKw== 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=dFKNihARPcKK/KrJCsuGFuKWkO+V2CuuU76bTyfcWpI=; b=GmNNlRIVqoAJjp2YcNd98LvzsaMu8/JZ8n94nhT67QO+C2QnUBoBGi7bkMK9G8o/1j8jcvh38xkFiDQucjceNfNbr3xoyfeuunZTQRZRN3KgIuwguWCm/tVE6iwMwT4xJBu9/mKJK3rAixDlTF5pmbvzcjZducDaD29yyPFGAsk= 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:41 +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:41 +0000 Message-ID: <94b4f0f2-d19e-0574-6a49-3689a7b972b1@os.amperecomputing.com> Date: Thu, 6 Oct 2022 14:46:29 +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 9/9] docs: ABI: testing: Document the Ampere Altra Family's SMpro sysfs interfaces Content-Language: en-CA To: Bagas Sanjaya Cc: macro@orcam.me.uk, Lee Jones , Rob Herring , Krzysztof Kozlowski , Jean Delvare , Guenter Roeck , Jonathan Corbet , Derek Kiernan , Dragan Cvetic , Arnd Bergmann , Greg Kroah-Hartman , 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-10-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: SG2PR02CA0129.apcprd02.prod.outlook.com (2603:1096:4:188::19) 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: 522b46f6-6f96-400f-bb14-08daa76ee826 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Tv6suOvTEbzy/Nn4NFzd8Y2mdaYEQcKuSPZ3USOVNluviznoqt0tDYmkw0ThsYh8oW8YUG5lpNDKa6qryWWZBSQd0QV7I/MCCuxA8VJqXTGbASRoOOtwZOyBtjO4NUFmJR0q8JzWbm+ezmjdGJ5IjF57QksFFp1C3zSDSM+Uf51U0FsU6ET1/fFZtnS87lIEQt0KMKTZ0DruSMUoMOsHEDBzipMo7lTWD5+2SmqcmidijdBx2tJCyn4rUTJRCtnPlYIugPb7vRKBZLQe9T84+M+WKNVyEwXtkUWN2N/sv+YePrNNUmWmzp6tKeJ9cs5MKk6JrREG1EDClBm1eYx9diL1j+SpBKTBJxW8xfaGcFypx2kYF5SEhyHp9xl3o+OcCnMcPdIEQ/K69A1bNDpFd2MX1y+Y2S1/fdW+QoE5jc3oMCNGkQ9dgjF0FQ4Ic0mYCBzZUGCNhyWKEPYHlGuRHSNb29/JDD2Kx/f4Nhjp8dTYtBWFpfszwkle4aheXRJQkbYBYzxz8CbAX1mQsL202Qb7FCsfvZwLEN+yWp8flzj/S12KmXJpxlxtg6QRV8Bvq+m3wfYIYsReFXe61Djv7v+XObTL8jJfdY527btzZKiltx2b5MPKhYXCgR1dGGmYNOEJ5TQmv4CrsvlgFPgLMWhAmNLCjJ1tEVgRGw22itnuH7exlrmWRCKY2JTFBIT2DFfXMqkXTDrms/Z/4snkiyZ32RH5/GPCqoePellGba37cEv6skv92Nml92oC+Z9dMIsyTUdmV2UbW8GgM51bLugSvZWaUjGb0C7Vc7Dm/vM= 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?QkljbzFLRCs5Qy9PNG56UCtUcC9VNWcwMGtla0xkTENEQXlTU1NqYitzL2xS?= =?utf-8?B?QjN2cjZldWhTOGZjOTZQSXVJWXNjc1VUYlBkRkVISXhNM2VYdThaS1ovd0NS?= =?utf-8?B?OHFZZnc0Z0x5bFRBaE1BTEdvcW1PaDV0MWEyTHhjWjFrVTNDWlhIR2c3VkFx?= =?utf-8?B?KzQycmxvV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QNDU1bFdo?= =?utf-8?B?bU9hWHh2a1NhS2hOWnBOZzAxUXNhb3Mvam1IOVBPaEhFQm5UbUJFZVZMVG4y?= =?utf-8?B?ZVlBK1JBejc5QTFOZGdSekYrRkFUeWZhbE4yNVVldHV6NkxNRmxwUk10Yjla?= =?utf-8?B?OStnV0M0eDRTK1Fhcmh4ck1oS2VPS211NUpEbFpoOTcwbGJzQ0Q0QWp6cmw5?= =?utf-8?Q?YaWFsFqsWc41k3UW644SgC8=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 522b46f6-6f96-400f-bb14-08daa76ee826 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:41.1471 (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: BF0pHUAQmYbQlKjy0WNvlex8rngJJY1P72H1LnHAtI58pz5Iq12rgAeqzkxYTjkcAY9Ep5LdmM90sGoYjIyYLuK3A2//GENuIVUQSgbhHJo= 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 30/09/2022 16:38, Bagas Sanjaya wrote: > On Thu, Sep 29, 2022 at 04:43:21PM +0700, Quan Nguyen wrote: >> diff --git a/Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro b/Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro >> new file mode 100644 >> index 000000000000..d8f82a06570d >> --- /dev/null >> +++ b/Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro >> @@ -0,0 +1,125 @@ >> +What: /sys/bus/platform/devices/smpro-errmon.*/error_[core|mem|pcie|other]_[ce|ue] >> +KernelVersion: 5.18 >> +Contact: quan@os.amperecomputing.com >> +Description: >> + (RO) Contains the 48-byte Ampere (Vendor-Specific) Error Record printed >> + in hex format. >> + >> + The detail of each sysfs entries is as below: >> + +-------------+---------------------------------------------------------+ >> + | Error | Sysfs entry | >> + +-------------+---------------------------------------------------------+ >> + | Core's CE | /sys/bus/platform/devices/smpro-errmon.*/error_core_ce | >> + | Core's UE | /sys/bus/platform/devices/smpro-errmon.*/error_core_ue | >> + | Memory's CE | /sys/bus/platform/devices/smpro-errmon.*/error_mem_ce | >> + | Memory's UE | /sys/bus/platform/devices/smpro-errmon.*/error_mem_ue | >> + | PCIe's CE | /sys/bus/platform/devices/smpro-errmon.*/error_pcie_ce | >> + | PCIe's UE | /sys/bus/platform/devices/smpro-errmon.*/error_pcie_ue | >> + | Other's CE | /sys/bus/platform/devices/smpro-errmon.*/error_other_ce| >> + | Other's UE | /sys/bus/platform/devices/smpro-errmon.*/error_other_ue| >> + +-------------+---------------------------------------------------------+ >> + UE: Uncorrect-able Error >> + CE: Correct-able Error >> + >> + See section 3.3 Ampere (Vendor-Specific) Error Record Formats, >> + Altra Family RAS Supplement. >> + >> + >> +What: /sys/bus/platform/devices/smpro-errmon.*/overflow_[core|mem|pcie|other]_[ce|ue] >> +KernelVersion: 5.18 >> +Contact: quan@os.amperecomputing.com >> +Description: >> + (RO) Return the overflow status of each type HW error reported: >> + 0 : No overflow >> + 1 : There is an overflow and the oldest HW errors are dropped >> + >> + The detail of each sysfs entries is as below: >> + +-------------+-----------------------------------------------------------+ >> + | Overflow | Sysfs entry | >> + +-------------+-----------------------------------------------------------+ >> + | Core's CE | /sys/bus/platform/devices/smpro-errmon.*/overflow_core_ce | >> + | Core's UE | /sys/bus/platform/devices/smpro-errmon.*/overflow_core_ue | >> + | Memory's CE | /sys/bus/platform/devices/smpro-errmon.*/overflow_mem_ce | >> + | Memory's UE | /sys/bus/platform/devices/smpro-errmon.*/overflow_mem_ue | >> + | PCIe's CE | /sys/bus/platform/devices/smpro-errmon.*/overflow_pcie_ce | >> + | PCIe's UE | /sys/bus/platform/devices/smpro-errmon.*/overflow_pcie_ue | >> + | Other's CE | /sys/bus/platform/devices/smpro-errmon.*/overflow_other_ce| >> + | Other's UE | /sys/bus/platform/devices/smpro-errmon.*/overflow_other_ue| >> + +-------------+-----------------------------------------------------------+ >> + UE: Uncorrect-able Error >> + CE: Correct-able Error >> + >> +What: /sys/bus/platform/devices/smpro-errmon.*/[error|warn]_[smpro|pmpro] >> +KernelVersion: 5.18 >> +Contact: quan@os.amperecomputing.com >> +Description: >> + (RO) Contains the internal firmware error/warning printed as hex format. >> + >> + The detail of each sysfs entries is as below: >> + +---------------+------------------------------------------------------+ >> + | Error | Sysfs entry | >> + +---------------+------------------------------------------------------+ >> + | SMpro error | /sys/bus/platform/devices/smpro-errmon.*/error_smpro | >> + | SMpro warning | /sys/bus/platform/devices/smpro-errmon.*/warn_smpro | >> + | PMpro error | /sys/bus/platform/devices/smpro-errmon.*/error_pmpro | >> + | PMpro warning | /sys/bus/platform/devices/smpro-errmon.*/warn_pmpro | >> + +---------------+------------------------------------------------------+ >> + See more details in section 5.10 RAS Internal Error Register Definitions, >> + Altra Family Soc BMC Interface Specification. >> + >> +What: /sys/bus/platform/devices/smpro-errmon.*/event_[vrd_warn_fault|vrd_hot|dimm_hot] >> +KernelVersion: 5.18 >> +Contact: quan@os.amperecomputing.com >> +Description: >> + (RO) Contains the detail information in case of VRD/DIMM warning/hot events >> + in hex format as below: >> + >> + AAAA >> + Where: >> + AAAA: The event detail information data >> + >> + See more details in section 5.7 GPI Status Registers, >> + Altra Family Soc BMC Interface Specification. >> + >> + >> +What: /sys/bus/platform/devices/smpro-misc.*/boot_progress >> +KernelVersion: 5.18 >> +Contact: quan@os.amperecomputing.com >> +Description: >> + (RO) Contains the boot stages information in hex as format below: >> + >> + AABBCCCCCCCC >> + Where: >> + AA : The boot stages >> + 00: SMpro firmware booting >> + 01: PMpro firmware booting >> + 02: ATF BL1 firmware booting >> + 03: DDR initialization >> + 04: DDR training report status >> + 05: ATF BL2 firmware booting >> + 06: ATF BL31 firmware booting >> + 07: ATF BL32 firmware booting >> + 08: UEFI firmware booting >> + 09: OS booting >> + BB : Boot status >> + 00: Not started >> + 01: Started >> + 02: Completed without error >> + 03: Failed. >> + CCCCCCCC: Boot status information defined for each boot stages >> + >> + See more details in section 5.11 Boot Stage Register Definitions, >> + and section 6. Processor Boot Progress Codes, Altra Family Soc BMC >> + Interface Specification. >> + >> + >> +What: /sys/bus/platform/devices/smpro-misc*/soc_power_limit >> +KernelVersion: 5.18 >> +Contact: quan@os.amperecomputing.com >> +Description: >> + (RW) Contains the desired SoC power limit in Watt. >> + Writes to this sysfs set the desired SoC power limit (W). >> + Reads from this register return the current SoC power limit (W). >> + The value ranges: >> + Minimum: 120 W >> + Maximum: Socket TDP power > > The documentation above produces htmldocs warnings: > > Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro:71: WARNING: Unexpected indentation. > Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro:117: WARNING: Unexpected indentation. > Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro:86: WARNING: Unexpected indentation. > Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro:86: WARNING: Definition list ends without a blank line; unexpected unindent. > > I have applied the fixup (with fixes to technical references): > > ---- >8 ---- > > diff --git a/Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro b/Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro > index d8f82a06570d88..39cf222fb6510a 100644 > --- a/Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro > +++ b/Documentation/ABI/testing/sysfs-bus-platform-devices-ampere-smpro > @@ -6,23 +6,32 @@ Description: > in hex format. > > The detail of each sysfs entries is as below: > + > +-------------+---------------------------------------------------------+ > | Error | Sysfs entry | > +-------------+---------------------------------------------------------+ > - | Core's CE | /sys/bus/platform/devices/smpro-errmon.*/error_core_ce | > - | Core's UE | /sys/bus/platform/devices/smpro-errmon.*/error_core_ue | > - | Memory's CE | /sys/bus/platform/devices/smpro-errmon.*/error_mem_ce | > - | Memory's UE | /sys/bus/platform/devices/smpro-errmon.*/error_mem_ue | > - | PCIe's CE | /sys/bus/platform/devices/smpro-errmon.*/error_pcie_ce | > - | PCIe's UE | /sys/bus/platform/devices/smpro-errmon.*/error_pcie_ue | > - | Other's CE | /sys/bus/platform/devices/smpro-errmon.*/error_other_ce| > - | Other's UE | /sys/bus/platform/devices/smpro-errmon.*/error_other_ue| > + | Core's CE | /sys/bus/platform/devices/smpro-errmon.*/error_core_ce | > +-------------+---------------------------------------------------------+ > + | Core's UE | /sys/bus/platform/devices/smpro-errmon.*/error_core_ue | > + +-------------+---------------------------------------------------------+ > + | Memory's CE | /sys/bus/platform/devices/smpro-errmon.*/error_mem_ce | > + +-------------+---------------------------------------------------------+ > + | Memory's UE | /sys/bus/platform/devices/smpro-errmon.*/error_mem_ue | > + +-------------+---------------------------------------------------------+ > + | PCIe's CE | /sys/bus/platform/devices/smpro-errmon.*/error_pcie_ce | > + +-------------+---------------------------------------------------------+ > + | PCIe's UE | /sys/bus/platform/devices/smpro-errmon.*/error_pcie_ue | > + +-------------+---------------------------------------------------------+ > + | Other's CE | /sys/bus/platform/devices/smpro-errmon.*/error_other_ce | > + +-------------+---------------------------------------------------------+ > + | Other's UE | /sys/bus/platform/devices/smpro-errmon.*/error_other_ue | > + +-------------+---------------------------------------------------------+ > + > UE: Uncorrect-able Error > CE: Correct-able Error > > - See section 3.3 Ampere (Vendor-Specific) Error Record Formats, > - Altra Family RAS Supplement. > + For details, see section `3.3 Ampere (Vendor-Specific) Error Record Formats, > + Altra Family RAS Supplement`. > > > What: /sys/bus/platform/devices/smpro-errmon.*/overflow_[core|mem|pcie|other]_[ce|ue] > @@ -30,24 +39,36 @@ KernelVersion: 5.18 > Contact: quan@os.amperecomputing.com > Description: > (RO) Return the overflow status of each type HW error reported: > - 0 : No overflow > - 1 : There is an overflow and the oldest HW errors are dropped > + > + - 0 : No overflow > + - 1 : There is an overflow and the oldest HW errors are dropped > > The detail of each sysfs entries is as below: > + > +-------------+-----------------------------------------------------------+ > | Overflow | Sysfs entry | > +-------------+-----------------------------------------------------------+ > | Core's CE | /sys/bus/platform/devices/smpro-errmon.*/overflow_core_ce | > + +-------------+-----------------------------------------------------------+ > | Core's UE | /sys/bus/platform/devices/smpro-errmon.*/overflow_core_ue | > + +-------------+-----------------------------------------------------------+ > | Memory's CE | /sys/bus/platform/devices/smpro-errmon.*/overflow_mem_ce | > + +-------------+-----------------------------------------------------------+ > | Memory's UE | /sys/bus/platform/devices/smpro-errmon.*/overflow_mem_ue | > + +-------------+-----------------------------------------------------------+ > | PCIe's CE | /sys/bus/platform/devices/smpro-errmon.*/overflow_pcie_ce | > + +-------------+-----------------------------------------------------------+ > | PCIe's UE | /sys/bus/platform/devices/smpro-errmon.*/overflow_pcie_ue | > + +-------------+-----------------------------------------------------------+ > | Other's CE | /sys/bus/platform/devices/smpro-errmon.*/overflow_other_ce| > + +-------------+-----------------------------------------------------------+ > | Other's UE | /sys/bus/platform/devices/smpro-errmon.*/overflow_other_ue| > +-------------+-----------------------------------------------------------+ > - UE: Uncorrect-able Error > - CE: Correct-able Error > + > + where: > + > + - UE: Uncorrect-able Error > + - CE: Correct-able Error > > What: /sys/bus/platform/devices/smpro-errmon.*/[error|warn]_[smpro|pmpro] > KernelVersion: 5.18 > @@ -56,61 +77,74 @@ Description: > (RO) Contains the internal firmware error/warning printed as hex format. > > The detail of each sysfs entries is as below: > + > +---------------+------------------------------------------------------+ > | Error | Sysfs entry | > +---------------+------------------------------------------------------+ > | SMpro error | /sys/bus/platform/devices/smpro-errmon.*/error_smpro | > + +---------------+------------------------------------------------------+ > | SMpro warning | /sys/bus/platform/devices/smpro-errmon.*/warn_smpro | > + +---------------+------------------------------------------------------+ > | PMpro error | /sys/bus/platform/devices/smpro-errmon.*/error_pmpro | > + +---------------+------------------------------------------------------+ > | PMpro warning | /sys/bus/platform/devices/smpro-errmon.*/warn_pmpro | > +---------------+------------------------------------------------------+ > - See more details in section 5.10 RAS Internal Error Register Definitions, > - Altra Family Soc BMC Interface Specification. > + > + For details, see section `5.10 RAS Internal Error Register Definitions, > + Altra Family Soc BMC Interface Specification`. > > What: /sys/bus/platform/devices/smpro-errmon.*/event_[vrd_warn_fault|vrd_hot|dimm_hot] > KernelVersion: 5.18 > Contact: quan@os.amperecomputing.com > Description: > (RO) Contains the detail information in case of VRD/DIMM warning/hot events > - in hex format as below: > + in hex format as below:: > > - AAAA > - Where: > - AAAA: The event detail information data > + AAAA > > - See more details in section 5.7 GPI Status Registers, > - Altra Family Soc BMC Interface Specification. > + where: > + > + - ``AAAA``: The event detail information data > + > + For more details, see section `5.7 GPI Status Registers, > + Altra Family Soc BMC Interface Specification`. > > > What: /sys/bus/platform/devices/smpro-misc.*/boot_progress > KernelVersion: 5.18 > Contact: quan@os.amperecomputing.com > Description: > - (RO) Contains the boot stages information in hex as format below: > + (RO) Contains the boot stages information in hex as format below:: > > - AABBCCCCCCCC > - Where: > - AA : The boot stages > - 00: SMpro firmware booting > - 01: PMpro firmware booting > - 02: ATF BL1 firmware booting > - 03: DDR initialization > - 04: DDR training report status > - 05: ATF BL2 firmware booting > - 06: ATF BL31 firmware booting > - 07: ATF BL32 firmware booting > - 08: UEFI firmware booting > - 09: OS booting > - BB : Boot status > - 00: Not started > - 01: Started > - 02: Completed without error > - 03: Failed. > - CCCCCCCC: Boot status information defined for each boot stages > + AABBCCCCCCCC > > - See more details in section 5.11 Boot Stage Register Definitions, > - and section 6. Processor Boot Progress Codes, Altra Family Soc BMC > - Interface Specification. > + where: > + > + - ``AA`` : The boot stages > + > + - 00: SMpro firmware booting > + - 01: PMpro firmware booting > + - 02: ATF BL1 firmware booting > + - 03: DDR initialization > + - 04: DDR training report status > + - 05: ATF BL2 firmware booting > + - 06: ATF BL31 firmware booting > + - 07: ATF BL32 firmware booting > + - 08: UEFI firmware booting > + - 09: OS booting > + > + - ``BB`` : Boot status > + > + - 00: Not started > + - 01: Started > + - 02: Completed without error > + - 03: Failed. > + > + - ``CCCCCCCC``: Boot status information defined for each boot stages > + > + For details, see section `5.11 Boot Stage Register Definitions` > + and section `6. Processor Boot Progress Codes, Altra Family Soc BMC > + Interface Specification`. > > > What: /sys/bus/platform/devices/smpro-misc*/soc_power_limit > @@ -121,5 +155,6 @@ Description: > Writes to this sysfs set the desired SoC power limit (W). > Reads from this register return the current SoC power limit (W). > The value ranges: > - Minimum: 120 W > - Maximum: Socket TDP power > + > + - Minimum: 120 W > + - Maximum: Socket TDP power > Will apply in next version. And thank you a lot for the details changes. Thank you, - Quan