From: Pavel Machek <pavel@ucw.cz>
To: "Darrick J. Wong" <djwong@us.ibm.com>
Cc: Len Brown <lenb@kernel.org>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel <linux-kernel@vger.kernel.org>,
lm-sensors <lm-sensors@lm-sensors.org>,
linux-acpi <linux-acpi@vger.kernel.org>,
Zhang Rui <rui.zhang@intel.com>
Subject: Re: [PATCH 1/2] hwmon: Enhance the sysfs API for power meters.
Date: Sat, 8 Aug 2009 23:48:30 +0200 [thread overview]
Message-ID: <20090808214830.GC24153@elf.ucw.cz> (raw)
In-Reply-To: <20090808174020.GA29600@tux1.beaverton.ibm.com>
On Sat 2009-08-08 10:40:20, Darrick J. Wong wrote:
> On Fri, Aug 07, 2009 at 08:09:06PM +0200, Pavel Machek wrote:
> >
> > > @@ -365,6 +373,16 @@ power[1-*]_average_lowest Historical average minimum power use
> > > Unit: microWatt
> > > RO
> > >
> > > +power[1-*]_average_max A notification is sent when power use
> > > + rises above this value.
> > > + Unit: microWatt
> > > + RW
> > > +
> >
> > How is the notification sent?
>
> ACPI Notify is sent to the kernel, which passes it to the ACPI
> netlink socket.
Uhuh. This is hwmon documentation AFAICT; so a) it should be
documented here, and b) interface should be generic so that it works
without ACPI, too.
> > > +power[1-*]_average_min A notification is sent when power use
> > > + sinks below this value.
> > > + Unit: microWatt
> > > + RW
> >
> > And what is this good for? Will it wake from sleep? Will it wake from
> > C3?
>
> All it really does is generates an ACPI Notify event, which is a hint to the OS
> that it could re-read the power meter use.
So it is one-shot? Document that.
> > ...seems like good way to prevent deep sleep states.
> >
> > > +power[1-*]_cap If power use rises above this limit, the
> > > + system should take action to reduce
> > > power use.
> >
> > System as in 'hw'? Or who? And how?
>
> The ACPI spec is silent on this matter. It's not clear if the OS is supposed
> to monitor and take action on its own when power > cap, or if the hardware/BIOS
> will take action, or possibly both...?
Having user<->kernel interface that is well... uh... undocumented
makes little sense.
Pavel
--
(english) http://www.livejournal.com/~pavelmachek
(cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html
next prev parent reply other threads:[~2009-08-08 21:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-25 0:43 [PATCH 0/2] ACPI 4.0 power meter Darrick J. Wong
2009-07-25 0:43 ` [PATCH 1/2] hwmon: Enhance the sysfs API for power meters Darrick J. Wong
2009-08-07 18:09 ` Pavel Machek
2009-08-08 17:40 ` Darrick J. Wong
2009-08-08 21:48 ` Pavel Machek [this message]
2009-08-10 21:12 ` Darrick J. Wong
2009-08-12 11:56 ` Pavel Machek
2009-08-18 23:32 ` Darrick J. Wong
2009-07-25 0:43 ` [PATCH 2/2] acpi_power_meter: hwmon driver for ACPI 4.0 " Darrick J. Wong
2009-07-27 1:44 ` ykzhao
2009-08-03 20:48 ` Darrick J. Wong
2009-07-27 6:45 ` Zhang Rui
2009-08-03 20:52 ` Darrick J. Wong
2009-07-28 1:25 ` Len Brown
2009-08-03 20:58 ` Darrick J. Wong
2009-08-06 20:42 ` [PATCH v2] " Darrick J. Wong
2009-08-17 22:05 ` Andrew Morton
2009-08-18 16:24 ` Darrick J. Wong
-- strict thread matches above, loose matches on Subject: below --
2009-08-18 23:47 [PATCH 0/2] ACPI 4.0 power meter Darrick J. Wong
2009-08-18 23:48 ` [PATCH 1/2] hwmon: Enhance the sysfs API for power meters 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=20090808214830.GC24153@elf.ucw.cz \
--to=pavel@ucw.cz \
--cc=akpm@linux-foundation.org \
--cc=djwong@us.ibm.com \
--cc=lenb@kernel.org \
--cc=linux-acpi@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=rui.zhang@intel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).