Skip to contentSkip to conversation

hwmon (c7temp): new driver for VIA C7 CPU

PATCH In review Juerg Haefliger 6 participants 23 messages Jun 19, 2008 – Sep 29, 2008

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon (c7temp): new driver for VIA C7 CPU

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Sergio: Can you please test this patch?

Signed-off-by Juerg Haefliger <juergh at gmail.com>

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Signed-off-by Juerg Haefliger <juergh at gmail.com>
---
 Documentation/hwmon/c7temp |   20 +++
 drivers/hwmon/Kconfig      |   10 +
 drivers/hwmon/Makefile     |    1 
 drivers/hwmon/c7temp.c     |  240 +++++++++++++++++++++++++++++++++++++++++++++
 4 files changed, 271 insertions(+)
drivers/hwmon/c7temp.c new file +240 -0
Index: linux/drivers/hwmon/c7temp.c
===================================================================
@@ -0,0 +1,240 @@
+/*
+ * c7temp.c - Driver for the VIA C7 integrated temperature and voltage sensors.
+ *
+ * Copyright (C) 2008 Juerg Haefliger <[email protected]>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ */
+
+#include <linux/module.h>
+#include <linux/hwmon.h>
+#include <linux/sysfs.h>
+#include <linux/platform_device.h>
+#include <linux/err.h>
+#include <linux/jiffies.h>
+
+#define DRVNAME	"c7temp"
+
+static struct platform_device *pdev;
+
+struct c7temp_data {
+	const char *name;
+	struct device *hwmon_dev;
+	struct mutex update_lock;
+	char valid;			/* !=0 if following fields are valid */
+	unsigned long last_update;	/* In jiffies */
+
+	u32 temp;
+	u8 in;
+};
+
+static struct c7temp_data *c7temp_update_device(struct device *dev)
+{
+	struct c7temp_data *data = dev_get_drvdata(dev);
+	unsigned int eax, ebx, unused;
+
+	mutex_lock(&data->update_lock);
+
+	/* Sample register contents every 1 sec */
+	if (time_after(jiffies, data->last_update + HZ) || !data->valid) {
+		cpuid(0xc0000002, &eax, &ebx, &unused, &unused);
+		data->temp = eax;
+		data->in = ebx & 0xff;
+
+		data->last_update = jiffies;
+		data->valid = 1;
+	}
+
+	mutex_unlock(&data->update_lock);
+
+	return data;
+}
+
+static ssize_t show_name(struct device *dev, struct device_attribute *attr,
+			 char *buf)
+{
+	struct c7temp_data *data = dev_get_drvdata(dev);
+
+	return sprintf(buf, "%s\n", data->name);
+}
+
+static ssize_t show_temp(struct device *dev, struct device_attribute *attr,
+			 char *buf)
+{
+	struct c7temp_data *data = c7temp_update_device(dev);
+
+	return sprintf(buf, "%d\n", (data->temp >> 8) * 1000);
+}
+
+static ssize_t show_in(struct device *dev, struct device_attribute *attr,
+			 char *buf)
+{
+	struct c7temp_data *data = c7temp_update_device(dev);
+
+	return sprintf(buf, "%d\n", (data->in << 4) + 700);
+}
+
+static DEVICE_ATTR(name, S_IRUGO, show_name, NULL);
+static DEVICE_ATTR(temp1_input, S_IRUGO, show_temp, NULL);
+static DEVICE_ATTR(in0_input, S_IRUGO, show_in, NULL);
+
+static struct attribute *c7temp_attr[] = {
+	&dev_attr_name.attr,
+	&dev_attr_temp1_input.attr,
+	&dev_attr_in0_input.attr,
+	NULL
+};
+
+static const struct attribute_group c7temp_group = {
+	.attrs = c7temp_attr,
+};
+
+static int __devinit c7temp_probe(struct platform_device *pdev)
+{
+	struct device *dev = &pdev->dev;
+	struct c7temp_data *data;
+	int err;
+
+	data = kzalloc(sizeof(struct c7temp_data), GFP_KERNEL);
+	if (!data) {
+		err = -ENOMEM;
+		dev_err(dev, "Out of memory\n");
+		goto exit;
+	}
+
+	data->name = DRVNAME;
+	mutex_init(&data->update_lock);
+
+	platform_set_drvdata(pdev, data);
+
+	err = sysfs_create_group(&pdev->dev.kobj, &c7temp_group);
+	if (err)
+		goto exit_free;
+
+	data->hwmon_dev = hwmon_device_register(dev);
+	if (IS_ERR(data->hwmon_dev)) {
+		err = PTR_ERR(data->hwmon_dev);
+		dev_err(dev, "Device registration failed (%d)\n", err);
+		goto exit_remove;
+	}
+
+	return 0;
+
+exit_remove:
+	sysfs_remove_group(&pdev->dev.kobj, &c7temp_group);
+exit_free:
+	platform_set_drvdata(pdev, NULL);
+	kfree(data);
+exit:
+	return err;
+}
+
+static int __devexit c7temp_remove(struct platform_device *pdev)
+{
+	struct c7temp_data *data = platform_get_drvdata(pdev);
+
+	hwmon_device_unregister(data->hwmon_dev);
+	sysfs_remove_group(&pdev->dev.kobj, &c7temp_group);
+	platform_set_drvdata(pdev, NULL);
+	kfree(data);
+
+	return 0;
+}
+
+static struct platform_driver c7temp_driver = {
+	.driver = {
+		.owner = THIS_MODULE,
+		.name  = DRVNAME,
+	},
+	.probe  = c7temp_probe,
+	.remove = __devexit_p(c7temp_remove),
+};
+
+static int __init c7temp_device_add(void)
+{
+	int err;
+
+	pdev = platform_device_alloc(DRVNAME, 0);
+	if (!pdev) {
+		err = -ENOMEM;
+		printk(KERN_ERR DRVNAME ": Device allocation failed (%d)\n",
+		       err);
+		goto exit;
+	}
+
+	err = platform_device_add(pdev);
+	if (err) {
+		printk(KERN_ERR DRVNAME ": Device addition failed (%d)\n",
+		       err);
+		goto exit_device_put;
+	}
+
+	return 0;
+
+exit_device_put:
+	platform_device_put(pdev);
+exit:
+	return err;
+}
+
+static int __init c7temp_init(void)
+{
+	int err = -ENODEV;
+	struct cpuinfo_x86 *c = &cpu_data(0);
+	unsigned int eax;
+
+	/* Check for VIA C7 CPU */
+	if (!(c->x86_vendor == X86_VENDOR_CENTAUR && c->x86 == 6 &&
+	      (c->x86_model == 0xa || c->x86_model == 0xd))) {
+		printk(KERN_ERR DRVNAME ": Unsupported CPU\n");
+		goto exit;
+	}
+
+	/* Check existence of performance data register */
+	eax = cpuid_eax(0xc0000000);
+	if (eax < 0xc0000002) {
+		printk(KERN_ERR DRVNAME ": Performance data register does not "
+		       "exist (0x%08x)\n", eax);
+		goto exit;
+	}
+
+	err = platform_driver_register(&c7temp_driver);
+	if (err)
+		goto exit;
+
+	err = c7temp_device_add();
+	if (err)
+		goto exit_driver_unregister;
+
+	return 0;
+
+exit_driver_unregister:
+	platform_driver_unregister(&c7temp_driver);
+exit:
+	return err;
+}
+
+static void __exit c7temp_exit(void)
+{
+	platform_device_unregister(pdev);
+	platform_driver_unregister(&c7temp_driver);
+}
+
+MODULE_AUTHOR("Juerg Haefliger <[email protected]>");
+MODULE_DESCRIPTION("VIA C7 core temperature and voltage monitor");
+MODULE_LICENSE("GPL");
+
+module_init(c7temp_init)
+module_exit(c7temp_exit)
Documentation/hwmon/c7temp new file +20 -0
Index: linux/Documentation/hwmon/c7temp
===================================================================
@@ -0,0 +1,20 @@
+Kernel driver c7temp
+======================
+
+Supported chips:
+  * VIA C7
+    Prefix: 'c7temp'
+    CPUID: family 0x6, models 0xa, 0xd
+    Datasheet: Provided by VIA upon request and under NDA
+
+Authors:
+    Juerg Haefliger <[email protected]>
+
+
+Description
+-----------
+
+This driver permits reading the core temperature and voltage sensors embedded
+inside the VIA C7 CPU. Temperature is returned in millidegrees Celsius with a
+resolution of 1 degree C. Voltage is returned in millivolts with a resolution
+of 16 mV.
drivers/hwmon/Kconfig +10 -0
Index: linux/drivers/hwmon/Kconfig
===================================================================
@@ -643,6 +643,16 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called via686a.
 
