Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp333847imm; Mon, 4 Jun 2018 18:55:30 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKYuLe7Mxjrh1fsL7UMf63PDHXkWpTw7P19hxsQGHiq7BskGY4oi1N8J28YHhjl2jqYUGZT X-Received: by 2002:a63:b742:: with SMTP id w2-v6mr11561313pgt.200.1528163730096; Mon, 04 Jun 2018 18:55:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528163730; cv=none; d=google.com; s=arc-20160816; b=cg1SCBSN7tI3HEQRBNC6Gpcp2x0DuWOxmKE6T2+4j8fVV7ECeO+D10jMD5HcriJK2A OkxgN+ODGebffutmpObIqNKqPH9dtEtYnuy+QWwAxRpMboY3ngAHuH00EffTgRuokz6z W1fp3coIdHtus3tGFYueuUstorhVOyBq/NbOhTNU/jQcTE+yTGRTP5kgZamD/6kPNqvg Q71+JtKkMAbn6oK5micsNfr0G/xvG0BO/jYxYZybzybETMA7V52NPJLZpD1/MXlJz4Sq ln50GuVQ7ZneZreR69qxY3Blo1kdM0UchOeqqtr3Z/l+Z3t/CetoMgsN9x+rTn3af0Is LY1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=hVTzdiQuUN/mL11eHmOzPVFIYqtW3YvdTY5yrje3Jg8=; b=xUPOPOf5A1rh1IRPGLJVSwuagkCwHYI1xFuXBglMFhWmCSXk1klzJPXogPT60fPWKF /kgSDtd7QoLBv1pPgVtgWB5r9VS+1a+jM0cvbqtXnIeIfDsE+tj55ZYvQUwwivgiOYAZ nSw5jHMEDK85+8bg9Vt1hxH9o+otazUMJaSCPOm1pbIW8ECZlr4VYInfRK+pmZUQak/8 XjydT1ThUnmWCh2nazUDqt1UCQ/kJors2AxqrZMToFhwhCWDdkW9uyipANKCKwBDk5qo CEXCJ6NoleQESlKcNVXtlJR1pN8H+ptLSjJD7qiZsFrs0QgScQSty2/bU21tpg5CBvA1 YS0Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WGutwCNs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d31-v6si48756493pld.23.2018.06.04.18.55.15; Mon, 04 Jun 2018 18:55:30 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@infradead.org header.s=bombadil.20170209 header.b=WGutwCNs; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751454AbeFEByu (ORCPT + 99 others); Mon, 4 Jun 2018 21:54:50 -0400 Received: from bombadil.infradead.org ([198.137.202.133]:36656 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751297AbeFEByt (ORCPT ); Mon, 4 Jun 2018 21:54:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20170209; h=In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=hVTzdiQuUN/mL11eHmOzPVFIYqtW3YvdTY5yrje3Jg8=; b=WGutwCNsWpcC9E/2JN/wpJ9bW xKF2hTRr6mYte2Y/AkVzePdb8iMXW1C56zQCT/rksBsK0l1MnSrMIjmWgb6Frr0zl1qV/cPEvO0Pj y/R3KRKFJiO2f4uXDzHF7DtdM93vAEBjos8FQkaBVAExMbbV96BFWEDGa79ttQDf/IBeDFRN1vQ8e a/I/FmA0tA1RdiIShGxxi/eQzrd9mNKnODN4LWHr9DiNl8vsbf8G5IBgiWBhnKOZXvgixYM1D5Nv/ qFiymG+mvNGEdv5JxyDc8Z9h47RObcLc3vvZY4I/0SFNsw3q2CTrIEJxlDTS0+FpFzLnh7MIH8ihQ FT0+Z8mZA==; Received: from dvhart by bombadil.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fQ1BO-0000ns-4N; Tue, 05 Jun 2018 01:54:46 +0000 Date: Mon, 4 Jun 2018 18:54:44 -0700 From: Darren Hart To: Vadim Pasternak Cc: andy.shevchenko@gmail.com, gregkh@linuxfoundation.org, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org, jiri@resnulli.us, michaelsh@mellanox.com, ivecera@redhat.com Subject: Re: [PATCH v4 8/8] Documentation/ABI: Add documentation mlxreg-io sysfs interfaces Message-ID: <20180605015444.GB47042@localhost.localdomain> References: <1527584347-167548-1-git-send-email-vadimp@mellanox.com> <1527584347-167548-3-git-send-email-vadimp@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1527584347-167548-3-git-send-email-vadimp@mellanox.com> User-Agent: Mutt/1.9.1 (2017-09-22) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, May 29, 2018 at 08:59:07AM +0000, Vadim Pasternak wrote: > Add documentation for mlxreg-io driver sysfs interfaces for user space > access to system's power resets control, reset causes monitoring, > programmable devices version reading and devices selection control. > > Signed-off-by: Vadim Pasternak Hi Vadim, You mentioned that these can vary by platform, I presume that means that any given platform will present a subset of these attributes - but that all possible attributes are documented here. Is that correct? > --- > v4: > Comments pointed out by Greg: > Add Documentation/ABI/ entries for the new sysfs files. > --- > Documentation/ABI/stable/sysfs-driver-mlxreg-io | 51 +++++++++++++++++++++++++ > 1 file changed, 51 insertions(+) > create mode 100644 Documentation/ABI/stable/sysfs-driver-mlxreg-io > > diff --git a/Documentation/ABI/stable/sysfs-driver-mlxreg-io b/Documentation/ABI/stable/sysfs-driver-mlxreg-io > new file mode 100644 > index 0000000..fcd659e > --- /dev/null > +++ b/Documentation/ABI/stable/sysfs-driver-mlxreg-io > @@ -0,0 +1,51 @@ > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > + cause_aux_pwr_or_ref > + cause_asic_thermal > + cause_hotswap_or_wd > + cause_fw_reset > + cause_long_pb > + cause_main_pwr_fail > + cause_short_pb > + cause_sw_reset These property names do not seem to follow any kind of logical pattern with respect to abbreviation. Starting with "cause_" made me think they were event generators at first... Of course, who wants to be able to generate an asic thermal shutdown from sysfs... ;-) The only thing that might make more sense to *me* would be to replace "cause" with "reset". Not required. I'll leave it to you, you may have good reason for the names chosen. > +Date: May 2018 > +KernelVersion: 4.18 > +Contact: Vadim Pasternak > +Description: These files show the system reset cause, as following: power > + auxiliary outage or power refresh, ASIC thermal shutdown, > + hotswap or watchdog, firmware reset, long press power button, > + short press power button, software reset. Value 1 in file means > + this is reset cause, 0 - otherwise. Only one of the above > + causes could be 1 at the same time, representing only last > + reset cause. > + > + The files are read only. > + > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/ > + cpld1_version > + cpld2_version > +Date: May 2018 > +KernelVersion: 4.18 > +Contact: Vadim Pasternak > +Description: These files show with which CPLD versions have been burned > + on carrier and switch boards. > + > + The files are read only. > + > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/select_iio > +Date: May 2018 > +KernelVersion: 4.18 > +Contact: Vadim Pasternak > +Description: This file allows iio devices selection. > + > + The file is read/write. > + Some description is appropriate here for what values it accepts and how it is intended to be used. > +What: /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu1_on > + /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/psu2_on > + /sys/devices/platform/mlxplat/mlxreg-io/hwmon/hwmon*/pwr_cycle > +Date: May 2018 > +KernelVersion: 4.18 > +Contact: Vadim Pasternak > +Description: These files allow assert system's power cycling and PS units > + on/off switching. This Description is awkward. Consider: These files allow asserting system power cycling and switching power supply units on and off. > + The files are write only. Please provide usage and resulting behavior. -- Darren Hart VMware Open Source Technology Center