From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] Ticket #2382
Date: Wed, 20 Nov 2013 17:29:44 +0000 [thread overview]
Message-ID: <20131120172944.GD28683@roeck-us.net> (raw)
In-Reply-To: <528A62DC.9030107@baymicrosystems.com>
On Wed, Nov 20, 2013 at 10:19:42AM +0100, Jean Delvare wrote:
> Hi Guenter,
>
> On Tue, 19 Nov 2013 13:53:58 -0800, Guenter Roeck wrote:
> > On Tue, Nov 19, 2013 at 08:41:01PM +0100, Jean Delvare wrote:
> > [ ... ]
> > > > with the same model/mask. Based on that we could declare a "tjmin" and
> > > > report that if it is 1) defined and 2) the valid bit is 0. A somewhat "safe"
> > > > temperature to report for the D5xx (model 0x1c/mask 10), based on Mike's
> > > > numbers, would then be 36 degrees C (100 - 64).
> > >
> > > Not sure where you drew the "36" from. From Mike's table it seems the
> > > valid flag wears off when the reported temperature would be < 6°C. This
> > > correlates with my findings in the ticket where the valid flag would be
> > > 0 for 1°C and 4°C.
> > >
> > Now I remember what I was thinking. In Mike's table, the real temperature at
> > which the sensor last reported 'valid' (according to the thermal diode)
> > was at 44 degrees C, or 56 degrees below TjMax.
>
> That I agree with.
>
> > Add the reported temperature
> > of 6 degrees C to that number and you get 62. Round up to 64 below TjMax,
> > or 36 degrees C.
>
> All this means is that the DTS would return 0°C at approximately 36°C
> physical (if we can trust the external sensor AND ignoring the expected
> difference between internal and external temperature measurement.) I
> don't think you can deduce tjmin from that, as the DTS scale and the
> physical scale are distinct.
>
Yes, you are right. As I say below, that calculation doesn't really make much
sense.
> > Not that this calculation really makes any sense ;-), but with Mike's 'real'
> > numbers from the thermal diode it sounds at least somewhat reasonable.
>
> It is well known that the CPU DTS loses accuracy at low temperatures,
> and Mike's numbers only show that.
>
> Tjmin should be taken from the datasheet when it is present there. When
> it is not in the datasheet, it becomes arbitrary, the only hard
> constraint being that it must be greater than the values for which the
> valid flag is no longer set (i.e. >= 6 in Mike's case.)
>
I don't see it anywhere, and I don't think it exists.
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 ?
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.
Thanks,
Guenter
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
next prev parent reply other threads:[~2013-11-20 17:29 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 [this message]
2013-11-20 18:06 ` Jean Delvare
2013-11-20 18:15 ` Guenter Roeck
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=20131120172944.GD28683@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.