From: Jean Delvare <khali-PUYAD+kWke1g9hUCZPvPmw@public.gmane.org>
Cc: Jonathan Cameron
<kernel-tko9wxEg+fIOOJlXag/Snyp2UmYkHbXO@public.gmane.org>,
Randy Dunlap <rdunlap-/UHa2rfvQTnk1uMJSBkQmQ@public.gmane.org>,
Andrew Morton
<akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org>,
"Ira W. Snyder" <iws-lulEs6mt1IksTUYHLfqkUA@public.gmane.org>,
"Darrick J. Wong"
<djwong-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org>,
"Ben Dooks (embedded platforms)"
<ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org>,
Hans de Goede <hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
Mark Brown
<broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org>,
Samuel Ortiz <sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org>,
Crane Cai <crane.cai-5C7GfCeVMHo@public.gmane.org>,
Linus Walleij
<linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org>,
Ralf Baechle <ralf-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org>,
lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Guenter Roeck
<guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH/RFC v2 4/4] hwmon: sysfs API updates
Date: Mon, 5 Jul 2010 09:18:57 +0200 [thread overview]
Message-ID: <20100705091857.77ce0077@hyperion.delvare> (raw)
In-Reply-To: <1278303018-22069-5-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
Hi Guenter,
On Sun, 4 Jul 2010 21:10:18 -0700, Guenter Roeck wrote:
> Signed-off-by: Guenter Roeck <guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
> ---
> Documentation/hwmon/sysfs-interface | 37 +++++++++++++++++++++++++++++-----
> 1 files changed, 31 insertions(+), 6 deletions(-)
As usual, I don't have the time to review the code, but I'd like to at
least comment on the sysfs interface changes:
>
> diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
> index d4e2917..2dcec0f 100644
> --- a/Documentation/hwmon/sysfs-interface
> +++ b/Documentation/hwmon/sysfs-interface
> @@ -421,11 +421,12 @@ power[1-*]_accuracy Accuracy of the power meter.
> Unit: Percent
> RO
>
> -power[1-*]_alarm 1 if the system is drawing more power than the
> - cap allows; 0 otherwise. A poll notification is
> - sent to this file when the power use exceeds the
> - cap. This file only appears if the cap is known
> - to be enforced by hardware.
> +power[1-*]_alarm 1 if the system is drawing more power than cap
> + or max allows; 0 otherwise. A poll notification
> + is sent to this file when the power use exceeds
> + the cap or max limit. If only cap is supported,
> + this file only appears if the cap is known to be
> + enforced by hardware.
> RO
>
> power[1-*]_cap If power use rises above this limit, the
> @@ -450,6 +451,18 @@ power[1-*]_cap_min Minimum cap that can be set.
> Unit: microWatt
> RO
>
> +power[1-*]_max Maximum power.
> + Unit: microWatt
> + RW
> +
> +power[1-*]_crit Critical maximum power.
> + If power rises to or above this limit, the
> + system will take drastic action to reduce power
> + consumption, such as a system shutdown. At the
> + very least, a power fault will be generated.
> + Unit: microWatt
> + RO
Why RO and not RW as every other limit file?
> +
> **********
> * Energy *
> **********
> @@ -471,8 +484,14 @@ limit-related alarms, not both. The driver should just reflect the hardware
> implementation.
>
> in[0-*]_alarm
> +in[0-*]_crit_alarm
> +curr[1-*]_alarm
> +curr[1-*]_crit_alarm
> +power[1-*]_alarm
> +power[1-*]_crit_alarm
> fan[1-*]_alarm
> temp[1-*]_alarm
> +temp[1-*]_crit_alarm
> Channel alarm
> 0: no alarm
> 1: alarm
The limit-specific alarms (*_crit_alarm) go in the second section,
below. And as a matter of fact, you've already added some of them
there...
> @@ -482,10 +501,17 @@ OR
>
> in[0-*]_min_alarm
> in[0-*]_max_alarm
> +in[0-*]_lcrit_alarm
> +in[0-*]_crit_alarm
> +curr[1-*]_lcrit_alarm
> +curr[1-*]_crit_alarm
No _min and _max alarm for curr?
> +power[1-*]_min_alarm
> +power[1-*]_max_alarm
> fan[1-*]_min_alarm
> fan[1-*]_max_alarm
> temp[1-*]_min_alarm
> temp[1-*]_max_alarm
> +temp[1-*]_lcrit_alarm
> temp[1-*]_crit_alarm
> Limit alarm
> 0: no alarm
> @@ -497,7 +523,6 @@ to notify open diodes, unconnected fans etc. where the hardware
> supports it. When this boolean has value 1, the measurement for that
> channel should not be trusted.
>
> -in[0-*]_fault
I've removed it already in a separate patch, so your patch won't apply
if you try to remove it again.
> fan[1-*]_fault
> temp[1-*]_fault
> Input fault condition
In general, I'm happy with the proposed changes.
--
Jean Delvare
WARNING: multiple messages have this Message-ID (diff)
From: Jean Delvare <khali@linux-fr.org>
To: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Jonathan Cameron <kernel@jic23.retrosnub.co.uk>,
Randy Dunlap <rdunlap@xenotime.net>,
Andrew Morton <akpm@linux-foundation.org>,
"Ira W. Snyder" <iws@ovro.caltech.edu>,
"Darrick J. Wong" <djwong@us.ibm.com>,
"Ben Dooks (embedded platforms)" <ben-linux@fluff.org>,
Hans de Goede <hdegoede@redhat.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Samuel Ortiz <sameo@linux.intel.com>,
Crane Cai <crane.cai@amd.com>,
Linus Walleij <linus.walleij@stericsson.com>,
Ralf Baechle <ralf@linux-mips.org>,
lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org,
Guenter Roeck <guenter.roeck@ericsson.com>
Subject: Re: [lm-sensors] [PATCH/RFC v2 4/4] hwmon: sysfs API updates
Date: Mon, 05 Jul 2010 07:18:57 +0000 [thread overview]
Message-ID: <20100705091857.77ce0077@hyperion.delvare> (raw)
In-Reply-To: <1278303018-22069-5-git-send-email-guenter.roeck@ericsson.com>
Hi Guenter,
On Sun, 4 Jul 2010 21:10:18 -0700, Guenter Roeck wrote:
> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
> ---
> Documentation/hwmon/sysfs-interface | 37 +++++++++++++++++++++++++++++-----
> 1 files changed, 31 insertions(+), 6 deletions(-)
As usual, I don't have the time to review the code, but I'd like to at
least comment on the sysfs interface changes:
>
> diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
> index d4e2917..2dcec0f 100644
> --- a/Documentation/hwmon/sysfs-interface
> +++ b/Documentation/hwmon/sysfs-interface
> @@ -421,11 +421,12 @@ power[1-*]_accuracy Accuracy of the power meter.
> Unit: Percent
> RO
>
> -power[1-*]_alarm 1 if the system is drawing more power than the
> - cap allows; 0 otherwise. A poll notification is
> - sent to this file when the power use exceeds the
> - cap. This file only appears if the cap is known
> - to be enforced by hardware.
> +power[1-*]_alarm 1 if the system is drawing more power than cap
> + or max allows; 0 otherwise. A poll notification
> + is sent to this file when the power use exceeds
> + the cap or max limit. If only cap is supported,
> + this file only appears if the cap is known to be
> + enforced by hardware.
> RO
>
> power[1-*]_cap If power use rises above this limit, the
> @@ -450,6 +451,18 @@ power[1-*]_cap_min Minimum cap that can be set.
> Unit: microWatt
> RO
>
> +power[1-*]_max Maximum power.
> + Unit: microWatt
> + RW
> +
> +power[1-*]_crit Critical maximum power.
> + If power rises to or above this limit, the
> + system will take drastic action to reduce power
> + consumption, such as a system shutdown. At the
> + very least, a power fault will be generated.
> + Unit: microWatt
> + RO
Why RO and not RW as every other limit file?
> +
> **********
> * Energy *
> **********
> @@ -471,8 +484,14 @@ limit-related alarms, not both. The driver should just reflect the hardware
> implementation.
>
> in[0-*]_alarm
> +in[0-*]_crit_alarm
> +curr[1-*]_alarm
> +curr[1-*]_crit_alarm
> +power[1-*]_alarm
> +power[1-*]_crit_alarm
> fan[1-*]_alarm
> temp[1-*]_alarm
> +temp[1-*]_crit_alarm
> Channel alarm
> 0: no alarm
> 1: alarm
The limit-specific alarms (*_crit_alarm) go in the second section,
below. And as a matter of fact, you've already added some of them
there...
> @@ -482,10 +501,17 @@ OR
>
> in[0-*]_min_alarm
> in[0-*]_max_alarm
> +in[0-*]_lcrit_alarm
> +in[0-*]_crit_alarm
> +curr[1-*]_lcrit_alarm
> +curr[1-*]_crit_alarm
No _min and _max alarm for curr?
> +power[1-*]_min_alarm
> +power[1-*]_max_alarm
> fan[1-*]_min_alarm
> fan[1-*]_max_alarm
> temp[1-*]_min_alarm
> temp[1-*]_max_alarm
> +temp[1-*]_lcrit_alarm
> temp[1-*]_crit_alarm
> Limit alarm
> 0: no alarm
> @@ -497,7 +523,6 @@ to notify open diodes, unconnected fans etc. where the hardware
> supports it. When this boolean has value 1, the measurement for that
> channel should not be trusted.
>
> -in[0-*]_fault
I've removed it already in a separate patch, so your patch won't apply
if you try to remove it again.
> fan[1-*]_fault
> temp[1-*]_fault
> Input fault condition
In general, I'm happy with the proposed changes.
--
Jean Delvare
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
WARNING: multiple messages have this Message-ID (diff)
From: Jean Delvare <khali@linux-fr.org>
To: Guenter Roeck <guenter.roeck@ericsson.com>
Cc: Jonathan Cameron <kernel@jic23.retrosnub.co.uk>,
Randy Dunlap <rdunlap@xenotime.net>,
Andrew Morton <akpm@linux-foundation.org>,
"Ira W. Snyder" <iws@ovro.caltech.edu>,
"Darrick J. Wong" <djwong@us.ibm.com>,
"Ben Dooks (embedded platforms)" <ben-linux@fluff.org>,
Hans de Goede <hdegoede@redhat.com>,
Mark Brown <broonie@opensource.wolfsonmicro.com>,
Samuel Ortiz <sameo@linux.intel.com>,
Crane Cai <crane.cai@amd.com>,
Linus Walleij <linus.walleij@stericsson.com>,
Ralf Baechle <ralf@linux-mips.org>,
lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org,
linux-i2c@vger.kernel.org,
Guenter Roeck <guenter.roeck@ericsson.com>
Subject: Re: [PATCH/RFC v2 4/4] hwmon: sysfs API updates
Date: Mon, 5 Jul 2010 09:18:57 +0200 [thread overview]
Message-ID: <20100705091857.77ce0077@hyperion.delvare> (raw)
In-Reply-To: <1278303018-22069-5-git-send-email-guenter.roeck@ericsson.com>
Hi Guenter,
On Sun, 4 Jul 2010 21:10:18 -0700, Guenter Roeck wrote:
> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
> ---
> Documentation/hwmon/sysfs-interface | 37 +++++++++++++++++++++++++++++-----
> 1 files changed, 31 insertions(+), 6 deletions(-)
As usual, I don't have the time to review the code, but I'd like to at
least comment on the sysfs interface changes:
>
> diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
> index d4e2917..2dcec0f 100644
> --- a/Documentation/hwmon/sysfs-interface
> +++ b/Documentation/hwmon/sysfs-interface
> @@ -421,11 +421,12 @@ power[1-*]_accuracy Accuracy of the power meter.
> Unit: Percent
> RO
>
> -power[1-*]_alarm 1 if the system is drawing more power than the
> - cap allows; 0 otherwise. A poll notification is
> - sent to this file when the power use exceeds the
> - cap. This file only appears if the cap is known
> - to be enforced by hardware.
> +power[1-*]_alarm 1 if the system is drawing more power than cap
> + or max allows; 0 otherwise. A poll notification
> + is sent to this file when the power use exceeds
> + the cap or max limit. If only cap is supported,
> + this file only appears if the cap is known to be
> + enforced by hardware.
> RO
>
> power[1-*]_cap If power use rises above this limit, the
> @@ -450,6 +451,18 @@ power[1-*]_cap_min Minimum cap that can be set.
> Unit: microWatt
> RO
>
> +power[1-*]_max Maximum power.
> + Unit: microWatt
> + RW
> +
> +power[1-*]_crit Critical maximum power.
> + If power rises to or above this limit, the
> + system will take drastic action to reduce power
> + consumption, such as a system shutdown. At the
> + very least, a power fault will be generated.
> + Unit: microWatt
> + RO
Why RO and not RW as every other limit file?
> +
> **********
> * Energy *
> **********
> @@ -471,8 +484,14 @@ limit-related alarms, not both. The driver should just reflect the hardware
> implementation.
>
> in[0-*]_alarm
> +in[0-*]_crit_alarm
> +curr[1-*]_alarm
> +curr[1-*]_crit_alarm
> +power[1-*]_alarm
> +power[1-*]_crit_alarm
> fan[1-*]_alarm
> temp[1-*]_alarm
> +temp[1-*]_crit_alarm
> Channel alarm
> 0: no alarm
> 1: alarm
The limit-specific alarms (*_crit_alarm) go in the second section,
below. And as a matter of fact, you've already added some of them
there...
> @@ -482,10 +501,17 @@ OR
>
> in[0-*]_min_alarm
> in[0-*]_max_alarm
> +in[0-*]_lcrit_alarm
> +in[0-*]_crit_alarm
> +curr[1-*]_lcrit_alarm
> +curr[1-*]_crit_alarm
No _min and _max alarm for curr?
> +power[1-*]_min_alarm
> +power[1-*]_max_alarm
> fan[1-*]_min_alarm
> fan[1-*]_max_alarm
> temp[1-*]_min_alarm
> temp[1-*]_max_alarm
> +temp[1-*]_lcrit_alarm
> temp[1-*]_crit_alarm
> Limit alarm
> 0: no alarm
> @@ -497,7 +523,6 @@ to notify open diodes, unconnected fans etc. where the hardware
> supports it. When this boolean has value 1, the measurement for that
> channel should not be trusted.
>
> -in[0-*]_fault
I've removed it already in a separate patch, so your patch won't apply
if you try to remove it again.
> fan[1-*]_fault
> temp[1-*]_fault
> Input fault condition
In general, I'm happy with the proposed changes.
--
Jean Delvare
next prev parent reply other threads:[~2010-07-05 7:18 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-07-05 4:10 [PATCH/RFC v2 0/4] hwmon: PMBus device driver Guenter Roeck
2010-07-05 4:10 ` Guenter Roeck
2010-07-05 4:10 ` [lm-sensors] " Guenter Roeck
[not found] ` <1278303018-22069-1-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2010-07-05 4:10 ` [PATCH/RFC v2 1/4] " Guenter Roeck
2010-07-05 4:10 ` Guenter Roeck
2010-07-05 4:10 ` [lm-sensors] " Guenter Roeck
2010-07-05 4:10 ` [PATCH/RFC v2 2/4] hwmon: i2c PMBus device emulator Guenter Roeck
2010-07-05 4:10 ` Guenter Roeck
2010-07-05 4:10 ` [lm-sensors] " Guenter Roeck
2010-07-05 4:10 ` [PATCH/RFC v2 3/4] hwmon: pmbus driver documentation Guenter Roeck
2010-07-05 4:10 ` Guenter Roeck
2010-07-05 4:10 ` [lm-sensors] " Guenter Roeck
2010-07-05 4:10 ` [PATCH/RFC v2 4/4] hwmon: sysfs API updates Guenter Roeck
2010-07-05 4:10 ` Guenter Roeck
2010-07-05 4:10 ` [lm-sensors] " Guenter Roeck
[not found] ` <1278303018-22069-5-git-send-email-guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2010-07-05 7:18 ` Jean Delvare [this message]
2010-07-05 7:18 ` Jean Delvare
2010-07-05 7:18 ` [lm-sensors] " Jean Delvare
[not found] ` <20100705091857.77ce0077-ig7AzVSIIG7kN2dkZ6Wm7A@public.gmane.org>
2010-07-05 21:39 ` Guenter Roeck
2010-07-05 21:39 ` Guenter Roeck
2010-07-05 21:39 ` [lm-sensors] " Guenter Roeck
[not found] ` <20100705213953.GA27095-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org>
2010-07-06 7:21 ` Jean Delvare
2010-07-06 7:21 ` Jean Delvare
2010-07-06 7:21 ` [lm-sensors] " Jean Delvare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100705091857.77ce0077@hyperion.delvare \
--to=khali-puyad+kwke1g9huczpvpmw@public.gmane.org \
--cc=akpm-de/tnXTf+JLsfHDXvbKv3WD2FQJk+8+b@public.gmane.org \
--cc=ben-linux-elnMNo+KYs3YtjvyW6yDsg@public.gmane.org \
--cc=broonie-yzvPICuk2AATkU/dhu1WVueM+bqZidxxQQ4Iyu8u01E@public.gmane.org \
--cc=crane.cai-5C7GfCeVMHo@public.gmane.org \
--cc=djwong-r/Jw6+rmf7HQT0dZR+AlfA@public.gmane.org \
--cc=guenter.roeck-IzeFyvvaP7pWk0Htik3J/w@public.gmane.org \
--cc=hdegoede-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=iws-lulEs6mt1IksTUYHLfqkUA@public.gmane.org \
--cc=kernel-tko9wxEg+fIOOJlXag/Snyp2UmYkHbXO@public.gmane.org \
--cc=linus.walleij-0IS4wlFg1OjSUeElwK9/Pw@public.gmane.org \
--cc=linux-i2c-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=lm-sensors-GZX6beZjE8VD60Wz+7aTrA@public.gmane.org \
--cc=ralf-6z/3iImG2C8G8FEW9MqTrA@public.gmane.org \
--cc=rdunlap-/UHa2rfvQTnk1uMJSBkQmQ@public.gmane.org \
--cc=sameo-VuQAYsv1563Yd54FQh9/CA@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.