From: Jean Delvare <khali@linux-fr.org>
To: "Darrick J. Wong" <djwong@us.ibm.com>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
lm-sensors <lm-sensors@lm-sensors.org>
Subject: Re: [lm-sensors] [PATCH 1/2] Define sysfs interfaces for ibmaem
Date: Sat, 29 Mar 2008 13:56:03 +0000 [thread overview]
Message-ID: <20080329145603.7e47418f@hyperion.delvare> (raw)
In-Reply-To: <20080328213646.GC7191@tree.beaverton.ibm.com>
Hi Darrick,
On Fri, 28 Mar 2008 14:36:46 -0700, Darrick J. Wong wrote:
> Update sysfs interface documentation to include energy meters and power
> meter averaging intervals.
>
> Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
> ---
>
> Documentation/hwmon/sysfs-interface | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
> index f4a8ebc..85e6654 100644
> --- a/Documentation/hwmon/sysfs-interface
> +++ b/Documentation/hwmon/sysfs-interface
> @@ -328,6 +328,14 @@ curr[1-*]_input Current input value
> Unit: milliampere
> RO
>
> +**********
> +* Energy *
> +**********
> +
> +energy[1-*]_input Instantaneous energy use
This doesn't make sense to me. Energy is a quantity, it exists
independently of time. An "instantaneous energy use" only makes sense
if you tell in what (presumably very small) amount of time the energy
was used... and then what you are measuring is not an energy but a
power, for which we already have an interface. Please clarify.
> + Unit: microJoule
> + RO
> +
> *********
> * Power *
> *********
> @@ -336,6 +344,10 @@ power[1-*]_average Average power use
> Unit: microWatt
> RO
>
> +power[1-*]_interval Power use averaging interval
Wouldn't power[1-*]_average_interval be clearer?
> + Unit: milliseconds
Nitpicking for consistency: millisecond (no trailing s).
What values do you expect for this entry? I am wondering if it's safe
to use millisecond as a unit. Is it unlikely that a future chip will
support averaging intervals below the millisecond?
> + RW
> +
> power[1-*]_average_highest Historical average maximum power use
> Unit: microWatt
> RO
--
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: "Darrick J. Wong" <djwong@us.ibm.com>
Cc: "Mark M. Hoffman" <mhoffman@lightlink.com>,
linux-kernel <linux-kernel@vger.kernel.org>,
lm-sensors <lm-sensors@lm-sensors.org>
Subject: Re: [PATCH 1/2] Define sysfs interfaces for ibmaem driver
Date: Sat, 29 Mar 2008 14:56:03 +0100 [thread overview]
Message-ID: <20080329145603.7e47418f@hyperion.delvare> (raw)
In-Reply-To: <20080328213646.GC7191@tree.beaverton.ibm.com>
Hi Darrick,
On Fri, 28 Mar 2008 14:36:46 -0700, Darrick J. Wong wrote:
> Update sysfs interface documentation to include energy meters and power
> meter averaging intervals.
>
> Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
> ---
>
> Documentation/hwmon/sysfs-interface | 12 ++++++++++++
> 1 files changed, 12 insertions(+), 0 deletions(-)
>
> diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
> index f4a8ebc..85e6654 100644
> --- a/Documentation/hwmon/sysfs-interface
> +++ b/Documentation/hwmon/sysfs-interface
> @@ -328,6 +328,14 @@ curr[1-*]_input Current input value
> Unit: milliampere
> RO
>
> +**********
> +* Energy *
> +**********
> +
> +energy[1-*]_input Instantaneous energy use
This doesn't make sense to me. Energy is a quantity, it exists
independently of time. An "instantaneous energy use" only makes sense
if you tell in what (presumably very small) amount of time the energy
was used... and then what you are measuring is not an energy but a
power, for which we already have an interface. Please clarify.
> + Unit: microJoule
> + RO
> +
> *********
> * Power *
> *********
> @@ -336,6 +344,10 @@ power[1-*]_average Average power use
> Unit: microWatt
> RO
>
> +power[1-*]_interval Power use averaging interval
Wouldn't power[1-*]_average_interval be clearer?
> + Unit: milliseconds
Nitpicking for consistency: millisecond (no trailing s).
What values do you expect for this entry? I am wondering if it's safe
to use millisecond as a unit. Is it unlikely that a future chip will
support averaging intervals below the millisecond?
> + RW
> +
> power[1-*]_average_highest Historical average maximum power use
> Unit: microWatt
> RO
--
Jean Delvare
next prev parent reply other threads:[~2008-03-29 13:56 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-28 21:36 [lm-sensors] [PATCH 1/2] Define sysfs interfaces for ibmaem driver Darrick J. Wong
2008-03-28 21:36 ` Darrick J. Wong
2008-03-29 13:56 ` Jean Delvare [this message]
2008-03-29 13:56 ` Jean Delvare
2008-03-31 19:55 ` [lm-sensors] [PATCH 1/2] Define sysfs interfaces for ibmaem Wes Felter
2008-03-31 19:55 ` [PATCH 1/2] Define sysfs interfaces for ibmaem driver Wes Felter
2008-03-31 21:01 ` [lm-sensors] [PATCH 1/2] Define sysfs interfaces for ibmaem Darrick J. Wong
2008-03-31 21:01 ` [PATCH 1/2] Define sysfs interfaces for ibmaem driver Darrick J. Wong
2008-04-01 8:22 ` [lm-sensors] [PATCH 1/2] Define sysfs interfaces for ibmaem Jean Delvare
2008-04-01 8:22 ` [PATCH 1/2] Define sysfs interfaces for ibmaem driver Jean Delvare
2008-04-01 8:47 ` [lm-sensors] [PATCH 1/2] Define sysfs interfaces for ibmaem Darrick J. Wong
2008-04-01 8:47 ` [PATCH 1/2] Define sysfs interfaces for ibmaem driver Darrick J. Wong
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=20080329145603.7e47418f@hyperion.delvare \
--to=khali@linux-fr.org \
--cc=djwong@us.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=mhoffman@lightlink.com \
/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.