Received: by 2002:a05:6358:111d:b0:dc:6189:e246 with SMTP id f29csp478111rwi; Wed, 2 Nov 2022 14:17:54 -0700 (PDT) X-Google-Smtp-Source: AMsMyM60CKNp4ih1R0sWdSyRQrUcnP/rdlgBAefH7uT+2gNXwQXOfya3B0W87a+tg+wP8fVcaoul X-Received: by 2002:a17:902:d490:b0:186:c544:8ac7 with SMTP id c16-20020a170902d49000b00186c5448ac7mr27094791plg.158.1667423874177; Wed, 02 Nov 2022 14:17:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667423874; cv=none; d=google.com; s=arc-20160816; b=bk+TM5cqhxcaXKDsQCPh3iYgnToYCmTWOp891jltoe9Q5DzT6kRv7O//bc9WVPdx7H dyjpgcUl21lkLLSaEqtT1QM6obCVyoGjGHB5ANB3jjPffGMjAgASw2RWTM9MczCd7yND o2clWNuRQJDEhOUowWPOxWkEs8pXj5oMnn1U9TXzKD8aFa/vzaK762/2UDmfYHXpK6KX jW5+kSpJA03CkF4hTPByJ516z7I7640RQc9UQftHl4EFKG9szgygkRi2HKLRYai1nd3T hZenYvFWg2LiZU+hv/uQhYVmhCWuna60nJr6j0VfDQjzu1TUbEepdDSvUTb1eg1ku/p9 E4rA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=vz0GfozIpsPUBz1QIRbwEXWEh5SPtHrHm1HOdjXnaj0=; b=lsMkAhlzKVU2Ud19JM4rMSZpSskiRpIuanrIe/HgLFbVr5qDCVNtYnE+hX6u11Tvag Wrm8YhGvYyHG1c0f9G1VWHuQLeoMnuo1PtdYhGpYP+RWHQ5Ky0EtcgT2w3u4zHWnyx2U BuUI78VAAo7tTd/Va+UTjp/8FzrbCFTzLgM3kSZsBtu+eEaFL+9ppZwk4jqpUzXGQgA7 QZpP8iSqkr7JIPB5fWq6kstvigfbCiP2U3YIUKXYQbGCsfeY2A8I7BVZ6NDjaIYRQt5v hYj7vl6LnGXlMkMR0rV5Z1wNWfxVaLJvc8M1G1yedrR61uUJUQEvBNgfYDWPZaZj9O2X a+mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=hCFn13Mz; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id jg11-20020a17090326cb00b00182b78df2f8si15315650plb.495.2022.11.02.14.17.40; Wed, 02 Nov 2022 14:17:54 -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=@gmail.com header.s=20210112 header.b=hCFn13Mz; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230320AbiKBUvQ (ORCPT + 98 others); Wed, 2 Nov 2022 16:51:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41478 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229770AbiKBUvN (ORCPT ); Wed, 2 Nov 2022 16:51:13 -0400 Received: from mail-oa1-x29.google.com (mail-oa1-x29.google.com [IPv6:2001:4860:4864:20::29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2E84EBF8; Wed, 2 Nov 2022 13:51:12 -0700 (PDT) Received: by mail-oa1-x29.google.com with SMTP id 586e51a60fabf-13c569e5ff5so5972fac.6; Wed, 02 Nov 2022 13:51:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:from:to:cc:subject:date:message-id :reply-to; bh=vz0GfozIpsPUBz1QIRbwEXWEh5SPtHrHm1HOdjXnaj0=; b=hCFn13MzPnpqEf9Kex9dFGEIZm/M1JDpAf+dzr8CboGw1nWgBItdLYanDTl/cDX3G1 ProzILPf/rOP0RkYBo6mvWZLI7EW/cZJPnoZVBP7qt6phrByah4FQy+qHohtT4EUJy9g 03TvqPir9RhNYeGLPO/OQamLMvgsEttzTLICkzgFsqG2IwueeOMwpEhV1KJYp2MpTPGq Pb8p1hl+2fCTRphE6udzIIrGiXfyLuNJuD1MZafR197LxxlcMpZ/VLiH0YVdSQgRvNie fbIY262E+PmQSNAaIygFcPhip7M87skMd93jB6DECsySj4OVd69IzBtKA49nvyF6/KSd EphA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:sender:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vz0GfozIpsPUBz1QIRbwEXWEh5SPtHrHm1HOdjXnaj0=; b=z4MiN/W8c8Y46J30qTHJpNAMyemdnNHEGu4iV45ILGWqB4B58qYK98gHHfWf7hQ1WO xtfgBkctF6zW/CDdus5V+kNWmLwQwiVa/ugj9sZrK5U9ufemNvPd9RRMFsMmtgoceYCj ZBBRqd9SsQQZWD6HBNzscMapRw2C6o6Eae+TfGOFTLi1mryhLehfqNsi5XlqwNM5x2l6 p/BfF1PXD9ytUc0GKtDsTjhh5/1Rv3L76iDLnaOn22rlpqqG7jneZn8Cllt0Rdl67NaX ypyvbf8wdhO9pEvib6airxKsz/ZXSOh+Ixk26fHlm2aT9JdJsqpmWaFPmORS288M4rvH 25kQ== X-Gm-Message-State: ACrzQf2dvD/X8ta0Fx5VJqHkJufqWc/uvk1hiRV2VBZlRmNOgZjwPmw1 s/tleLafT7tD6dAxOdXDcsI= X-Received: by 2002:a05:6870:e2d6:b0:13c:a47a:c477 with SMTP id w22-20020a056870e2d600b0013ca47ac477mr16170494oad.269.1667422271417; Wed, 02 Nov 2022 13:51:11 -0700 (PDT) Received: from server.roeck-us.net ([2600:1700:e321:62f0:329c:23ff:fee3:9d7c]) by smtp.gmail.com with ESMTPSA id s35-20020a4a96a6000000b004806f494d2fsm857957ooi.11.2022.11.02.13.51.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 02 Nov 2022 13:51:10 -0700 (PDT) Sender: Guenter Roeck Date: Wed, 2 Nov 2022 13:51:10 -0700 From: Guenter Roeck To: Quan Nguyen Cc: Jean Delvare , Jonathan Corbet , Open Source Submission , Bagas Sanjaya , linux-hwmon@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Phong Vo , thang@os.amperecomputing.com, openbmc@lists.ozlabs.org Subject: Re: [PATCH] docs: hwmon: (smpro-hwmon) Improve grammar and formatting Message-ID: <20221102205110.GA2089605@roeck-us.net> References: <20221102062103.3135417-1-quan@os.amperecomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20221102062103.3135417-1-quan@os.amperecomputing.com> X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_ENVFROM_END_DIGIT, FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=no 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 Wed, Nov 02, 2022 at 01:21:03PM +0700, Quan Nguyen wrote: > Improve documentation grammar and formatting for the > Ampere(R)'s Altra(R) SMpro hwmon driver. > > Thanks Bagas for the changes in the link below. > > Link: https://lore.kernel.org/lkml/Y1aHiaZ1OpHZIzS9@google.com/T/#mfea2167b99384486a1b75d9304536015116c1821 > Signed-off-by: Quan Nguyen > Reviewed-by: Bagas Sanjaya Applied to hwmon-next. Thanks, Guenter > --- > Documentation/hwmon/smpro-hwmon.rst | 111 ++++++++++++++-------------- > 1 file changed, 56 insertions(+), 55 deletions(-) > > diff --git a/Documentation/hwmon/smpro-hwmon.rst b/Documentation/hwmon/smpro-hwmon.rst > index 3a9b14dacf89..fb7b3665735b 100644 > --- a/Documentation/hwmon/smpro-hwmon.rst > +++ b/Documentation/hwmon/smpro-hwmon.rst > @@ -7,39 +7,39 @@ Supported chips: > > * Ampere(R) Altra(R) > > - Prefix: 'smpro' > + Prefix: ``smpro`` > > - Reference: Altra SoC BMC Interface Specification > + Reference: `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 sensor types are supported by the driver: > +The smpro-hwmon driver supports hardware monitoring for Ampere(R) Altra(R) > +SoCs based on the SMpro co-processor (SMpro). The following sensor metrics > +are supported by the driver: > > * temperature > * voltage > * current > * power > > -The SMpro interface provides the registers to query the various sensors and > +The interface provides the registers to query the various sensors and > their values which are then exported to userspace by this driver. > > Usage Notes > ----------- > > -SMpro hwmon driver creates at least two sysfs files for each sensor. > +The driver creates at least two sysfs files for each sensor. > > -* File ``_label`` reports the sensor label. > -* File ``_input`` returns the sensor value. > +* ``_label`` reports the sensor label. > +* ``_input`` returns the sensor value. > > -The sysfs files are allocated in the SMpro root fs folder. > -There is one root folder for each SMpro instance. > +The sysfs files are allocated in the SMpro rootfs folder, with one root > +directory for each instance. > > -When the SoC is turned off, the driver will fail to read registers > -and return -ENXIO. > +When the SoC is turned off, the driver will fail to read registers and > +return ``-ENXIO``. > > Sysfs entries > ------------- > @@ -48,48 +48,49 @@ The following sysfs files are supported: > > * Ampere(R) Altra(R): > > -============ ============= ====== =============================================== > -Name Unit Perm Description > -temp1_input milli Celsius RO SoC temperature > -temp2_input milli Celsius RO Max temperature reported among SoC VRDs > -temp2_crit milli Celsius RO SoC VRD HOT Threshold temperature > -temp3_input milli Celsius RO Max temperature reported among DIMM VRDs > -temp4_input milli Celsius RO Max temperature reported among Core VRDs > -temp5_input milli Celsius RO Temperature of DIMM0 on CH0 > -temp5_crit milli Celsius RO MEM HOT Threshold for all DIMMs > -temp6_input milli Celsius RO Temperature of DIMM0 on CH1 > -temp6_crit milli Celsius RO MEM HOT Threshold for all DIMMs > -temp7_input milli Celsius RO Temperature of DIMM0 on CH2 > -temp7_crit milli Celsius RO MEM HOT Threshold for all DIMMs > -temp8_input milli Celsius RO Temperature of DIMM0 on CH3 > -temp8_crit milli Celsius RO MEM HOT Threshold for all DIMMs > -temp9_input milli Celsius RO Temperature of DIMM0 on CH4 > -temp9_crit milli Celsius RO MEM HOT Threshold for all DIMMs > -temp10_input milli Celsius RO Temperature of DIMM0 on CH5 > -temp10_crit milli Celsius RO MEM HOT Threshold for all DIMMs > -temp11_input milli Celsius RO Temperature of DIMM0 on CH6 > -temp11_crit milli Celsius RO MEM HOT Threshold for all DIMMs > -temp12_input milli Celsius RO Temperature of DIMM0 on CH7 > -temp12_crit milli Celsius RO MEM HOT Threshold for all DIMMs > -temp13_input milli Celsius RO Max temperature reported among RCA VRDs > -in0_input milli Volts RO Core voltage > -in1_input milli Volts RO SoC voltage > -in2_input milli Volts RO DIMM VRD1 voltage > -in3_input milli Volts RO DIMM VRD2 voltage > -in4_input milli Volts RO RCA VRD voltage > -cur1_input milli Amperes RO Core VRD current > -cur2_input milli Amperes RO SoC VRD current > -cur3_input milli Amperes RO DIMM VRD1 current > -cur4_input milli Amperes RO DIMM VRD2 current > -cur5_input milli Amperes RO RCA VRD current > -power1_input micro Watts RO Core VRD power > -power2_input micro Watts RO SoC VRD power > -power3_input micro Watts RO DIMM VRD1 power > -power4_input micro Watts RO DIMM VRD2 power > -power5_input micro Watts RO RCA VRD power > -============ ============= ====== =============================================== > - > -Example:: > + ============ ============= ====== =============================================== > + Name Unit Perm Description > + ============ ============= ====== =============================================== > + temp1_input millicelsius RO SoC temperature > + temp2_input millicelsius RO Max temperature reported among SoC VRDs > + temp2_crit millicelsius RO SoC VRD HOT Threshold temperature > + temp3_input millicelsius RO Max temperature reported among DIMM VRDs > + temp4_input millicelsius RO Max temperature reported among Core VRDs > + temp5_input millicelsius RO Temperature of DIMM0 on CH0 > + temp5_crit millicelsius RO MEM HOT Threshold for all DIMMs > + temp6_input millicelsius RO Temperature of DIMM0 on CH1 > + temp6_crit millicelsius RO MEM HOT Threshold for all DIMMs > + temp7_input millicelsius RO Temperature of DIMM0 on CH2 > + temp7_crit millicelsius RO MEM HOT Threshold for all DIMMs > + temp8_input millicelsius RO Temperature of DIMM0 on CH3 > + temp8_crit millicelsius RO MEM HOT Threshold for all DIMMs > + temp9_input millicelsius RO Temperature of DIMM0 on CH4 > + temp9_crit millicelsius RO MEM HOT Threshold for all DIMMs > + temp10_input millicelsius RO Temperature of DIMM0 on CH5 > + temp10_crit millicelsius RO MEM HOT Threshold for all DIMMs > + temp11_input millicelsius RO Temperature of DIMM0 on CH6 > + temp11_crit millicelsius RO MEM HOT Threshold for all DIMMs > + temp12_input millicelsius RO Temperature of DIMM0 on CH7 > + temp12_crit millicelsius RO MEM HOT Threshold for all DIMMs > + temp13_input millicelsius RO Max temperature reported among RCA VRDs > + in0_input millivolts RO Core voltage > + in1_input millivolts RO SoC voltage > + in2_input millivolts RO DIMM VRD1 voltage > + in3_input millivolts RO DIMM VRD2 voltage > + in4_input millivolts RO RCA VRD voltage > + cur1_input milliamperes RO Core VRD current > + cur2_input milliamperes RO SoC VRD current > + cur3_input milliamperes RO DIMM VRD1 current > + cur4_input milliamperes RO DIMM VRD2 current > + cur5_input milliamperes RO RCA VRD current > + power1_input microwatts RO Core VRD power > + power2_input microwatts RO SoC VRD power > + power3_input microwatts RO DIMM VRD1 power > + power4_input microwatts RO DIMM VRD2 power > + power5_input microwatts RO RCA VRD power > + ============ ============= ====== =============================================== > + > + Example:: > > # cat in0_input > 830