From: Guenter Roeck <linux@roeck-us.net>
To: lm-sensors@vger.kernel.org
Subject: Re: [lm-sensors] [PATCH 9/9] hwmon: (it87) Report thermal sensor type as Intel PECI if appropriate
Date: Thu, 01 Nov 2012 20:54:04 +0000 [thread overview]
Message-ID: <20121101205404.GA2974@roeck-us.net> (raw)
In-Reply-To: <1351448401-13985-10-git-send-email-linux@roeck-us.net>
On Thu, Nov 01, 2012 at 07:12:08PM +0100, Jean Delvare wrote:
> On Thu, 1 Nov 2012 10:17:07 -0700, Guenter Roeck wrote:
> > On Thu, Nov 01, 2012 at 05:37:57PM +0100, Jean Delvare wrote:
> > > On an IT8720F chip with temp3 configured for PECI:
> > >
> > > temp1_offset: 0
> > > temp2_offset: 0
> > > temp3_offset: -128000
> > >
> > > I'm unsure how to interpret this -128000... This value is definitely
> > > not neutral, doesn't sound very realistic. I would expect a positive
> > > number for PECI. Maybe the offset register should be treated as
> > > unsigned in PECI mode? Or maybe its value is irrelevant for the IT8720F
> > > in PECI mode.
> > >
> > > # grep . /sys/class/hwmon/hwmon2/device/temp3*
> > > /sys/class/hwmon/hwmon2/device/temp3_alarm:0
> > > /sys/class/hwmon/hwmon2/device/temp3_beep:1
> > > /sys/class/hwmon/hwmon2/device/temp3_input:25000
> > > /sys/class/hwmon/hwmon2/device/temp3_max:70000
> > > /sys/class/hwmon/hwmon2/device/temp3_min:127000
> > > /sys/class/hwmon/hwmon2/device/temp3_offset:-128000
> > > /sys/class/hwmon/hwmon2/device/temp3_type:6
> > >
> > > This is with an it87 driver including all your recent patches. It you
> > > have ideas or theories, I'm interested.
> > >
> > Hi Jean,
> >
> > I agree. The alternative (+128 degrees C) sounds a bit high, though.
> > Maybe there is another register on IT8720F to store Tjmax ? Did you check
> > in the register map if there is a register value that happens to match it ?
>
> How would I know which value I am looking for? k10temp says this:
> high = +70.0°C, crit = +90.0°C, hyst = +87.0°C
> but the monitored value doesn't match it87's temp3.
>
> > What happens if you change the offset register value to, say, 100 ?
> > Does the reported temperature change as well ?
>
> Yes it does.
> temp3_offset = 120000 -> temp3_input = 14000
> temp3_offset = 125000 -> temp3_input = 19000
> temp3_offset = -128000 -> temp3_input = 22000
> temp3_offset = -126000 -> temp3_input = 23000
>
> This leads me to the conclusion that the offset registers are unsigned
> in PECI mode.
>
If so, then only for AMD, or it is is a chip dependent.
On Intel (with IT8728F):
temp3_offset = -20000: temp3_input = -96000
temp3_offset = -10000: temp3_input = -87000
temp3_offset = 0: temp3_input = -76000
temp3_offset = 10000: temp3_input = -67000
temp3_offset = 20000: temp3_input = -56000
temp3_offset = 105000: temp3_input = 28000 (matches Tjmax / coretemp)
I don't know what AMD uses as equivalent of Tjmax - maybe they
use a fixed value of 128°C.
> > Another maybe dumb question - is this with Intel or AMD CPU ? Because
> > if it is AMD, it would not be PECI but AMDSI (something to fix if someone
> > has a system w/ IT87xx and AMD CPU).
>
> It is AMD indeed, that's another issue I wanted to report. Do you
> already know how to fix it?
>
Yes, I think so, at least I have an idea. Give me a couple of days.
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:[~2012-11-01 20:54 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-28 18:20 [lm-sensors] [PATCH 9/9] hwmon: (it87) Report thermal sensor type as Intel PECI if appropriate Guenter Roeck
2012-10-29 16:55 ` Jean Delvare
2012-10-29 17:28 ` Guenter Roeck
2012-11-01 12:56 ` Jean Delvare
2012-11-01 13:40 ` Guenter Roeck
2012-11-01 16:37 ` Jean Delvare
2012-11-01 17:17 ` Guenter Roeck
2012-11-01 18:12 ` Jean Delvare
2012-11-01 20:54 ` Guenter Roeck [this message]
2012-11-01 21:18 ` Phil Pokorny
2012-11-02 3:09 ` Guenter Roeck
2012-11-02 15:24 ` Jean Delvare
2012-11-02 17:19 ` Guenter Roeck
2012-11-02 17:31 ` Jean Delvare
2012-11-03 16: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=20121101205404.GA2974@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.