+config SENSORS_C7TEMP
+	tristate "VIA C7 temperature sensor"
+	depends on X86 && EXPERIMENTAL
+	help
+	  If you say yes here you get support for the temperature and voltage
+	  sensors inside the VIA C7 CPU.
+
+	  This driver can also be built as a module. If so, the module will be
+	  called c7temp.
+
 config SENSORS_VT1211
 	tristate "VIA VT1211"
 	depends on EXPERIMENTAL
drivers/hwmon/Makefile +1 -0
Index: linux/drivers/hwmon/Makefile
===================================================================
@@ -28,6 +28,7 @@
 obj-$(CONFIG_SENSORS_APPLESMC)	+= applesmc.o
 obj-$(CONFIG_SENSORS_AMS)	+= ams/
 obj-$(CONFIG_SENSORS_ATXP1)	+= atxp1.o
+obj-$(CONFIG_SENSORS_C7TEMP)	+= c7temp.o
 obj-$(CONFIG_SENSORS_CORETEMP)	+= coretemp.o
 obj-$(CONFIG_SENSORS_DME1737)	+= dme1737.o
 obj-$(CONFIG_SENSORS_DS1621)	+= ds1621.o

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

Acked-by on v1 1/1
#1 lore raw
Quoted 8 lines · Juerg Haefliger

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Sergio: Can you please test this patch?

Signed-off-by Juerg Haefliger <juergh at gmail.com>

This driver sparked my interest (not that I own the relevant hardware it just did). So I gave it a quick look over, then seeing how simple it was I did a full review. No problems found so:

Regards,

Hans

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Juerg Haefliger

Thanks for the review, Hans. Much appreciated.

...juerg

Quoted 11 lines · Hans de Goede
Quoted 9 lines · Juerg Haefliger

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Sergio: Can you please test this patch?

Signed-off-by Juerg Haefliger <juergh at gmail.com>
Quoted 9 lines

This driver sparked my interest (not that I own the relevant hardware it just did). So I gave it a quick look over, then seeing how simple it was I did a full review. No problems found so:

Regards,

Hans

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#3 lore raw
In reply to Juerg Haefliger

Hi Juerg,

Quoted 6 lines · Juerg Haefliger

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Sergio: Can you please test this patch?

Signed-off-by Juerg Haefliger <juergh at gmail.com>

Care to add an entry for this in wiki/Devices?

Also, a patch for sensors-detect would be welcome.

Thanks,

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#4 lore raw
In reply to Juerg Haefliger

Hi Jean,

Quoted 11 lines

Hi Juerg,

Quoted 6 lines · Juerg Haefliger

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Sergio: Can you please test this patch?

Signed-off-by Juerg Haefliger <juergh at gmail.com>

Care to add an entry for this in wiki/Devices?

Yes, will do.

Quoted 1 line

Also, a patch for sensors-detect would be welcome.

Ditto.

...juerg

Quoted 4 lines

Thanks,
--
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#5 lore raw
In reply to Juerg Haefliger

Hi Juerg,

Quoted 2 lines · Juerg Haefliger

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Is it really an analog voltage sensor? Or does it simply reflect the value of the VID pins? The conversion formula "(data->in << 4) + 700" corresponds to VRM case 13 in hwmon-vid.c, which is what the C7 uses. This makes me suspect that the latter is true. If I am right then the attribute should be named cpuN_vid rather than in0_input.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#6 lore raw
In reply to Juerg Haefliger

Hi Jean,

Quoted 11 lines

Hi Juerg,

