From: Harald Welte <HaraldWelte@viatech.com>
To: Jean Delvare <khali@linux-fr.org>
Cc: Tomaz Mertelj <tomaz.mertelj@guest.arnes.si>,
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 17:27:37 +0800 [thread overview]
Message-ID: <20090612092737.GD30843@prithivi.gnumonks.org> (raw)
In-Reply-To: <20090612101200.3fe6d494@hyperion.delvare>
Hi Jean and Tomaz,
On Fri, Jun 12, 2009 at 10:12:00AM +0200, Jean Delvare wrote:
> > > Harald,
> >
> > You carefully removed Harald from Cc: so he probably didn't read your
> > email.
That was indeed true, thanks for noticing this.
> > > via-cputemp-isa-0000
>
> Harald, dashes in hwmon chip names are _prohibited_. Please change to
> via_cputemp or similar.
done.
> 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?)
It's really low, though the VIA Nano on my desk has 30 degrees C and doesn't
need a fan. Only during kernel compiles it goes to something like 40
centigrade.
Some older C7 (Model A) had an errata where the temperature sensors had a
really high error on low temperatures.
There is also another errata with that C7 Model A, where if you underclock
the FSB of the CPU, the temperature reading would be wrong (but much too
high in that case).
Since there really is nothing we can do in software to fix this, I didn't
put any of this in the driver. What I could do though is some bits to
add a printk() message once you load the driver on such a system.
> The drivers needs to multiply values by 1000 before exporting them to sysfs.
> Then "sensors" will report the correct temperature value.
done. Please find an incremental patch right here:
=============
diff --git a/drivers/hwmon/via-cputemp.c b/drivers/hwmon/via-cputemp.c
index 1032355..2abe516 100644
--- a/drivers/hwmon/via-cputemp.c
+++ b/drivers/hwmon/via-cputemp.c
@@ -37,7 +37,7 @@
#include <asm/msr.h>
#include <asm/processor.h>
-#define DRVNAME "via-cputemp"
+#define DRVNAME "via_cputemp"
typedef enum { SHOW_TEMP, SHOW_LABEL, SHOW_NAME } SHOW;
@@ -81,7 +81,7 @@ static ssize_t show_temp(struct device *dev,
if (err)
return -EAGAIN;
- err = sprintf(buf, "%d\n", eax & 0xffffff);
+ err = sprintf(buf, "%d\n", (eax & 0xffffff) * 1000);
return err;
}
=============
I'll re-submit the full driver after adding the above-mentioned printk.
--
- Harald Welte <HaraldWelte@viatech.com> http://linux.via.com.tw/
============================================================================
VIA Free and Open Source Software Liaison
next prev parent reply other threads:[~2009-06-12 9:30 UTC|newest]
Thread overview: 25+ messages / expand[flat|nested] mbox.gz Atom feed top
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 ` Andrew Morton
2009-06-12 8:12 ` [lm-sensors] " Jean Delvare
2009-06-12 9:11 ` Tomaz Mertelj
2009-06-12 9:27 ` Harald Welte [this message]
2009-06-12 11:46 ` Michael S. Zick
2009-06-12 12:54 ` Harald Welte
2009-06-12 13:09 ` Michael S. Zick
2009-06-12 13:41 ` Michael S. Zick
2009-06-12 13:47 ` Michael S. Zick
2009-06-12 14:23 ` Michael S. Zick
2009-06-19 21:11 ` Jean Delvare
2009-06-27 18:34 ` Juerg Haefliger
2009-08-13 18:42 ` Juerg Haefliger
2009-08-19 14:32 ` Harald Welte
2009-08-19 16:52 ` Juerg Haefliger
2009-12-09 7:17 ` Harald Welte
2009-06-12 14:46 [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature= tomaz.mertelj
2009-06-12 14:57 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Michael S. Zick
2009-06-12 15:12 ` Michael S. Zick
2009-06-12 15:25 [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature= tomaz.mertelj
2009-06-12 15:31 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Michael S. Zick
2009-06-12 16:04 ` Michael S. Zick
2009-06-12 17:38 ` Michael S. Zick
2009-06-12 18:16 [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature= tomaz.mertelj
2009-06-12 18:20 ` [lm-sensors] [PATCH] hwmon: Add driver for VIA CPU core temperature Michael S. Zick
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=20090612092737.GD30843@prithivi.gnumonks.org \
--to=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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®