From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752670AbZHHRnl (ORCPT ); Sat, 8 Aug 2009 13:43:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751215AbZHHRnl (ORCPT ); Sat, 8 Aug 2009 13:43:41 -0400 Received: from e31.co.us.ibm.com ([32.97.110.149]:47792 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750827AbZHHRnk (ORCPT ); Sat, 8 Aug 2009 13:43:40 -0400 Date: Sat, 8 Aug 2009 10:40:20 -0700 From: "Darrick J. Wong" To: Pavel Machek Cc: Len Brown , Andrew Morton , linux-kernel , lm-sensors , linux-acpi , Zhang Rui Subject: Re: [PATCH 1/2] hwmon: Enhance the sysfs API for power meters. Message-ID: <20090808174020.GA29600@tux1.beaverton.ibm.com> Reply-To: djwong@us.ibm.com References: <20090725004322.20709.96804.stgit@elm3a70.beaverton.ibm.com> <20090725004328.20709.57712.stgit@elm3a70.beaverton.ibm.com> <20090807180906.GD1728@ucw.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20090807180906.GD1728@ucw.cz> User-Agent: Mutt/1.5.17+20080114 (2008-01-14) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. > > +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. > > ...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...? --D