All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <guenter.roeck@ericsson.com>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCHv4 1/1] Hwmon: Add core/pkg Threshold
Date: Tue, 20 Sep 2011 04:03:53 +0000	[thread overview]
Message-ID: <20110920040353.GA12889@ericsson.com> (raw)
In-Reply-To: <1310468836-5517-1-git-send-email-durgadoss.r@intel.com>

Hi Durga,

On Mon, Sep 19, 2011 at 11:27:56PM -0400, R, Durgadoss wrote:
> Hi Guenter,
> 
> > -----Original Message-----
> > From: Guenter Roeck [mailto:guenter.roeck@ericsson.com]
> > Sent: Monday, September 19, 2011 10:54 PM
> > To: Jean Delvare
> > Cc: R, Durgadoss; lm-sensors@lm-sensors.org
> > Subject: Re: [lm-sensors] [PATCHv4 1/1] Hwmon: Add core/pkg Threshold Support
> > to Coretemp
> > 
> > On Sun, 2011-09-18 at 13:24 -0400, Jean Delvare wrote:
> > > On Sat, 17 Sep 2011 11:09:43 -0700, Guenter Roeck wrote:
> > > > Hi Durga,
> > > >
> > > > On Sat, Sep 17, 2011 at 01:40:41PM -0400, R, Durgadoss wrote:
> > > > > Hi Guenter,
> > > > >
> > > > [ ... ]
> > > >
> > > > > > > For me, it looks like, we need not know whether the threshold is
> > upper or
> > > > > > lower.
> > > > > > > Anyway, for every threshold, we will get two interrupts (for either
> > > > > > direction)
> > > > > > > So, the user space can assume either a lower threshold and look for 0
> > in the
> > > > > > > Corresponding alarm interface Or a higher threshold and look for 1 in
> > the
> > > > > > > alarm interface. Will this not work ?
> > > > > > >
> > > > > > For a lower threshold, "alarm" implies "temperature is at or below
> > threshold",
> > > > > > In other words, "alarm" can mean that a value is above or below a given
> > > > > > threshold -
> > > > > > it has a semantics that depends on its context.
> > > > > >
> > > > > > This context is not known in the case of a generic threshold. This is
> > why I
> > > > > > suggested
> > > > > > to use a more neutral term, such as "triggered", which would imply "at
> > or above
> > > > > > threshold" (or possibly just "threshold triggered" if the direction is
> > not
> > > > > > known)
> > > > > > without attaching a semantics to it.
> > > > > >
> > > > >
> > > > > Ok. I agree. We can use tempX_thresholdY_triggered.
> > > > >
> > > > I'd like to hear Jean's opinion first.
> > >
> > > I'm fine with your proposal, yes.
> > >
> > > > Also, if we introduce new attributes, we should probably reinstate the old
> > "max".
> > >
> > > Definitely. And preferably the 2.6.39 variant rather than the 3.0
> > > variant, i.e. no magical -20°C offset, unless someone can explain where
> > > it comes from.
> > >
> > Sounds good.
> > 
> > Durga, do you have time to make those changes ?
> > 
> 
> I hope I can find some time in a couple of days.
> So I Will submit a patch for this.
> 
Never mind - I needed distraction and coded it in the last hour or so.

I'll test it tomorrow and send a patch unless I hit a major snag.

Thanks,
Guenter

_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

      parent reply	other threads:[~2011-09-20  4:03 UTC|newest]

Thread overview: 37+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-12  5:45 [lm-sensors] [PATCHv4 1/1] Hwmon: Add core/pkg Threshold Support to Durgadoss R
2011-07-13 20:48 ` [lm-sensors] [PATCHv4 1/1] Hwmon: Add core/pkg Threshold Guenter Roeck
2011-09-12 16:18 ` Jean Delvare
2011-09-12 17:13 ` Guenter Roeck
2011-09-12 18:44 ` Jean Delvare
2011-09-13  9:34 ` R, Durgadoss
2011-09-13 12:55 ` Guenter Roeck
2011-09-13 13:40 ` R, Durgadoss
2011-09-13 13:45 ` Guenter Roeck
2011-09-13 14:13 ` Jean Delvare
2011-09-13 15:11 ` Jean Delvare
2011-09-13 15:20 ` Guenter Roeck
2011-09-16 17:00 ` Jean Delvare
2011-09-16 17:48 ` Guenter Roeck
2011-09-16 19:21 ` Jean Delvare
2011-09-16 19:40 ` Guenter Roeck
2011-09-17  5:52 ` R, Durgadoss
2011-09-17 10:12 ` Guenter Roeck
2011-09-17 10:20 ` Jean Delvare
2011-09-17 12:00 ` Jean Delvare
2011-09-17 16:09 ` Guenter Roeck
2011-09-17 16:31 ` Guenter Roeck
2011-09-17 17:08 ` Guenter Roeck
2011-09-17 17:10 ` R, Durgadoss
2011-09-17 17:35 ` R, Durgadoss
2011-09-17 17:36 ` Guenter Roeck
2011-09-17 17:52 ` R, Durgadoss
2011-09-17 18:09 ` Guenter Roeck
2011-09-18 13:30 ` Jean Delvare
2011-09-18 16:46 ` Guenter Roeck
2011-09-18 17:24 ` Jean Delvare
2011-09-18 19:54 ` Jean Delvare
2011-09-18 19:59 ` Jean Delvare
2011-09-18 20:04 ` Jean Delvare
2011-09-19 17:23 ` Guenter Roeck
2011-09-20  3:39 ` R, Durgadoss
2011-09-20  4:03 ` Guenter Roeck [this message]

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=20110920040353.GA12889@ericsson.com \
    --to=guenter.roeck@ericsson.com \
    --cc=lm-sensors@vger.kernel.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.