All of lore.kernel.org
 help / color / mirror / Atom feed
* [lm-sensors] VT1211 sensors.conf: other CPUs?
@ 2007-02-08 19:49 Forest Bond
  2007-02-09 17:06 ` Juerg Haefliger
  0 siblings, 1 reply; 2+ messages in thread
From: Forest Bond @ 2007-02-08 19:49 UTC (permalink / raw)
  To: lm-sensors

Hello,

There appears to be some fresh new material with regard to the VT1211 in
sensors.conf now that this chip is officially supported.  I'll quote from
sensors.conf:

--------------------------------------------------------------------------------
# The temperature calculations are of the form
#    compute tempX  (@ - Offset) / Gain, (@ * Gain) + Offset
#
# The following are the gain and offset values as recommended by VIA
#   Diode Type      Gain    Offset
#   ----------      ----    ------
#   Intel CPU       0.9528  88.638
#                   0.9686  65.000  *)
#   VIA C3 Ezra     0.9528  83.869
#   VIA C3 Ezra-T   0.9528  73.869
#
# *) These are the values from the previous sensors.conf. I don't know
# where they came from or how they got derived.
#
# The VT1211 internal temperature (temp2) is scaled by the driver
# and doesn't need to be adjusted here.

    compute temp1  (@ - 73.869) / 0.9528,  (@ * 0.9528) + 73.869
--------------------------------------------------------------------------------

So, it appears that the gain factor is a property of the VT1211, and that the
offset is a property of the CPU.  On to my question...

What is the preferred method for adding support for other CPUs?  The Ezra cores
aren't shipping anymore, so most EPIA boards (i.e., most boards using this Super
I/O chip) have Nehemiah cores of one kind or another.  It would seem there are
two options:

1. Get the appropriate CPU documentation from VIA, if available.
2. Try to measure the die temperature by approximation from some surface
   temperature.  Take some data points, and estimate the offset.
3. Really wing it, and take a trial-and-error approach, nudging the offset
   iteratively until the resulting temperature results look reasonable.

I am not inclined to belive that the documentation mentioned in (1) is widely
available, or that it exists at all.  Is (2) feasible?  (3) is obviously not a
great way to go, but if anyone has suggestions for increasing accuracy I'm all
ears.

Any assistance would be appreciated; I have access to a variety of boards
utilizing this chip.  I would be more than happy to contribute information I am
able to pick up.

thanks,
Forest
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20070208/3887f90f/attachment.bin 

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [lm-sensors] VT1211 sensors.conf: other CPUs?
  2007-02-08 19:49 [lm-sensors] VT1211 sensors.conf: other CPUs? Forest Bond
@ 2007-02-09 17:06 ` Juerg Haefliger
  0 siblings, 0 replies; 2+ messages in thread
From: Juerg Haefliger @ 2007-02-09 17:06 UTC (permalink / raw)
  To: lm-sensors

Hi Forest,


> What is the preferred method for adding support for other CPUs?

There is none :-)


> The Ezra cores
> aren't shipping anymore, so most EPIA boards (i.e., most boards using this Super
> I/O chip) have Nehemiah cores of one kind or another.  It would seem there are
> two options:
>
> 1. Get the appropriate CPU documentation from VIA, if available.

Been there, done that. I tried to get information from them for the
vt1211 internal thermal diode and the Nehemiah CPU but they couldn't
provide any.
From VIA: "After checking with our engineers, I'm sorry to tell you
that we don't have further update for the V1211 internal thermal diode
and the C3 Nehemiah CPU."


> 2. Try to measure the die temperature by approximation from some surface
>    temperature.  Take some data points, and estimate the offset.

Been there too, done that too :-) But I didn't trust my results, they
were offseted for some reason. What I can remember is that the
calculated gain from these results matched the gain of the other VIA
CPUs so I'm confident that we can assume that the gain is identical.


> 3. Really wing it, and take a trial-and-error approach, nudging the offset
>    iteratively until the resulting temperature results look reasonable.

Hmm... And how do you define 'reasonable'?

There's a 4th option: Using windows to get the temp and fix the offset
in Linux to match the windows reading. That's probably the easiest way
if you have windows running on one of these machines and a tool that
can read the temp (and trust it). Fire up a CPU stresser like
cpuburn-in, let it sit until the system reaches a thermal steady state
and measure the CPU temp. Then fire up Linux, run cpuburn-in and read
the temp via sensors and adjust the offset accordingly.

As a sanity check, you can then slow the CPU down (via cpuspeed or the
likes) and the temp should drop down linearly. Or almost that is,
since not all parts of the CPU slow down when you drop the core freq.
But it should give you an indication if your numbers are in the right
ballpark.

...juerg



> I am not inclined to belive that the documentation mentioned in (1) is widely
> available, or that it exists at all.  Is (2) feasible?  (3) is obviously not a
> great way to go, but if anyone has suggestions for increasing accuracy I'm all
> ears.
>
> Any assistance would be appreciated; I have access to a variety of boards
> utilizing this chip.  I would be more than happy to contribute information I am
> able to pick up.
>
> thanks,
> Forest
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.3 (GNU/Linux)
>
> iD8DBQFFy362RO4fQQdv5AwRAgVuAJ91bniGWSkvi3r3A3RnR0VJvp3H9wCfc8pG
> 1LxGUqCIggYKywD1QnYRGKA> šH7
> -----END PGP SIGNATURE-----
>
> _______________________________________________
> lm-sensors mailing list
> lm-sensors at lm-sensors.org
> http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
>


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-02-09 17:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-08 19:49 [lm-sensors] VT1211 sensors.conf: other CPUs? Forest Bond
2007-02-09 17:06 ` Juerg Haefliger

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.