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, 13 Sep 2011 12:55:38 +0000	[thread overview]
Message-ID: <20110913125538.GA26372@ericsson.com> (raw)
In-Reply-To: <1310468836-5517-1-git-send-email-durgadoss.r@intel.com>

On Tue, Sep 13, 2011 at 05:22:40AM -0400, R, Durgadoss wrote:
> Hi Jean,
> 
> [snip] 
> > I am still suspicious... Does this mean that the thermal interrupt
> > mechanism is disabled by default?
> [snip]
> 
> As you rightly pointed out, the Interrupts for the thresholds are disabled,
> by default. We have to enable them if we decide to do so.
> If we enable them, we will get interrupts when the input temperature
> Crosses temp1_max and temp1_max_hyst in either directions. 
> 
> The temp1_max is supposed to be more than temp1_input and
> temp1_max_hyst is supposed to be lesser than temp1_input.
> By default the temp1_max_hyst is left at 0.
> 
Should be set to something useful. Also, it does not have to be less
than temp1_input, as long as it is less than temp1_max (which was my
understanding). Worst case you would get another interrupt (when the
temperature crosses temp1_max_hyst from below) which you would ignore.

Interrupts should be enabled, and you can send uevents and sysfs notifications
whenever a threshold is crossed. All you would have to do is to keep the old alarm
state and send events whenever it changes.

Example:
	temp@, max_thresholdP, max`

1st interrupt when temp reaches 50 -> ignore
2nd interrupt when temp reaches 60 -> set alarm, send uevent and sysfs notifications
3rd interrupt when temp reaches 60 (from above) -> ignore
4th interrupt when temp reaches 50 (from above) -> reset alarm, send uevent and sysfs notifications 

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-13 12:55 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 [this message]
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

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=20110913125538.GA26372@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.