All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jean Delvare <khali@linux-fr.org>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] tempx_max_hyst > tempx_max?
Date: Wed, 05 Nov 2008 18:05:09 +0000	[thread overview]
Message-ID: <20081105190509.08396f08@hyperion.delvare> (raw)
In-Reply-To: <157004.2853.qm@web58501.mail.re3.yahoo.com>

On Sun, 2 Nov 2008 07:17:58 -0800 (PST), shaul Karl wrote:
> etc/sensors3.conf of lm-sensors-3 (1:3.0.2-1+b2) in Debian states that
> 
>     # Think of tempx_max as 'alarm set' and tempx_max_hyst as 'alarm clear'
>     # thresholds. In most cases the 'max' value should be higher than
>     # the 'max_hyst' value by several degrees.
> 
>   In what cases would you set the 'max' value equal to the 'max_hyst'
> value?

If you want to disable the hysteresis mechanism.

> Is it pointless for the 'max_hyst' value to be higher than the
> 'max' value? 

Yes it is, and many chips will not even let you do that because
internally they store the hysteresis as a delta to the max limit. Other
chips will behave as if max_hyst = hyst, and I suspect some may even
misbehave, clearing the alarm even though the measurement is above the
max limit.

There's one exception though: some chips out there disable the
hysteresis mechanism or even change the interrupt behavior when the
hysteresis is set to special value 127. There is unfortunately no way
for the drivers to expose this property to user-space, so you have to
know how if your chip does that.

>   I would say that the last statement about tempx_max_hyst > tempx_max
> is confusing.

And I would say you did not read this statement carefully. All the
value of this statement is in the last 3 words.

-- 
Jean Delvare

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

  reply	other threads:[~2008-11-05 18:05 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-02 15:17 [lm-sensors] tempx_max_hyst > tempx_max? shaul Karl
2008-11-05 18:05 ` Jean Delvare [this message]
2008-11-05 19:52 ` shaul Karl
2008-12-06  9:33 ` Jean Delvare
2008-12-07 16:26 ` Jean Delvare

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=20081105190509.08396f08@hyperion.delvare \
    --to=khali@linux-fr.org \
    --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.