All of lore.kernel.org
 help / color / mirror / Atom feed
From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Ticket #2382
Date: Wed, 20 Nov 2013 18:15:29 +0000	[thread overview]
Message-ID: <20131120181529.GA30952@roeck-us.net> (raw)
In-Reply-To: <528A62DC.9030107@baymicrosystems.com>

On Wed, Nov 20, 2013 at 07:06:41PM +0100, Jean Delvare wrote:
> On Wed, 20 Nov 2013 09:29:44 -0800, Guenter Roeck wrote:
> > Mike's graph is quite interesting - it shows that the temperature reading error
> > is linear, at least for his CPU. Unfortunately, I don't think we can use
> > that knowledge to "fix" the reading automatically, as the error is very likely
> > different for other CPUs. We might consider adding an ideality factor module
> > parameter, though. What do you think about that ?
> 
> Everyone can compute the formula and use libsensors to apply it. If the
> user has to provide the value manually for each CPU sample then it
> might as well be that way, no need to add a module parameter. A single
> module parameter would additionally become a problem for multi-socket
> systems, you'd need an array and a reliable way to map each entry to
> the logical CPUs of a given socket (assuming the ideality factor is per
> package... which may not always be true.)
> 
Good point.

> > Another question is what temperature to use as tjmin. If we add an ideality
> > factor module parameter, it could be quite low, such as 20 degrees C.
> > We could even calculate tjmin based on the ideality factor if specified.
> >     tjmin = tjmax - (tjmax * ideality_factor / 100); /* ideality_factor in % */
> > 
> > Otherwise I would prefer something higher, at least 30 degrees C.
> 
> Personally I'd just do the minimum to avoid returning an error. In
> other words I'd be fine returning values down to 6 degrees (for the
> Atom D510 at least). We know the value is wrong but it can be corrected
> in user-space, while if we clamp higher, it can no longer be corrected.
> 
Seems to me it would be much simpler to just return 0 if the valid bit is 0,
and not bother returning -EAGAIN in that case. After all, that is what
it boils down to, isn't it ?

Thanks,
Guenter

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

  parent reply	other threads:[~2013-11-20 18:15 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-11-18 18:56 [lm-sensors] Ticket #2382 Mike Gilbert
2013-11-18 22:39 ` Guenter Roeck
2013-11-19  7:51 ` Jean Delvare
2013-11-19 14:33 ` Guenter Roeck
2013-11-19 15:04 ` Mike Gilbert
2013-11-19 16:38 ` Guenter Roeck
2013-11-19 17:18 ` Jean Delvare
2013-11-19 17:24 ` Mike Gilbert
2013-11-19 17:53 ` Guenter Roeck
2013-11-19 19:23 ` Mike Gilbert
2013-11-19 19:41 ` Jean Delvare
2013-11-19 21:14 ` Guenter Roeck
2013-11-19 21:53 ` Guenter Roeck
2013-11-20  9:19 ` Jean Delvare
2013-11-20 17:29 ` Guenter Roeck
2013-11-20 18:06 ` Jean Delvare
2013-11-20 18:15 ` Guenter Roeck [this message]
2013-11-20 18:25 ` Jean Delvare
2013-11-20 18:38 ` 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=20131120181529.GA30952@roeck-us.net \
    --to=linux@roeck-us.net \
    --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.