VID on Intel Core Duo
Subsystems (2)
I'm trying to obtain the VID on an HP notebook with a Core Duo CPU. Under Windows, I could see the voltage, speed, temperature, etc. but with lm-sensors all I'm able to see is the temperature.
I have run sensors-detect to no avail. Can anyone provide any advice to me on how to get this working? Thanks for your time and help!
Here is the output from sensors-detect:
# sensors-detect revision 5249 (2008-05-11 22:56:25 +0200)
Quoted 83 lines
This program will help you determine which kernel modules you need to load to use
lm_sensorsmost effectively. It is generally safe and recommended to accept the default answers to all questions, unless you know what you're doing.We can start with probing for (PCI) I2C or SMBus adapters. Do you want to probe now? (YES/no): yes
Probing for PCI bus adapters...
Use driver `i2c-i801' for device 0000:00:1f.3: Intel 82801G ICH7We will now try to load each adapter module in turn.
Load `i2c-i801' (say NO if built into your kernel)? (YES/no): yes Module loaded successfully.
If you have undetectable or unsupported I2C/SMBus adapters, you can have them scanned by manually loading the modules before running this script.To continue, we need module
i2c-dev' to be loaded. Do you want to loadi2c-dev' now? (YES/no): yes Module loaded successfully.We are now going to do the I2C/SMBus adapter probings. Some chips may be double detected; we choose the one with the highest confidence value in that case.
If you found that the adapter hung after probing a certain address, you can specify that address to remain unprobed.Next adapter: SMBus I801 adapter at 18e0 (i2c-0)
Do you want to scan it? (YES/no/selectively): yes
Client found at address0x50Probing for `Analog Devices ADM1033'... No Probing for `Analog Devices ADM1034'... No Probing for `SPD EEPROM'... Yes(confidence 8, not a hardware monitoring chip)
Probing for `EDID EEPROM'... NoSome chips are also accessible through the ISA I/O ports. We have to write to arbitrary I/O ports to probe them. This is usually safe though. Yes, you do have ISA I/O ports even if you do not have any ISA slots! Do you want to scan the ISA I/O ports? (YES/no): yes
Probing for `National Semiconductor LM78' at 0x290... No Probing for `National Semiconductor LM78-J' at 0x290... No Probing for `National Semiconductor LM79' at 0x290... No Probing for `Winbond W83781D' at 0x290... No Probing for `Winbond W83782D' at 0x290... No Probing for `IPMI BMC KCS' at 0xca0... No Probing for `IPMI BMC SMIC' at 0xca8... NoSome Super I/O chips may also contain sensors. We have to write to standard I/O ports to probe them. This is usually safe. Do you want to scan for Super I/O sensors? (YES/no): yes Probing for Super-I/O at 0x2e/0x2f
Trying family `National Semiconductor'... No Trying family `SMSC'... No Trying family `VIA/Winbond/Fintek'... No Trying family `ITE'... No Probing for Super-I/O at 0x4e/0x4f Trying family `National Semiconductor'... No Trying family `SMSC'... No Trying family `VIA/Winbond/Fintek'... No Trying family `ITE'... NoSome south bridges, CPUs or memory controllers may also contain embedded sensors. Do you want to scan for them? (YES/no): yes
Silicon Integrated Systems SIS5595... No VIA VT82C686 Integrated Sensors... No VIA VT8231 Integrated Sensors... No AMD K8 thermal sensors... No AMD K10 thermal sensors... No Intel Core family thermal sensor... Success!(driver `coretemp')
Intel AMB FB-DIMM thermal sensor... NoNow follows a summary of the probes I have just done. Just press ENTER to continue:
Driver `coretemp' (should be inserted):
Detects correctly:
* Chip `Intel Core family thermal sensor' (confidence: 9)I will now generate the commands needed to load the required modules. Just press ENTER to continue:
Quoted 7 lines
To load everything that is needed, add this to
/etc/modules:#----cut here----
# Chip drivers
coretemp
#----cut here----
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
On Sun, 14 Jun 2009, Maneki Neko wrote:
/me waves back.
Quoted 1 line
Here is the output from sensors-detect:
You might grab the latest and greatest sensors-detect at
http://dl.lm-sensors.org/lm-sensors/files/sensors-detect
and see what it says. sensors-detect is independent of the rest of the sensors package; you can run it even if you don't have lm_sensors installed. (You do need Perl, but if an older version of sensors-detect works, you already have that.)
If the latest sensors-detect finds more sensors, you can then think about installing a newer version of lm-sensors and/or the kernel modules that support your hardware.
Matt Roberds
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Maneki,
Quoted 6 lines · Maneki Neko
I'm trying to obtain the VID on an HP notebook with a Core Duo CPU. Under Windows, I could see the voltage, speed, temperature, etc. but with lm-sensors all I'm able to see is the temperature.
I have run sensors-detect to no avail. Can anyone provide any advice to me on how to get this working? Thanks for your time and help!
What tool do you use on Windows? Does it tell you which chip is used for monitoring?
How many voltages are displayed? If there's only one voltage, is is a measured one, or the VID value?
CPU speed you can get from /proc/cpuinfo, it's not lm-sensors' job. Of did you mean fan speed?
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
The Windows program I use to pull the VID is CPUID's CPU-Z program. It only shows one voltage, the "Core VID". Unfortunately, I don't see anything that states what chip it is using.
Quoted 15 lines · Jean Delvare
Hi Maneki,
Quoted 1 line · Maneki Neko
I'm trying to obtain the VID on an HP notebook with a Core Duo CPU.
Under
Quoted 4 lines
Windows, I could see the voltage, speed, temperature, etc. but with lm-sensors all I'm able to see is the temperature.
I have run sensors-detect to no avail. Can anyone provide any advice to
me
Quoted 1 line
on how to get this working? Thanks for your time and help!
What tool do you use on Windows? Does it tell you which chip is used for monitoring?
Quoted 9 lines
How many voltages are displayed? If there's only one voltage, is is a measured one, or the VID value?
CPU speed you can get from
/proc/cpuinfo, it's not lm-sensors' job. Of did you mean fan speed?--
Jean Delvare
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Maneki,
Quoted 3 lines · Maneki Neko
The Windows program I use to pull the VID is CPUID's CPU-Z program. It only shows one voltage, the "Core VID". Unfortunately, I don't see anything that states what chip it is using.
Maybe because there's no chip but the value is read from the CPU directly. I have a patch for the coretemp driver, written by Rudolf Marek long ago, which reads the VID value of Intel Core CPUs. I seem to remember it worked reasonably well for me. I also seem to remember it wasn't applied because it makes use of an undocumented register (not that it has prevented us from releasing the coretemp driver in the first place, with all the undocumented stuff it uses.)
Please give a try to this patch if you can. If it works OK for you and others, maybe we can merge it still, unless Rudolf strongly objects.
--- drivers/hwmon/Kconfig | 1 + drivers/hwmon/coretemp.c | 16 ++++++++++++++++ 2 files changed, 17 insertions(+)
drivers/hwmon/coretemp.c +16 -0
@@ -28,6 +28,7 @@#include <linux/hwmon.h> #include <linux/sysfs.h> #include <linux/hwmon-sysfs.h> +#include <linux/hwmon-vid.h> #include <linux/err.h> #include <linux/mutex.h> #include <linux/list.h>
@@ -58,6 +59,8 @@ struct coretemp_data {int tjmax;int ttarget;u8 alarm; +u8 voltage; +u8 vrm; };/*
@@ -86,6 +89,13 @@ static ssize_t show_alarm(struct devicereturn sprintf (buf,"%d\n" , data->alarm); } +static ssize_t show_vid (struct device *dev,struct device_attribute + *devattr,char *buf) +{ +struct coretemp_data *data =coretemp_update_device (dev); +return sprintf (buf,"%d\n" ,vid_from_reg (data->voltage, data->vrm)); +} +static ssize_t show_temp (struct device *dev,struct device_attribute *devattr,char *buf) {
@@ -109,6 +119,7 @@ static SENSOR_DEVICE_ATTR(temp1_crit, S_ static SENSOR_DEVICE_ATTR(temp1_max, S_IRUGO, show_temp, NULL, SHOW_TTARGET); static DEVICE_ATTR(temp1_crit_alarm, S_IRUGO, show_alarm, NULL); +static DEVICE_ATTR(cpu0_vid, S_IRUGO, show_vid, NULL); static SENSOR_DEVICE_ATTR(temp1_label, S_IRUGO, show_name, NULL, SHOW_LABEL); static SENSOR_DEVICE_ATTR(name, S_IRUGO, show_name, NULL, SHOW_NAME);
@@ -116,6 +127,7 @@ static struct attribute *coretemp_attrib &sensor_dev_attr_name.dev_attr.attr, &sensor_dev_attr_temp1_label.dev_attr.attr, &dev_attr_temp1_crit_alarm.attr, + &dev_attr_cpu0_vid.attr, &sensor_dev_attr_temp1_input.dev_attr.attr, &sensor_dev_attr_temp1_crit.dev_attr.attr,NULL
@@ -135,6 +147,8 @@ static struct coretemp_data *coretemp_upu32 eax, edx; data->valid =0 ; +rdmsr_on_cpu (data->id,MSR_IA32_PERF_STATUS , &eax, &edx); + data->voltage = ~eax &0x3f ;rdmsr_on_cpu (data->id,MSR_IA32_THERM_STATUS , &eax, &edx); data->alarm = (eax >>5 ) &1 ;/* update only if data has been valid */
@@ -215,6 +229,8 @@ static int __devinit coretemp_probe(stru goto exit; } +/* Get VRM */ + data->vrm =vid_which_vrm (); data->id = pdev->id; data->name ="coretemp" ;mutex_init (&data->update_lock);
drivers/hwmon/Kconfig +1 -0
@@ -403,6 +403,7 @@ config SENSORS_GL520SM config SENSORS_CORETEMP tristate "Intel Core (2) Duo/Solo temperature sensor" + select HWMON_VID depends on X86 && EXPERIMENTAL help If you say yes here you get support for the temperature
Signature · 7 lines
Jean Delvare http://khali.linux-fr.org/wishlist.html _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors