From: "Michael S. Zick" <lkml@morethan.org>
To: Jean Delvare <khali@linux-fr.org>
Cc: Tomaz Mertelj <tomaz.mertelj@guest.arnes.si>,
Harald Welte <HaraldWelte@viatech.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org
Subject: Re: [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core
Date: Fri, 12 Jun 2009 11:46:45 +0000 [thread overview]
Message-ID: <200906120646.48615.lkml@morethan.org> (raw)
In-Reply-To: <20090612101200.3fe6d494@hyperion.delvare>
On Fri June 12 2009, Jean Delvare wrote:
> On Thu, 11 Jun 2009 15:32:55 -0700, Andrew Morton wrote:
> > On Wed, 10 Jun 2009 17:40:31 +0000 (UTC)
> > Tomaz Mertelj <tomaz.mertelj@guest.arnes.si> wrote:
> >
> > > Harald Welte <HaraldWelte <at> viatech.com> writes:
> > >
> > > >
> > > > This is a driver for the on-die digital temperature sensor of
> > > > VIA's recent CPU models.
> > > >
> > > > Signed-off-by: Harald Welte <HaraldWelte <at> viatech.com>
> > > >
> > >
> > > Harald,
> >
> > You carefully removed Harald from Cc: so he probably didn't read your
> > email.
> >
> > > I tested it on 2.6.28.3 kernel on VIA VB7002 motherboard and it does not work
> > > correctly.
> > >
> > > Output form sensors:
> > >
> > > via-cputemp-isa-0000
>
> Harald, dashes in hwmon chip names are _prohibited_. Please change to
> via_cputemp or similar.
>
> > > Adapter: ISA adapter
> > > Core 0: +0.0 C
> > >
> > > On the other hand
> > > cat '/sys/class/hwmon/hwmon2/device/driver/via-cputemp.0/temp1_input' outputs
> > > numbers between 25-27.
> > >
>
> Temperature values are supposed to be expressed in millidegrees C, not
> degrees C as it seems to be doing (although 25 degrees C seems pretty
> low for a CPU temperature?) The drivers needs to multiply values by
> 1000 before exporting them to sysfs. Then "sensors" will report the
> correct temperature value.
>
Ah, 25 degrees C is room temperature - real hard for the junction temperature
to be 25 degrees C with power applied; lacking an infinitely perfect heatsink.
Look for an "off by one" error in shifting or masking the value.
Mike
_______________________________________________
lm-sensors mailing list
lm-sensors@lm-sensors.org
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Zick" <lkml@morethan.org>
To: Jean Delvare <khali@linux-fr.org>
Cc: Tomaz Mertelj <tomaz.mertelj@guest.arnes.si>,
Harald Welte <HaraldWelte@viatech.com>,
Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, lm-sensors@lm-sensors.org
Subject: Re: [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature
Date: Fri, 12 Jun 2009 06:46:45 -0500 [thread overview]
Message-ID: <200906120646.48615.lkml@morethan.org> (raw)
In-Reply-To: <20090612101200.3fe6d494@hyperion.delvare>
On Fri June 12 2009, Jean Delvare wrote:
> On Thu, 11 Jun 2009 15:32:55 -0700, Andrew Morton wrote:
> > On Wed, 10 Jun 2009 17:40:31 +0000 (UTC)
> > Tomaz Mertelj <tomaz.mertelj@guest.arnes.si> wrote:
> >
> > > Harald Welte <HaraldWelte <at> viatech.com> writes:
> > >
> > > >
> > > > This is a driver for the on-die digital temperature sensor of
> > > > VIA's recent CPU models.
> > > >
> > > > Signed-off-by: Harald Welte <HaraldWelte <at> viatech.com>
> > > >
> > >
> > > Harald,
> >
> > You carefully removed Harald from Cc: so he probably didn't read your
> > email.
> >
> > > I tested it on 2.6.28.3 kernel on VIA VB7002 motherboard and it does not work
> > > correctly.
> > >
> > > Output form sensors:
> > >
> > > via-cputemp-isa-0000
>
> Harald, dashes in hwmon chip names are _prohibited_. Please change to
> via_cputemp or similar.
>
> > > Adapter: ISA adapter
> > > Core 0: +0.0 C
> > >
> > > On the other hand
> > > cat '/sys/class/hwmon/hwmon2/device/driver/via-cputemp.0/temp1_input' outputs
> > > numbers between 25-27.
> > >
>
> Temperature values are supposed to be expressed in millidegrees C, not
> degrees C as it seems to be doing (although 25 degrees C seems pretty
> low for a CPU temperature?) The drivers needs to multiply values by
> 1000 before exporting them to sysfs. Then "sensors" will report the
> correct temperature value.
>
Ah, 25 degrees C is room temperature - real hard for the junction temperature
to be 25 degrees C with power applied; lacking an infinitely perfect heatsink.
Look for an "off by one" error in shifting or masking the value.
Mike
next prev parent reply other threads:[~2009-06-12 11:46 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-09 8:34 [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Harald Welte
2009-06-09 8:34 ` Harald Welte
2009-06-10 17:40 ` Tomaz Mertelj
2009-06-11 22:02 ` Tomaz Mertelj
2009-06-11 22:32 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Andrew Morton
2009-06-11 22:32 ` [PATCH] hwmon: Add driver for VIA CPU core temperature Andrew Morton
2009-06-12 8:12 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Jean Delvare
2009-06-12 8:12 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Jean Delvare
2009-06-12 9:11 ` Tomaz Mertelj
2009-06-12 9:27 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU Harald Welte
2009-06-12 9:27 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Harald Welte
2009-06-12 11:46 ` Michael S. Zick [this message]
2009-06-12 11:46 ` Michael S. Zick
2009-06-12 12:54 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU Harald Welte
2009-06-12 12:54 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Harald Welte
2009-06-12 13:09 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Michael S. Zick
2009-06-12 13:09 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Michael S. Zick
2009-06-12 13:41 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Michael S. Zick
2009-06-12 13:41 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Michael S. Zick
2009-06-12 13:47 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Michael S. Zick
2009-06-12 13:47 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Michael S. Zick
2009-06-12 14:23 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Michael S. Zick
2009-06-12 14:23 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Michael S. Zick
2009-06-19 21:11 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Jean Delvare
2009-06-19 21:11 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Jean Delvare
2009-06-27 18:34 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Juerg Haefliger
2009-06-27 18:34 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Juerg Haefliger
2009-08-13 18:42 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Juerg Haefliger
2009-08-13 18:42 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Juerg Haefliger
2009-08-19 14:32 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Harald Welte
2009-08-19 14:32 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Harald Welte
2009-08-19 16:52 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Juerg Haefliger
2009-08-19 16:52 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Juerg Haefliger
2009-12-09 7:17 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Harald Welte
2009-12-09 7:17 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Harald Welte
2009-12-10 19:39 ` Jean Delvare
2009-12-11 17:43 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core Juerg Haefliger
2009-12-12 7:55 ` Harald Welte
2009-12-12 10:48 ` Adam Nielsen
2009-12-12 13:57 ` Jean Delvare
2009-12-15 20:27 ` Andre Prendel
2009-12-16 9:27 ` 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=200906120646.48615.lkml@morethan.org \
--to=lkml@morethan.org \
--cc=HaraldWelte@viatech.com \
--cc=akpm@linux-foundation.org \
--cc=khali@linux-fr.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lm-sensors@lm-sensors.org \
--cc=tomaz.mertelj@guest.arnes.si \
/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.