Quoted 2 lines · Juerg Haefliger

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Is it really an analog voltage sensor? Or does it simply reflect the value of the VID pins? The conversion formula "(data->in << 4) + 700" corresponds to VRM case 13 in hwmon-vid.c, which is what the C7 uses. This makes me suspect that the latter is true. If I am right then the attribute should be named cpuN_vid rather than in0_input.

The datasheet states that this register value is a copy of the MSR 0x198 value (performance status register). The bios writting guide labels 0x198 as 'current value' whereas MSR 0x199 (performance control register) is labeled as 'desired value'. Unless I'm misinterpreting taiwanese english, I'd say it's a measured value :-)

...juerg

Quoted 3 lines

--
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#7 lore raw
In reply to Juerg Haefliger
Quoted 10 lines · Juerg Haefliger
Quoted 9 lines · Juerg Haefliger
Quoted 2 lines

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Is it really an analog voltage sensor? Or does it simply reflect the value of the VID pins? The conversion formula "(data->in << 4) + 700" corresponds to VRM case 13 in hwmon-vid.c, which is what the C7 uses. This makes me suspect that the latter is true. If I am right then the attribute should be named cpuN_vid rather than in0_input.

Quoted 5 lines

The datasheet states that this register value is a copy of the MSR 0x198 value (performance status register). The bios writting guide labels 0x198 as 'current value' whereas MSR 0x199 (performance control register) is labeled as 'desired value'. Unless I'm misinterpreting taiwanese english, I'd say it's a measured value :-)

