lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Thu, 24 Jun 2010 16:40:58 -0700
From:	Guenter Roeck <guenter.roeck@...csson.com>
To:	"Ira W. Snyder" <iws@...o.caltech.edu>
CC:	Randy Dunlap <rdunlap@...otime.net>,
	Jean Delvare <khali@...ux-fr.org>,
	Andrew Morton <akpm@...ux-foundation.org>,
	Hans de Goede <hdegoede@...hat.com>,
	Mark Brown <broonie@...nsource.wolfsonmicro.com>,
	Samuel Ortiz <sameo@...ux.intel.com>,
	Jonathan Cameron <kernel@...23.retrosnub.co.uk>,
	"lm-sensors@...sensors.org" <lm-sensors@...sensors.org>,
	"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
	"linux-doc@...r.kernel.org" <linux-doc@...r.kernel.org>
Subject: Re: [PATCH v3 3/4] hwmon: Update sysfs-interface to include new
 attributes

On Thu, Jun 24, 2010 at 07:32:40PM -0400, Ira W. Snyder wrote:
> On Thu, Jun 24, 2010 at 03:01:00PM -0700, Guenter Roeck wrote:
> > Added _lcrit and _crit to voltage attributes. 
> > Added _lcrit to temperature attributes.
> > 
> > Signed-off-by: Guenter Roeck <guenter.roeck@...csson.com>
> > ---
> >  Documentation/hwmon/sysfs-interface |   21 ++++++++++++++++++++-
> >  1 files changed, 20 insertions(+), 1 deletions(-)
> > 
> > diff --git a/Documentation/hwmon/sysfs-interface b/Documentation/hwmon/sysfs-interface
> > index d4e2917..7f60c0d 100644
> > --- a/Documentation/hwmon/sysfs-interface
> > +++ b/Documentation/hwmon/sysfs-interface
> > @@ -107,10 +107,24 @@ in[0-*]_min	Voltage min value.
> >  		Unit: millivolt
> >  		RW
> >  		
> > +in[0-*]_lcrit	Voltage critical min value.
> > +		Unit: millivolt
> > +		RW
> > +		If voltage drops to or below this limit, the system may
> > +		take drastic action such as power down or reset. At the very
> > +		least, it should report a fault.
> > +
> >  in[0-*]_max	Voltage max value.
> >  		Unit: millivolt
> >  		RW
> >  		
> > +in[0-*]_crit	Voltage critical max value.
> > +		Unit: millivolt
> > +		RW
> > +		If voltage reaches or exceeds this limit, the system may
> > +		take drastic action such as power down or reset. At the very
> > +		least, it should report a fault.
> > +
> 
> The critical voltages API looks good to me.
> 
> I have a hwmon chip driver for the TI INA209 (which Jean NAK'd) that
> could use these limits. I'll submit it again soon with changes to use
> this new set of sysfs attributes.
> 
> It would be great to see a patch to libsensors and the sensors program
> to allow it to display these limits too.
> 
I am working on it. I'll send the patch to Jean as soon as the kernel changes
have been approved. 

Guenter

> Thanks,
> Ira
> 
> >  in[0-*]_input	Voltage input value.
> >  		Unit: millivolt
> >  		RO
> > @@ -284,11 +298,16 @@ temp[1-*]_input Temperature input value.
> >  		Unit: millidegree Celsius
> >  		RO
> >  
> > -temp[1-*]_crit	Temperature critical value, typically greater than
> > +temp[1-*]_crit	Temperature critical max value, typically greater than
> >  		corresponding temp_max values.
> >  		Unit: millidegree Celsius
> >  		RW
> >  
> > +temp[1-*]_lcrit	Temperature critical min value, typically lower than
> > +		corresponding temp_min values.
> > +		Unit: millidegree Celsius
> > +		RW
> > +
> >  temp[1-*]_crit_hyst
> >  		Temperature hysteresis value for critical limit.
> >  		Unit: millidegree Celsius
> > -- 
> > 1.7.0.87.g0901d
> > 
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