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] [PATCH] hwmon: it87 support for 16-bit fan reading
Date: Sat, 05 Jul 2008 16:31:45 +0000	[thread overview]
Message-ID: <20080705183145.7936c0c3@hyperion.delvare> (raw)
In-Reply-To: <76366b180802102232o60442894gfca038eb4b6f181d@mail.gmail.com>

On Sat, 5 Jul 2008 17:49:23 +0200, Bruno Prémont wrote:
> On Sat, 05 July 2008 Jean Delvare <khali@linux-fr.org> wrote:
> > On Sat, 5 Jul 2008 16:22:45 +0200, Bruno Prémont wrote:
> > > Raw sensors readings:
> > > 
> > >   it8712-isa-0e80
> > >   Adapter: ISA adapter
> > >   in0:         +1.17 V  (min =  +0.00 V, max =  +4.08 V)
> > >   in1:         +0.82 V  (min =  +0.00 V, max =  +4.08 V)
> > >   in2:         +3.01 V  (min =  +0.00 V, max =  +4.08 V)
> > >   in3:         +2.93 V  (min =  +0.00 V, max =  +4.08 V)
> > >   in4:         +1.25 V  (min =  +0.00 V, max =  +4.08 V)
> > >   in5:         +1.76 V  (min =  +0.00 V, max =  +4.08 V)
> > >   in6:         +1.60 V  (min =  +0.00 V, max =  +4.08 V)
> > >   in7:         +2.94 V  (min =  +0.00 V, max =  +4.08 V)
> > >   in8:         +3.26 V
> > >   fan1:       3245 RPM  (min =    0 RPM, div = 8)
> > >   fan2:       1520 RPM  (min =    0 RPM, div = 8)
> > >   temp1:       +20.0°C  (low  =  -1.0°C, high = +127.0°C)  sensor > > > thermal diode temp2:       +48.0°C  (low  =  -1.0°C, high > > > +127.0°C)  sensor = thermal diode temp3:       +25.0°C  (low  > > > -1.0°C, high = +127.0°C)  sensor = transistor cpu0_vid:   +1.550 V
> > > 
> > > Bios readings:
> > > 
> > >   CPU Temp: 33°C
> > >   System temp: 45°C
> > >   CPU FAN: 5769 RPM
> > >   Sys FAN: 1496 RPM
> > > 
> > >   CPU Core: 1.1V
> > >   +1.2V:   1.168V
> > >   +3.3V:   3.008V
> > >   +5V:     4.992V
> > >   +1.8V:   1.76V
> > > 
> > > Looking at those values there could be:
> > >   in0 = +1.2V
> > 
> > Unlikely. Vcore is almost always in0, and it seems to be the case
> > here. +1.2V would rather be in4.
> > 
> > >   in2 = +3.3V
> > >   in5 = +1.8V
> > > 
> > > For the other voltages which do seem to be wired somehow even tough
> > > far less are mentionned in BIOS monitoring section it's hard to
> > > tell what they could match...
> > 
> > The IT8712F can only measure voltages up to 4.08V directly. Other
> > voltages need scaling resistors. The nominal voltage after scaling is
> > typically 3V (3/4 of the full scale). in3 and in7 are almost 3V so
> > they are most probably voltages > 4V scaled down. I would guess in3
> > is +5V and in7 maybe 5VSB. Now you have to figure out the scaling
> > factor. 4.992/2.93 = 1.703. Typical factors for +5V are 1.666 and
> > 1.68, the later is the standard for the IT8712F so I'd say that's
> > what you have.
> > 
> > in8 is normally the battery voltage, unscaled.
> > 
> > So my guess for the configuration of your board would be:
> > 
> >    label in0 "Vcore"
> >    label in2 "+3.3V"
> >    label in3 "+5V"
> >    label in4 "+1.2V"
> >    label in5 "+1.8V"
> >    label in7 "5VSB"
> >    label in8 "Vbat"
> > 
> >    compute in3 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
> >    compute in8 ((6.8/10)+1)*@ ,  @/((6.8/10)+1)
> for second compute you were thinking in7

Oops, yes, of course.

> Why are the compute lines that complex for just multiplying/dividing
> with 1.68? Is this a workaround for floating-point precision issues?

No, libsensors deals with decimals just fine. The above is simply
matching the physical reality: the voltage is scaled down using
resistors of 10 kOhm and 6.8 kOhm. You can write it 1.68 if you prefer,
that doesn't make any difference.

-- 
Jean Delvare

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

  parent reply	other threads:[~2008-07-05 16:31 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-11  6:32 [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading in Andrew Paprocki
2008-02-24 15:43 ` [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading Jean Delvare
2008-06-12  7:53 ` Jean Delvare
2008-06-12 22:56 ` Andrew Paprocki
2008-06-24 13:16 ` Andrew Paprocki
2008-07-05 12:40 ` Bruno Prémont
2008-07-05 13:32 ` Jean Delvare
2008-07-05 14:22 ` Bruno Prémont
2008-07-05 14:54 ` Jean Delvare
2008-07-05 15:49 ` Bruno Prémont
2008-07-05 16:31 ` Jean Delvare [this message]
2008-07-06 11:16 ` Jean Delvare
2008-07-07  0:52 ` Andrew Paprocki
2008-07-07  0:57 ` [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading in Andrew Paprocki
2008-07-07  7:14 ` [lm-sensors] [PATCH] hwmon: it87 support for 16-bit fan reading Jean Delvare
2008-07-07  7:33 ` 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=20080705183145.7936c0c3@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.