Not necessarily. The CPU knows what voltage value it wants, and tells that to the voltage regulation unit (through binary VID outputs). The voltage regulation unit may allow the user to override the CPU voltage, in either relative or absolute way. Then the voltage regulation unit could export the actual VID value back to the CPU (through binary VID inputs from the CPU's perspective.)

The best way to find out would be to check the CPU datasheet (if you have it) to find out what pins are related to MSR 0x198. If the value is obtained by analog-to-digital conversion of Vcore, you don't need any dedicated pin on the CPU. If OTOH this is a feedback of the VID value, then you should see 5 pins dedicated to VID input.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#8 lore raw
In reply to Juerg Haefliger
Quoted 22 lines
Quoted 9 lines
Quoted 8 lines
Quoted 2 lines

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Is it really an analog voltage sensor? Or does it simply reflect the value of the VID pins? The conversion formula "(data->in << 4) + 700" corresponds to VRM case 13 in hwmon-vid.c, which is what the C7 uses. This makes me suspect that the latter is true. If I am right then the attribute should be named cpuN_vid rather than in0_input.

Quoted 5 lines

The datasheet states that this register value is a copy of the MSR 0x198 value (performance status register). The bios writting guide labels 0x198 as 'current value' whereas MSR 0x199 (performance control register) is labeled as 'desired value'. Unless I'm misinterpreting taiwanese english, I'd say it's a measured value :-)

Not necessarily. The CPU knows what voltage value it wants, and tells that to the voltage regulation unit (through binary VID outputs). The voltage regulation unit may allow the user to override the CPU voltage, in either relative or absolute way. Then the voltage regulation unit could export the actual VID value back to the CPU (through binary VID inputs from the CPU's perspective.)

Quoted 5 lines

The best way to find out would be to check the CPU datasheet (if you have it) to find out what pins are related to MSR 0x198. If the value is obtained by analog-to-digital conversion of Vcore, you don't need any dedicated pin on the CPU. If OTOH this is a feedback of the VID value, then you should see 5 pins dedicated to VID input.

The datasheet isn't very elaborate on that topic but the CPU doesn't have any VID inputs, only 6 outputs.

...juerg

Quoted 3 lines

--
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#9 lore raw
In reply to Juerg Haefliger

Hi Juerg,

Quoted 6 lines · Juerg Haefliger

New driver to support temperature and voltage sensors embedded inside the VIA C7 CPU.

Sergio: Can you please test this patch?

Signed-off-by Juerg Haefliger <juergh at gmail.com>

I had a colleague of mine (Cc'd, hi Wilken :)) test your driver. The voltage part appears to work, we saw in0 change from 0.96 V at 800 MHz to 1.00V at 1000 MHz. However the temperature is always reported as 0 degrees C. We dumped the value of eax after the cpuid() call and it's 0x0.

Does this mean that Wilken's CPU lacks the thermal diode? Or could this be a bug in your driver? For reference, the CPU in question is:

processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 10
model name : VIA Esther processor 1000MHz
stepping : 9

If you need anything, just ask me or Wilken directly.

Thanks,

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#10 lore raw
In reply to Juerg Haefliger

Am Mittwoch 02 Juli 2008 20:22:57 schrieb Juerg Haefliger:

Quoted 7 lines

Hi Jean, Wilken,

Thanks for testing the driver. Wilken, can you run the attached tool with and without the '-r' option and send the output? Your CPU should have the diode.

...juerg

Hi Juerg,

this is a really cute little app. Okay, here is the output.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#11 lore raw
In reply to Juerg Haefliger
Quoted 7 lines · Wilken Gottwalt

Am Mittwoch 02 Juli 2008 20:22:57 schrieb Juerg Haefliger:

Quoted 6 lines

Hi Jean, Wilken,

Thanks for testing the driver. Wilken, can you run the attached tool with and without the '-r' option and send the output? Your CPU should have the diode.

Quoted 5 lines
Quoted 1 line

...juerg

Hi Juerg,

this is a really cute little app. Okay, here is the output.

Err, where?

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#12 lore raw
In reply to Juerg Haefliger

Here it is:

vendor_id = "CentaurHauls"
version information (1/eax):
processor type = primary processor (0)
family = Intel Pentium Pro/II/III/Celeron, AMD
Athlon/Duron, Cyrix M2, VIA C3 (6)

      model           = 0xa (10)
      stepping id     = 0x9 (9)
      extended family = 0x0 (0)
      extended model  = 0x0 (0)
      (simple synth)  = VIA C7 / C7-M (Esther WinChip C5J core)
   miscellaneous (1/ebx):
      process local APIC physical ID = 0x0 (0)
      cpu count                      = 0x1 (1)
      CLFLUSH line size              = 0x8 (8)
      brand index                    = 0x0 (0)
   brand id = 0x00 (0): unknown
   feature information (1/edx):
      x87 FPU on chip                        = true
      virtual-8086 mode enhancement          = true
      debugging extensions                   = true
      page size extensions                   = true
      time stamp counter                     = true
      RDMSR and WRMSR support                = true
      physical address extensions            = true
      machine check exception                = true
      CMPXCHG8B inst.                        = true
      APIC on chip                           = true
      SYSENTER and SYSEXIT                   = true
      memory type range registers            = true
      PTE global bit                         = true
      machine check architecture             = false
      conditional move/compare instruction   = true
      page attribute table                   = true
      page size extension                    = false
      processor serial number                = false
      CLFLUSH instruction                    = true
      debug store                            = false
      thermal monitor and clock ctrl         = true
      MMX Technology                         = true
      FXSAVE/FXRSTOR                         = true
      SSE extensions                         = true
      SSE2 extensions                        = true
      self snoop                             = false

hyper-threading / multi-core supported = false
therm. monitor = false

According to the datasheet, this should be 'true'.

IA64 = false
pending break event = true
feature information (1/ecx):

      PNI/SSE3: Prescott New Instructions    = true
      MONITOR/MWAIT                          = false
      CPL-qualified debug store              = false
      VMX: virtual machine extensions        = false
      Enhanced Intel SpeedStep Technology    = true
      thermal monitor 2                      = false

Same here.

context ID: adaptive or shared L1 data = false
cmpxchg16b available = false
xTPR disable = false
extended processor signature (0x80000001/eax):

      generation     = 0x0 (0)
      model          = 0x0 (0)
      stepping       = 0x0 (0)
      (simple synth) = unknown
   extended feature flags (0x80000001/edx):
      x87 FPU on chip                       = false
      virtual-8086 mode enhancement         = false
      debugging extensions                  = false
      page size extensions                  = false
      time stamp counter                    = false
      RDMSR and WRMSR support               = false
      physical address extensions           = false
      machine check exception               = false
      CMPXCHG8B inst.                       = false
      APIC on chip                          = false
      SYSCALL and SYSRET instructions       = false
      memory type range registers           = false
      global paging extension               = false
      machine check architecture            = false
      conditional move/compare instruction  = false
      page attribute table                  = false
      page size extension                   = false
      multiprocessing capable               = false
      AMD multimedia instruction extensions = false
      MMX Technology                        = false
      extended MMX                          = false
      SSE extensions                        = false
      AA-64                                 = false
      3DNow! instruction extensions         = false
      3DNow! instructions                   = false
   brand = "                   VIA Esther processor 1000MHz"
   L1 TLB/cache information: 2M/4M pages & L1 TLB (0x80000005/eax):
      instruction # entries     = 0x0 (0)
      instruction associativity = 0x0 (0)
      data # entries            = 0x0 (0)
      data associativity        = 0x0 (0)
   L1 TLB/cache information: 4K pages & L1 TLB (0x80000005/ebx):
      instruction # entries     = 0x80 (128)
      instruction associativity = 0x8 (8)
      data # entries            = 0x80 (128)
      data associativity        = 0x8 (8)
   L1 data cache information (0x80000005/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0x4 (4)
      size (Kb)         = 0x40 (64)
   L1 instruction cache information (0x80000005/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0x4 (4)
      size (Kb)         = 0x40 (64)
   L2 TLB/cache information: 2M/4M pages & L2 TLB (0x80000006/eax):
      instruction # entries     = 0x0 (0)
      instruction associativity = L2 off (0)
      data # entries            = 0x0 (0)
      data associativity        = L2 off (0)
   L2 TLB/cache information: 4K pages & L2 TLB (0x80000006/ebx):
      instruction # entries     = 0x0 (0)
      instruction associativity = L2 off (0)
      data # entries            = 0x0 (0)
      data associativity        = L2 off (0)
   L2 unified cache information (0x80000006/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0xa (10)
      size (Kb)         = 0x80 (128)
   0xc0000001: eax=0x00000000
   extended feature flags (0xc0000001/edx):
      alternate instruction set                 = false
      alternate instruction set enabled         = false
      random number generator                   = true
      random number generator enabled           = true
      LongHaul MSR 0000_110Ah                   = false
      FEMMS                                     = false
      advanced cryptography engine (ACE)        = true

advanced cryptography engine (ACE)enabled = true
0xc0000002: eax=0x00000000 ebx=0x08000810 ecx=0x08100a13 edx=0x42000000

Wilken, what motherboard is this? Are there any BIOS settings (thermal management) that you can play around with? Try different thermal management settings and rerun cpuid and check if the thermal monitors show up as 'true'.
I have a cpuid dump from Sergio (C7 on a LN10000 board) and the only difference between his dump and yours is that his shows 'true' for both thermal monitors. Maybe your BIOS disables these features on your CPU.

...juerg

Quoted 10 lines · Jean Delvare
Quoted 9 lines · Wilken Gottwalt

Am Mittwoch 02 Juli 2008 20:22:57 schrieb Juerg Haefliger:

Quoted 7 lines

Hi Jean, Wilken,

Thanks for testing the driver. Wilken, can you run the attached tool with and without the '-r' option and send the output? Your CPU should have the diode.

...juerg

Quoted 9 lines
Quoted 3 lines

Hi Juerg,

this is a really cute little app. Okay, here is the output.

Err, where?

--
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#13 lore raw
In reply to Juerg Haefliger

Am Samstag 05 Juli 2008 22:49:46 schrieb Juerg Haefliger:

Quoted 147 lines

Here it is:

vendor_id = "CentaurHauls"
version information (1/eax):
processor type = primary processor (0)
family = Intel Pentium Pro/II/III/Celeron, AMD
Athlon/Duron, Cyrix M2, VIA C3 (6)

      model           = 0xa (10)
      stepping id     = 0x9 (9)
      extended family = 0x0 (0)
      extended model  = 0x0 (0)
      (simple synth)  = VIA C7 / C7-M (Esther WinChip C5J core)
   miscellaneous (1/ebx):
      process local APIC physical ID = 0x0 (0)
      cpu count                      = 0x1 (1)
      CLFLUSH line size              = 0x8 (8)
      brand index                    = 0x0 (0)
   brand id = 0x00 (0): unknown
   feature information (1/edx):
      x87 FPU on chip                        = true
      virtual-8086 mode enhancement          = true
      debugging extensions                   = true
      page size extensions                   = true
      time stamp counter                     = true
      RDMSR and WRMSR support                = true
      physical address extensions            = true
      machine check exception                = true
      CMPXCHG8B inst.                        = true
      APIC on chip                           = true
      SYSENTER and SYSEXIT                   = true
      memory type range registers            = true
      PTE global bit                         = true
      machine check architecture             = false
      conditional move/compare instruction   = true
      page attribute table                   = true
      page size extension                    = false
      processor serial number                = false
      CLFLUSH instruction                    = true
      debug store                            = false
      thermal monitor and clock ctrl         = true
      MMX Technology                         = true
      FXSAVE/FXRSTOR                         = true
      SSE extensions                         = true
      SSE2 extensions                        = true
      self snoop                             = false

hyper-threading / multi-core supported = false
therm. monitor = false

According to the datasheet, this should be 'true'.

IA64 = false
pending break event = true
feature information (1/ecx):

      PNI/SSE3: Prescott New Instructions    = true
      MONITOR/MWAIT                          = false
      CPL-qualified debug store              = false
      VMX: virtual machine extensions        = false
      Enhanced Intel SpeedStep Technology    = true
      thermal monitor 2                      = false

Same here.

context ID: adaptive or shared L1 data = false
cmpxchg16b available = false
xTPR disable = false
extended processor signature (0x80000001/eax):

      generation     = 0x0 (0)
      model          = 0x0 (0)
      stepping       = 0x0 (0)
      (simple synth) = unknown
   extended feature flags (0x80000001/edx):
      x87 FPU on chip                       = false
      virtual-8086 mode enhancement         = false
      debugging extensions                  = false
      page size extensions                  = false
      time stamp counter                    = false
      RDMSR and WRMSR support               = false
      physical address extensions           = false
      machine check exception               = false
      CMPXCHG8B inst.                       = false
      APIC on chip                          = false
      SYSCALL and SYSRET instructions       = false
      memory type range registers           = false
      global paging extension               = false
      machine check architecture            = false
      conditional move/compare instruction  = false
      page attribute table                  = false
      page size extension                   = false
      multiprocessing capable               = false
      AMD multimedia instruction extensions = false
      MMX Technology                        = false
      extended MMX                          = false
      SSE extensions                        = false
      AA-64                                 = false
      3DNow! instruction extensions         = false
      3DNow! instructions                   = false
   brand = "                   VIA Esther processor 1000MHz"
   L1 TLB/cache information: 2M/4M pages & L1 TLB (0x80000005/eax):
      instruction # entries     = 0x0 (0)
      instruction associativity = 0x0 (0)
      data # entries            = 0x0 (0)
      data associativity        = 0x0 (0)
   L1 TLB/cache information: 4K pages & L1 TLB (0x80000005/ebx):
      instruction # entries     = 0x80 (128)
      instruction associativity = 0x8 (8)
      data # entries            = 0x80 (128)
      data associativity        = 0x8 (8)
   L1 data cache information (0x80000005/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0x4 (4)
      size (Kb)         = 0x40 (64)
   L1 instruction cache information (0x80000005/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0x4 (4)
      size (Kb)         = 0x40 (64)
   L2 TLB/cache information: 2M/4M pages & L2 TLB (0x80000006/eax):
      instruction # entries     = 0x0 (0)
      instruction associativity = L2 off (0)
      data # entries            = 0x0 (0)
      data associativity        = L2 off (0)
   L2 TLB/cache information: 4K pages & L2 TLB (0x80000006/ebx):
      instruction # entries     = 0x0 (0)
      instruction associativity = L2 off (0)
      data # entries            = 0x0 (0)
      data associativity        = L2 off (0)
   L2 unified cache information (0x80000006/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0xa (10)
      size (Kb)         = 0x80 (128)
   0xc0000001: eax=0x00000000
   extended feature flags (0xc0000001/edx):
      alternate instruction set                 = false
      alternate instruction set enabled         = false
      random number generator                   = true
      random number generator enabled           = true
      LongHaul MSR 0000_110Ah                   = false
      FEMMS                                     = false
      advanced cryptography engine (ACE)        = true

advanced cryptography engine (ACE)enabled = true
0xc0000002: eax=0x00000000 ebx=0x08000810 ecx=0x08100a13 edx=0x42000000

Quoted 8 lines

Wilken, what motherboard is this? Are there any BIOS settings (thermal management) that you can play around with? Try different thermal management settings and rerun cpuid and check if the thermal monitors show up as 'true'.
I have a cpuid dump from Sergio (C7 on a LN10000 board) and the only difference between his dump and yours is that his shows 'true' for both thermal monitors. Maybe your BIOS disables these features on your CPU.

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#14 lore raw
In reply to Juerg Haefliger

Wilken,

Quoted 9 lines
Quoted 8 lines

Wilken, what motherboard is this? Are there any BIOS settings (thermal management) that you can play around with? Try different thermal management settings and rerun cpuid and check if the thermal monitors show up as 'true'.
I have a cpuid dump from Sergio (C7 on a LN10000 board) and the only difference between his dump and yours is that his shows 'true' for both thermal monitors. Maybe your BIOS disables these features on your CPU.

Quoted 4 lines

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

Look at page 31 (CPU features) of the user's manual at
http://www.via.com.tw/en/products/mainboards/downloads.jsp?motherboard_idG2#Manual

...juerg

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#15 lore raw
In reply to Juerg Haefliger

Am Montag 07 Juli 2008 08:11:02 schrieb Juerg Haefliger:

Quoted 16 lines

Wilken,

Quoted 9 lines
Quoted 8 lines

Wilken, what motherboard is this? Are there any BIOS settings (thermal management) that you can play around with? Try different thermal management settings and rerun cpuid and check if the thermal monitors show up as 'true'.
I have a cpuid dump from Sergio (C7 on a LN10000 board) and the only difference between his dump and yours is that his shows 'true' for both thermal monitors. Maybe your BIOS disables these features on your CPU.

Quoted 4 lines

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

Quoted 5 lines

Look at page 31 (CPU features) of the user's manual at
http://www.via.com.tw/en/products/mainboards/downloads.jsp?motherboard_id=4
72#Manual

...juerg

Did you ever saw a manual which was 100% identical with a bios? I saw about 30 ones and no one was. With other words: these options are not available in the bios. I only have the two C7 options which are not working at all. :-/

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#16 lore raw
In reply to Juerg Haefliger

Hi Wilken,

Quoted 17 lines

Am Montag 07 Juli 2008 08:11:02 schrieb Juerg Haefliger:

Quoted 16 lines

Wilken,

Quoted 13 lines
Quoted 8 lines

Wilken, what motherboard is this? Are there any BIOS settings (thermal management) that you can play around with? Try different thermal management settings and rerun cpuid and check if the thermal monitors show up as 'true'.
I have a cpuid dump from Sergio (C7 on a LN10000 board) and the only difference between his dump and yours is that his shows 'true' for both thermal monitors. Maybe your BIOS disables these features on your CPU.

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

Quoted 8 lines
Quoted 5 lines

Look at page 31 (CPU features) of the user's manual at
http://www.via.com.tw/en/products/mainboards/downloads.jsp?motherboard_id=4
72#Manual

...juerg

Did you ever saw a manual which was 100% identical with a bios? I saw about 30 ones and no one was.

Actually yes. All my BIOSes and manual match 100%.

Quoted 2 lines

With other words: these options are not available in the bios. I only have the two C7 options which are not working at all. :-/

OK, didn't mean to imply that your incapable of navigating the BIOS :-) Just making sure all the grounds are covered. I'm assuming you're on the latest BIOS rev?

I'll try to get some answers from VIA but I'm out of ideas. Looks like your CPU doesn't have those thermal sensors.

...juerg

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#17 lore raw
In reply to Juerg Haefliger

Am Montag 07 Juli 2008 19:29:00 schrieb Juerg Haefliger:

Quoted 31 lines

Hi Wilken,

Quoted 18 lines

Am Montag 07 Juli 2008 08:11:02 schrieb Juerg Haefliger:

Quoted 17 lines

Wilken,

Quoted 14 lines
Quoted 8 lines

Wilken, what motherboard is this? Are there any BIOS settings (thermal management) that you can play around with? Try different thermal management settings and rerun cpuid and check if the thermal monitors show up as 'true'.
I have a cpuid dump from Sergio (C7 on a LN10000 board) and the only difference between his dump and yours is that his shows 'true' for both thermal monitors. Maybe your BIOS disables these features on your CPU.

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

Quoted 8 lines
Quoted 5 lines

Look at page 31 (CPU features) of the user's manual at
http://www.via.com.tw/en/products/mainboards/downloads.jsp?motherboard_i
d=4 72#Manual

...juerg

Did you ever saw a manual which was 100% identical with a bios? I saw about 30 ones and no one was.

Actually yes. All my BIOSes and manual match 100%.

Quoted 8 lines
Quoted 2 lines

With other words: these options are not available in the bios. I only have the two C7 options which are not working at all. :-/

OK, didn't mean to imply that your incapable of navigating the BIOS

:-) Just making sure all the grounds are covered. I'm assuming you're

on the latest BIOS rev?

Yes, I have the latest bios. The fun part is, the board had a more actual bios than the bios which was available on the homepage.

Quoted 2 lines

I'll try to get some answers from VIA but I'm out of ideas. Looks like your CPU doesn't have those thermal sensors.

This is weird, it's a plain C7.

Quoted 1 line

...juerg

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#18 lore raw
In reply to Juerg Haefliger

Hi,

Quoted 16 lines · Wilken Gottwalt

Am Montag 07 Juli 2008 19:29:00 schrieb Juerg Haefliger:

Quoted 15 lines
Quoted 15 lines

Am Montag 07 Juli 2008 08:11:02 schrieb Juerg Haefliger:

Quoted 14 lines
Quoted 14 lines
Quoted 8 lines

Wilken, what motherboard is this? Are there any BIOS settings (thermal management) that you can play around with? Try different thermal management settings and rerun cpuid and check if the thermal monitors show up as 'true'.
I have a cpuid dump from Sergio (C7 on a LN10000 board) and the only difference between his dump and yours is that his shows 'true' for both thermal monitors. Maybe your BIOS disables these features on your CPU.

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

[...]

Quoted 4 lines
Quoted 2 lines

I'll try to get some answers from VIA but I'm out of ideas. Looks like your CPU doesn't have those thermal sensors.

This is weird, it's a plain C7.

Anybody get anywhere with this? I'm trying to get some useful data out of the Pico-ITX boards as well.

Thanks,
Forest

Signature · 3 lines
Forest Bond
http://www.alittletooquiet.net
http://www.pytagsfs.org

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#19 lore raw
In reply to Juerg Haefliger

Hi Forest,

Quoted 22 lines · Forest Bond

Hi,

Quoted 16 lines · Wilken Gottwalt

Am Montag 07 Juli 2008 19:29:00 schrieb Juerg Haefliger:

Quoted 15 lines
Quoted 15 lines

Am Montag 07 Juli 2008 08:11:02 schrieb Juerg Haefliger:

Quoted 14 lines
Quoted 14 lines
Quoted 8 lines

Wilken, what motherboard is this? Are there any BIOS settings (thermal management) that you can play around with? Try different thermal management settings and rerun cpuid and check if the thermal monitors show up as 'true'.
I have a cpuid dump from Sergio (C7 on a LN10000 board) and the only difference between his dump and yours is that his shows 'true' for both thermal monitors. Maybe your BIOS disables these features on your CPU.

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

[...]

Quoted 7 lines
Quoted 4 lines
Quoted 2 lines

I'll try to get some answers from VIA but I'm out of ideas. Looks like your CPU doesn't have those thermal sensors.

This is weird, it's a plain C7.

Anybody get anywhere with this? I'm trying to get some useful data out of the Pico-ITX boards as well.

Yes I did receive some information from VIA but I haven't had a chance yet to fully digest it. From the quick glance that I took, it looks like there are different C7 models and the thermal sensors are disabled depending on the model. VIA provided some sample BIOS code but I need to take a closer look to fully understand it. More later.

...juerg

Quoted 3 lines

Thanks,
Forest
--

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#20 lore raw
In reply to Juerg Haefliger
Quoted 10 lines

I had a colleague of mine (Cc'd, hi Wilken :)) test your driver. The voltage part appears to work, we saw in0 change from 0.96 V at 800 MHz to 1.00V at 1000 MHz. However the temperature is always reported as 0 degrees C. We dumped the value of eax after the cpuid() call and it's 0x0.

Does this mean that Wilken's CPU lacks the thermal diode? Or could this
be a bug in your driver? For reference, the CPU in question is:

Quoted 6 lines

processor : 0
vendor_id : CentaurHauls
cpu family : 6
model : 10
model name : VIA Esther processor 1000MHz
stepping : 9

Same thing here with the same CPU on a VIA EPIA SN10000EG motherboard. However I have CPU temperature reading through the SCH3112 chip.

vulcano:/usr/src ~> sensors
sch311x-isa-0a70

Adapter: ISA adapter
V5stby:      +0.00 V  (min =  +0.00 V, max =  +6.64 V)   ALARM
Vccp:        +0.95 V  (min =  +0.00 V, max =  +1.99 V)
V3.3:        +3.27 V  (min =  +0.00 V, max =  +4.38 V)
V5:          +4.99 V  (min =  +0.00 V, max =  +6.64 V)
V12:        +12.19 V  (min =  +0.00 V, max = +15.94 V)
V3.3stby:    +3.30 V  (min =  +0.00 V, max =  +4.38 V)
Vbat:        +3.18 V  (min =  +0.00 V, max =  +4.38 V)
Case Fan:   1088 RPM  (min =    0 RPM)
PSU  Fan:   1459 RPM  (min =    0 RPM)
CPU Temp:    +47.2°C  (low  = -127.0°C, high = +127.0°C)
Int Temp:    +35.8°C  (low  = -127.0°C, high = +127.0°C)
NB  Temp:    +34.5°C  (low  = -127.0°C, high = +127.0°C)

c7temp-isa-0000

Adapter: ISA adapter
in0:         +0.96 V
temp1:        +0.0°C

Cpuid output attached

Regards,
Marco

vulcano:/usr/src/cpuid-20060917 ~> ./cpuid
CPU:
vendor_id = "CentaurHauls"
version information (1/eax):

      processor type  = primary processor (0)
      family          = Intel Pentium Pro/II/III/Celeron, AMD Athlon/Duron, Cyrix M2, VIA C3 (6)
      model           = 0xa (10)
      stepping id     = 0x9 (9)
      extended family = 0x0 (0)
      extended model  = 0x0 (0)
      (simple synth)  = VIA C7 / C7-M (Esther WinChip C5J core)
   miscellaneous (1/ebx):
      process local APIC physical ID = 0x0 (0)
      cpu count                      = 0x1 (1)
      CLFLUSH line size              = 0x8 (8)
      brand index                    = 0x0 (0)
   brand id = 0x00 (0): unknown
   feature information (1/edx):
      x87 FPU on chip                        = true
      virtual-8086 mode enhancement          = true
      debugging extensions                   = true
      page size extensions                   = true
      time stamp counter                     = true
      RDMSR and WRMSR support                = true
      physical address extensions            = true
      machine check exception                = true
      CMPXCHG8B inst.                        = true
      APIC on chip                           = true
      SYSENTER and SYSEXIT                   = true
      memory type range registers            = true
      PTE global bit                         = true
      machine check architecture             = false
      conditional move/compare instruction   = true
      page attribute table                   = true
      page size extension                    = false
      processor serial number                = false
      CLFLUSH instruction                    = true
      debug store                            = false
      thermal monitor and clock ctrl         = true
      MMX Technology                         = true
      FXSAVE/FXRSTOR                         = true
      SSE extensions                         = true
      SSE2 extensions                        = true
      self snoop                             = false
      hyper-threading / multi-core supported = false
      therm. monitor                         = true
      IA64                                   = false
      pending break event                    = true
   feature information (1/ecx):
      PNI/SSE3: Prescott New Instructions    = true
      MONITOR/MWAIT                          = false
      CPL-qualified debug store              = false
      VMX: virtual machine extensions        = false
      Enhanced Intel SpeedStep Technology    = true
      thermal monitor 2                      = true
      context ID: adaptive or shared L1 data = false
      cmpxchg16b available                   = false
      xTPR disable                           = false
   extended processor signature (0x80000001/eax):
      generation     = 0x0 (0)
      model          = 0x0 (0)
      stepping       = 0x0 (0)
      (simple synth) = unknown
   extended feature flags (0x80000001/edx):
      x87 FPU on chip                       = false
      virtual-8086 mode enhancement         = false
      debugging extensions                  = false
      page size extensions                  = false
      time stamp counter                    = false
      RDMSR and WRMSR support               = false
      physical address extensions           = false
      machine check exception               = false
      CMPXCHG8B inst.                       = false
      APIC on chip                          = false
      SYSCALL and SYSRET instructions       = false
      memory type range registers           = false
      global paging extension               = false
      machine check architecture            = false
      conditional move/compare instruction  = false
      page attribute table                  = false
      page size extension                   = false
      multiprocessing capable               = false
      AMD multimedia instruction extensions = false
      MMX Technology                        = false
      extended MMX                          = false
      SSE extensions                        = false
      AA-64                                 = false
      3DNow! instruction extensions         = false
      3DNow! instructions                   = false
   brand = "                   VIA Esther processor 1000MHz"
   L1 TLB/cache information: 2M/4M pages & L1 TLB (0x80000005/eax):
      instruction # entries     = 0x0 (0)
      instruction associativity = 0x0 (0)
      data # entries            = 0x0 (0)
      data associativity        = 0x0 (0)
   L1 TLB/cache information: 4K pages & L1 TLB (0x80000005/ebx):
      instruction # entries     = 0x80 (128)
      instruction associativity = 0x8 (8)
      data # entries            = 0x80 (128)
      data associativity        = 0x8 (8)
   L1 data cache information (0x80000005/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0x4 (4)
      size (Kb)         = 0x40 (64)
   L1 instruction cache information (0x80000005/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0x4 (4)
      size (Kb)         = 0x40 (64)
   L2 TLB/cache information: 2M/4M pages & L2 TLB (0x80000006/eax):
      instruction # entries     = 0x0 (0)
      instruction associativity = L2 off (0)
      data # entries            = 0x0 (0)
      data associativity        = L2 off (0)
   L2 TLB/cache information: 4K pages & L2 TLB (0x80000006/ebx):
      instruction # entries     = 0x0 (0)
      instruction associativity = L2 off (0)
      data # entries            = 0x0 (0)
      data associativity        = L2 off (0)
   L2 unified cache information (0x80000006/ecx):
      line size (bytes) = 0x40 (64)
      lines per tag     = 0x1 (1)
      associativity     = 0xa (10)
      size (Kb)         = 0x80 (128)
   0xc0000001: eax=0x00000000
   extended feature flags (0xc0000001/edx):
      alternate instruction set                 = false
      alternate instruction set enabled         = false
      random number generator                   = true
      random number generator enabled           = true
      LongHaul MSR 0000_110Ah                   = false
      FEMMS                                     = false
      advanced cryptography engine (ACE)        = true

advanced cryptography engine (ACE)enabled = true
0xc0000002: eax=0x00000000 ebx=0x08000810 ecx=0x08100a13 edx=0x42000000 (multi-processing synth): none
(synth) = VIA C7 / C7-M (Esther WinChip C5J core)

vulcano:/usr/src/cpuid-20060917 ~> ./cpuid -r
CPU:
0x00000000: eax=0x00000001 ebx=0x746e6543 ecx=0x736c7561 edx=0x48727561 0x00000001: eax=0x000006a9 ebx=0x00010800 ecx=0x00000181 edx=0xa7c9bbff 0x80000000: eax=0x80000006 ebx=0x00000000 ecx=0x00000000 edx=0x00000000 0x80000001: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00100000 0x80000002: eax=0x20202020 ebx=0x20202020 ecx=0x20202020 edx=0x20202020 0x80000003: eax=0x56202020 ebx=0x45204149 ecx=0x65687473 edx=0x72702072 0x80000004: eax=0x7365636f ebx=0x20726f73 ecx=0x30303031 edx=0x007a484d 0x80000005: eax=0x00000000 ebx=0x08800880 ecx=0x40040140 edx=0x40040140 0x80000006: eax=0x00000000 ebx=0x00000000 ecx=0x0080a140 edx=0x00000000 0x80860000: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00000000 0xc0000000: eax=0xc0000002 ebx=0x00000000 ecx=0x00000000 edx=0x00000000 0xc0000001: eax=0x00000000 ebx=0x00000000 ecx=0x00000000 edx=0x00003fcc 0xc0000002: eax=0x00000000 ebx=0x08000810 ecx=0x08100a13 edx=0x42000000

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#21 lore raw
In reply to Juerg Haefliger

Hi Juerg,

Quoted 9 lines · Juerg Haefliger
Quoted 8 lines · Forest Bond
Quoted 7 lines · Wilken Gottwalt

Am Montag 07 Juli 2008 19:29:00 schrieb Juerg Haefliger:

Quoted 6 lines
Quoted 6 lines

Am Montag 07 Juli 2008 08:11:02 schrieb Juerg Haefliger:

Quoted 5 lines
Quoted 5 lines

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

[...]

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

I'll try to get some answers from VIA but I'm out of ideas. Looks like your CPU doesn't have those thermal sensors.

This is weird, it's a plain C7.

Quoted 8 lines
Quoted 2 lines

Anybody get anywhere with this? I'm trying to get some useful data out of the Pico-ITX boards as well.

Yes I did receive some information from VIA but I haven't had a chance yet to fully digest it. From the quick glance that I took, it looks like there are different C7 models and the thermal sensors are disabled depending on the model. VIA provided some sample BIOS code but I need to take a closer look to fully understand it. More later.

Just following up. Anything new to report here? Can I do anything to help get this moving?

Thanks,
Forest

Signature · 3 lines
Forest Bond
http://www.alittletooquiet.net
http://www.pytagsfs.org

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#22 lore raw
In reply to Juerg Haefliger

Hi Forest,

Well the bottom line is that the value returned in the EAX register (0xC000002) is zero for all of these cases where people report 0 C CPU temp. I haven't had the time yet to figure out what is different about these CPUs and why they don't seem to adhere to the spec that I have. One possibility is that my spec is old and things changed in the meantime and another one is that the BIOS disables the thermal diodes in the CPU. I have some sample BIOS code from VIA which does that but I haven't had the time yet to figure out if that applies in this case.

...juerg

Quoted 39 lines · Forest Bond

Hi Juerg,

Quoted 9 lines · Juerg Haefliger
Quoted 8 lines · Forest Bond
Quoted 7 lines · Wilken Gottwalt

Am Montag 07 Juli 2008 19:29:00 schrieb Juerg Haefliger:

Quoted 6 lines
Quoted 6 lines

Am Montag 07 Juli 2008 08:11:02 schrieb Juerg Haefliger:

Quoted 5 lines
Quoted 5 lines

It's the Artigo-Box from Via with a PX10000 board
(http://www.via.com.tw/en/products/embedded/artigo/).
No, there are no bios settings dealing with thermal or power management. There is nothing I can play with. The bios is very rudimentary.

[...]

Quoted 5 lines
Quoted 5 lines
Quoted 4 lines
Quoted 2 lines

I'll try to get some answers from VIA but I'm out of ideas. Looks like your CPU doesn't have those thermal sensors.

This is weird, it's a plain C7.

Quoted 8 lines
Quoted 2 lines

Anybody get anywhere with this? I'm trying to get some useful data out of the Pico-ITX boards as well.

Yes I did receive some information from VIA but I haven't had a chance yet to fully digest it. From the quick glance that I took, it looks like there are different C7 models and the thermal sensors are disabled depending on the model. VIA provided some sample BIOS code but I need to take a closer look to fully understand it. More later.

Just following up. Anything new to report here? Can I do anything to help get this moving?

Thanks,
Forest
--
Forest Bond
http://www.alittletooquiet.net
http://www.pytagsfs.org

Quoted 8 lines

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI3p5ARO4fQQdv5AwRAqquAJ4/oa5K/MORHW/7UJCXjMHVlIg78ACgnzjr GLguLdY0Yb80I+ZFGL/BeRI> =o0oK
-----END PGP SIGNATURE-----

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors