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: Sun, 18 Sep 2011 16:46:32 +0000	[thread overview]
Message-ID: <20110918164632.GA29553@ericsson.com> (raw)
In-Reply-To: <1310468836-5517-1-git-send-email-durgadoss.r@intel.com>

On Sun, Sep 18, 2011 at 09:30:22AM -0400, Jean Delvare wrote:
> Hi Guenter,
> 
> On Sat, 17 Sep 2011 09:31:38 -0700, Guenter Roeck wrote:
> > The lm90 driver with its LM90_HAVE_BROKEN_ALERT flag has the same problem.
> > Sure, one can simply disable alerts forever after the first alert is triggered,
> > as the driver does right now, but that is really just as helpful as having
> > no alerts at all.
> 
> This isn't what the lm90 driver is doing. Look at the end of
> lm90_update_device(), alarms are re-enabled if needed. I agree that it
> isn't bullet proof, as it only works if user-space is reading at least
> one value repeatedly, but it's way better than what you described.
> 
Ah, I missed that. Not much better, though. It means that applications
would have to start polling after the first alarm is seen on a device,
and keep doing so until the last alarm is gone.

> > My current solution is to revert to in-kernel polling while alarms are active.
> > This way I can re-enable alerts after the alarms are no longer active,
> > and the additional overhead is quite low since the polling thread only runs
> > while there are active alarms.
> > 
> > If we declare that applications can only depend on 0->1 transitions, I would
> > still need in-kernel polling to be able to re-enable alerts. As a result, we
> > would end up with double polling - by the kernel _and_ by the application.
> > That would really be undesirable.
> 
> I agree. I suggested user-space polling because I didn't know there was
> a need for in-kernel polling. If you think that this will be the case
> for most drivers, then I have no objection to specifying that drivers
> should notify both directions or neither, i.e. no user-space polling.
> 
Ok.

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-18 16:46 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 [this message]
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=20110918164632.GA29553@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.