VIA VT1211
Hi guys,
I bought a VIA VB7001G which implements the VT1211 monitoring chip. I'm having a couple of problems.
1) the CPU temperature isn't realistic (~ -70 °C). I tried the various computation available in the configuration file but my CPU isn't in the list!
# cat /proc/cpuinfo processor : 0 vendor_id : CentaurHauls cpu family : 6 model : 10 model name : VIA Esther processor 1500MHz stepping : 9 cpu MHz : 1496.279 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx pni tm2 rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en bogomips : 2996.78 clflush size : 64
# cat /sys/devices/platform/vt1211.24576/temp1_input 39000
BTW, the other sensor (Internal temperature) does seem to work correctly (I read that it's scaled by the chip itself). I also tried to read ACPI thermal zone but it's always -245 °C.
2) the fan speed control doesn't work. Ok, lm-sensors can't control the fan speed manually but I can't even change the values in /sys/devices/platform/vt1211.24576/pwm[1-2]_auto_point[1-4]_[temp-pwm]. Those values are always 0 for the temperatures and 255 for the pwm.
Anyone can help me?
Thanks, Alessandro.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Alessandro,
Quoted 8 lines
Hi guys,
I bought a VIA VB7001G which implements the VT1211 monitoring chip. I'm having a couple of problems.
1) the CPU temperature isn't realistic (~ -70 °C). I tried the various computation available in the configuration file but my CPU isn't in the list!
What's wrong with 70C? :-) That's still within spec. Does the board have a CPU fan?
Quoted 14 lines
# cat /proc/cpuinfo processor : 0 vendor_id : CentaurHauls cpu family : 6 model : 10 model name : VIA Esther processor 1500MHz stepping : 9 cpu MHz : 1496.279 cache size : 128 KB fdiv_bug : no hlt_bug : no f00f_bug : no coma_bug : no fpu : yes
Quoted 8 lines
fpu_exception : yes cpuid level : 1 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic mtrr pge cmov pat clflush acpi mmx fxsr sse sse2 tm nx pni tm2 rng rng_en ace ace_en ace2 ace2_en phe phe_en pmm pmm_en bogomips : 2996.78 clflush size : 64
There is no info available for Esther from VIA. Or I couldn't find it.
Quoted 2 lines
# cat /sys/devices/platform/vt1211.24576/temp1_input 39000
Can you please send the output of 'grep "" /sys/devices/platform/vt1211*/*' and the full output of 'sensors'?
Quoted 8 lines
BTW, the other sensor (Internal temperature) does seem to work correctly (I read that it's scaled by the chip itself). I also tried to read ACPI thermal zone but it's always -245 °C.
2) the fan speed control doesn't work. Ok, lm-sensors can't control the fan speed manually but I can't even change the values in /sys/devices/platform/vt1211.24576/pwm[1-2]_auto_point[1-4]_[temp-pwm]. Those values are always 0 for the temperatures and 255 for the pwm.
VIA is known to not use the fan control feature of the VT1211 on its EPIA boards. You might be out of luck. But send the requested info and we'll go from there.
...juerg
Quoted 7 lines
Anyone can help me?
Thanks, Alessandro.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Alessandro,
Quoted 5 lines
Quoted 1 line
Hi Alessandro,
Hi Juerg,
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
1) the CPU temperature isn't realistic (~ -70 °C). I tried the various computation available in the configuration file but my CPU isn't in the list!
What's wrong with 70C? :-) That's still within spec. Does the board have a CPU fan?
I guess you missed the minus before the "70"... ;)
Uh-huh, yeah, I guess I missed the minus sign. You must live in a very cold place :-)
Quoted 8 lines
Quoted 2 lines
There is no info available for Esther from VIA. Or I couldn't find it.
Do you mean technical info? The presentation of my CPU is at
http://www.via.com.tw/en/products/processors/c7-d/index.jspUnfortunately I wasn't able to retrieve much more information. It seems like VIA provides data sheet for its product only on request. :(
That's what I meant, no datasheet with thermal diode specs.
Quoted 93 lines
Quoted 3 lines
Can you please send the output of 'grep ""
/sys/devices/platform/vt1211*/*' and the full output of 'sensors'?Of course:
# grep "" /sys/devices/platform/vt1211*/* /sys/devices/platform/vt1211.24576/alarms:4106 /sys/devices/platform/vt1211.24576/cpu0_vid:1212 /sys/devices/platform/vt1211.24576/fan1_alarm:0 /sys/devices/platform/vt1211.24576/fan1_div:2 /sys/devices/platform/vt1211.24576/fan1_input:5649 /sys/devices/platform/vt1211.24576/fan1_min:2580 /sys/devices/platform/vt1211.24576/fan2_alarm:0 /sys/devices/platform/vt1211.24576/fan2_div:2 /sys/devices/platform/vt1211.24576/fan2_input:4369 /sys/devices/platform/vt1211.24576/fan2_min:3006 /sys/devices/platform/vt1211.24576/in2_alarm:1 /sys/devices/platform/vt1211.24576/in2_input:1065 /sys/devices/platform/vt1211.24576/in2_max:1033 /sys/devices/platform/vt1211.24576/in2_min:971 /sys/devices/platform/vt1211.24576/in3_alarm:1 /sys/devices/platform/vt1211.24576/in3_input:1962 /sys/devices/platform/vt1211.24576/in3_max:2192 /sys/devices/platform/vt1211.24576/in3_min:1983 /sys/devices/platform/vt1211.24576/in4_alarm:0 /sys/devices/platform/vt1211.24576/in4_input:2140 /sys/devices/platform/vt1211.24576/in4_max:2317 /sys/devices/platform/vt1211.24576/in4_min:1889 /sys/devices/platform/vt1211.24576/in5_alarm:0 /sys/devices/platform/vt1211.24576/in5_input:3283 /sys/devices/platform/vt1211.24576/in5_max:3465 /sys/devices/platform/vt1211.24576/in5_min:3133 /sys/devices/platform/vt1211.24576/modalias:platform:vt1211 /sys/devices/platform/vt1211.24576/name:vt1211 /sys/devices/platform/vt1211.24576/pwm1:255 /sys/devices/platform/vt1211.24576/pwm1_auto_channels_temp:1 /sys/devices/platform/vt1211.24576/pwm1_auto_point1_pwm:0 /sys/devices/platform/vt1211.24576/pwm1_auto_point1_temp:0 /sys/devices/platform/vt1211.24576/pwm1_auto_point2_pwm:255 /sys/devices/platform/vt1211.24576/pwm1_auto_point2_temp:0 /sys/devices/platform/vt1211.24576/pwm1_auto_point3_pwm:255 /sys/devices/platform/vt1211.24576/pwm1_auto_point3_temp:0 /sys/devices/platform/vt1211.24576/pwm1_auto_point4_pwm:255 /sys/devices/platform/vt1211.24576/pwm1_auto_point4_temp:0 /sys/devices/platform/vt1211.24576/pwm1_enable:0 /sys/devices/platform/vt1211.24576/pwm1_freq:45000 /sys/devices/platform/vt1211.24576/pwm2:255 /sys/devices/platform/vt1211.24576/pwm2_auto_channels_temp:1 /sys/devices/platform/vt1211.24576/pwm2_auto_point1_pwm:0 /sys/devices/platform/vt1211.24576/pwm2_auto_point1_temp:0 /sys/devices/platform/vt1211.24576/pwm2_auto_point2_pwm:255 /sys/devices/platform/vt1211.24576/pwm2_auto_point2_temp:0 /sys/devices/platform/vt1211.24576/pwm2_auto_point3_pwm:255 /sys/devices/platform/vt1211.24576/pwm2_auto_point3_temp:0 /sys/devices/platform/vt1211.24576/pwm2_auto_point4_pwm:255 /sys/devices/platform/vt1211.24576/pwm2_auto_point4_temp:0 /sys/devices/platform/vt1211.24576/pwm2_enable:0 /sys/devices/platform/vt1211.24576/pwm2_freq:45000 /sys/devices/platform/vt1211.24576/temp1_alarm:0
/sys/devices/platform/vt1211.24576/temp1_input:39000
/sys/devices/platform/vt1211.24576/temp1_max:85000/sys/devices/platform/vt1211.24576/temp1_max_hyst:80000/sys/devices/platform/vt1211.24576/temp2_alarm:0/sys/devices/platform/vt1211.24576/temp2_input:50000/sys/devices/platform/vt1211.24576/temp2_max:65000/sys/devices/platform/vt1211.24576/temp2_max_hyst:60000/sys/devices/platform/vt1211.24576/temp3_alarm:0/sys/devices/platform/vt1211.24576/temp3_input:2064/sys/devices/platform/vt1211.24576/temp3_max:-20/sys/devices/platform/vt1211.24576/temp3_max_hyst:2650/sys/devices/platform/vt1211.24576/temp4_alarm:0/sys/devices/platform/vt1211.24576/temp4_input:2064/sys/devices/platform/vt1211.24576/temp4_max:-20/sys/devices/platform/vt1211.24576/temp4_max_hyst:2650/sys/devices/platform/vt1211.24576/uevent:DRIVER=vt1211 /sys/devices/platform/vt1211.24576/uevent:MODALIAS=platform:vt1211/sys/devices/platform/vt1211.24576/vrm:13# sensors vt1211-isa-6000 Adapter: ISA adapter VCore: +1.06 V (min = +0.97 V, max = +1.03 V) ALARM +5V: +4.71 V (min = +4.76 V, max = +5.26 V) ALARM +12V: +12.20 V (min = +10.77 V, max = +13.21 V) +3.3V: +3.28 V (min = +3.13 V, max = +3.46 V) Case Fan: 5649 RPM (min = 2580 RPM, div = 2) CPU Fan: 4369 RPM (min = 3006 RPM, div = 2) CPU Temp: -36.6 C (high = +11.7 C, hyst = +6.4 C) Int Temp: +50.0 C (high = +65.0 C, hyst = +60.0 C) cpu0_vid: +1.212 V
Quoted 1 line
I disabled the temp[3-4] in
/etc/sensors3.confbecause they seem to be grounded.
You can try to do a crude temp calibration if you want. For that, you need to set the CPU at different frequencies, run a stress tool (like cpuburn from http://users.bigpond.net.au/CPUBURN/), take snapshots of the vt1211 registers at each frequency and do some math to come up with the right values that go into sensors.conf.
1) load the cpufreq drivers:
modprobe longhaul
modprobe cpufreq_ondemand
2) set the scaling governor and determine available frequencies echo ondemand > /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_available_frequencies Determine the lowest, medium and highest frequencies (Fmin, Fmed, Fmax).
3) Set the frequency
echo <Freq value from previous step> > /sys/devices/system/cpu/cpu0/cpufreq/scaling_setspeed cat /proc/cpuinfo to check that the frequency indeed did change.
4) Run cpuburn for a couple of minutes until the CPU temperature settles and the temp1_input value doesn't change anymore.
5) dump the following info into a file sensors >> log
cat /proc/cpuinfo >> log
grep "" /sys/devices/platform/vt1211*/* >> log grep "" /sys/devices/system/cpu/cpu0/cpufreq/* >> log
Repeat steps 3)-5) for all three frequencies Fmin, Fmed, and Fmax. Zip up the log file and send it to me (in private if you don't want to share the data with the whole list).
Quoted 6 lines
Quoted 4 lines
VIA is known to not use the fan control feature of the VT1211 on its EPIA boards. You might be out of luck. But send the requested info and we'll go from there.
OK, thank you very much.
Let's do the temp first and tackle fan control next.
...juerg
Quoted 4 lines
Quoted 1 line
...juerg
Bye, Alessandro.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Alessandro,
Quoted 4 lines
2008/4/28 Juerg Haefliger <[email protected]>:
Quoted 1 line
You must live in a very cold place :-)
South Italy... :D
Hmm... not very cold, no :-)
Quoted 3 lines
Quoted 1 line
That's what I meant, no datasheet with thermal diode specs.
VIA seems to be opening its driver to open source projects... is there any hope we could find any useful information for my motherboard?
What driver do you mean? Where is it?
Quoted 5 lines
Quoted 2 lines
You can try to do a crude temp calibration if you want. For that, you need to set the CPU at different frequencies, [... CUT ...]
Unfortunately it seems like my CPU model (VIA C7-D Model A) doesn't support frequency scaling (I'm discussing this in the kernel bugzilla and in the VIA Tech Forums).
Have you tried the latest kernel and the e_powersaver module? It claims it supports C7-D.
Quoted 1 line
Any other idea?
Can you change the freq in the BIOS?
...juerg
Quoted 3 lines
Quoted 1 line
...juerg
Bye, Alessandro.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Alessandro,
Quoted 8 lines
2008/4/30 Juerg Haefliger <[email protected]>:
Quoted 1 line
Hi Alessandro,
Hi Juerg,
Quoted 1 line
What driver do you mean? Where is it?
It's a VIA initiative:
http://www.via.com.tw/en/resources/pressroom/pressrelease.jsp?press_release_no 88
Hmm... Not very useful at the moment. I'm curious to see if anything good ever comes out of it. VIA is notoriously tight lipped about their stuff...
Quoted 9 lines
Quoted 3 lines
Have you tried the latest kernel and the
e_powersavermodule? It claims it supports C7-D.Yes, I did. mobprobe tells me "No such device".
It seems like there are three models of C7-D CPU's: C7-D Model A (1.5/2 GHz) and model D (1.5 Ghz) don't support PowerSaver, C7-D Model D (1.8/2 GHz) support PowerSaver (P-States P0-P1). I own a "Model A" C7-D.
OK, not good I guess.
Quoted 4 lines
Quoted 2 lines
Can you change the freq in the BIOS?
My motherboard provides a mechanism to change VID voltage when the CPU reaches high temperatures but I can't do it manually.
It also seems to be able to throttle the CPU when it gets hot. Maybe you can play around with those parameters and set the temp threshold low so that it always throttles. Page 54 of the manual also shows some BIOS settings for CPU clock and ratio. Have you played with those?
...juerg
Quoted 4 lines
Quoted 2 lines
...juerg
Bye, Alessandro.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Alessandro,
Quoted 6 lines
2008/5/1 Juerg Haefliger <[email protected]>:
Quoted 1 line
Hi Alessandro,
Hi Juerg,
Quoted 6 lines
Quoted 3 lines
Hmm... Not very useful at the moment. I'm curious to see if anything good ever comes out of it. VIA is notoriously tight lipped about their stuff...
I don't understand such behaviours. VIA should be glad to provide specs for the development of the drivers for their hardware...
Let's not go there. Unfortunately, some companies are like that and dillusional about the importance and significance of their IP :-)
Quoted 5 lines
Quoted 4 lines
Quoted 4 lines
It seems like there are three models of C7-D CPU's: C7-D Model A (1.5/2 GHz) and model D (1.5 Ghz) don't support PowerSaver, C7-D Model D (1.8/2 GHz) support PowerSaver (P-States P0-P1). I own a "Model A" C7-D.
Quoted 8 lines
Quoted 1 line
OK, not good I guess.
Well, this is the problem: I would like to read CPU temperature so I can handle the case ventilation (I've installed a fanbus which allow me to manually change the fan speed). Internal temperature stalls around 50 °C and the CPU temperature is always higher than the internal temperature. With frequency/voltage modulation I would make my CPU get little colder.
I understand. I still think we can get there.
Quoted 4 lines
However I tried to update the BIOS (as suggested on the kernel's bugzilla) but the VIA Flash application corrupted my BIOS and now I'm forced to change motherboard (I should get the replacement tomorrow). Maybe I will not get the same motherboard.
Hmm... Happened to me too on a EPIA board. Fortunately I have access to a programmer and could reprogram the BIOS externally.
Quoted 7 lines
BTW the comments about temperature calculation in the
/etc/sensors3.confdon't contain a formula for the C7 CPU and surely I'm about to get a different motherboard with the same CPU (maybe a different model so I can usee_powersaver). So the problem still is
there: how can I get the offset and scale parameters for calculating the CPU temperature? Is there a method which doesn't imply to use frequency scaling?
Not unless you're willing to drill a hole in your CPU heatsink and stick a thermal probe on the case of the CPU and calculate your way back to the die temp.
Quoted 9 lines
Quoted 4 lines
It also seems to be able to throttle the CPU when it gets hot. Maybe you can play around with those parameters and set the temp threshold low so that it always throttles. Page 54 of the manual also shows some BIOS settings for CPU clock and ratio. Have you played with those?
Yes, I read it. Unfortunately the manual is very criptic about that and doesn't explain how it does work. I played with those settings but then I were unable to know if it worked or not (cpufreq-info doesn't work and lm-sensors have always shown the VID voltage around 1.2V).
Can you send me the current settings from the 'Thermal Management' page (pg 33 in the manual) and the 'Frequency/Voltage control' page (pg 54)? I believe you have the knobs to run the CPU at different frequencies.
Btw I asked my contact at VIA for the datasheet of the C7 CPU. He's trying to get it for me.
...juerg
Quoted 4 lines
Quoted 1 line
...juerg
Bye, Alessandro.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Hi Alessandro,
Any news on the replacement board? I received the C7 datasheet from VIA but it doesn't have much thermal diode related information that could help to determine the correct values for the conversion. Interestingly the C7 incorporates a second thermal diode that can be accessed by SW so we could get something going there.
Maybe we can enhance the coretemp driver to support the C7. Comments?
...juerg
Quoted 32 lines · Alessandro Calorì
2008/5/1 Juerg Haefliger <[email protected]>:
Quoted 1 line
Hi Alessandro,
Ji Juerg,
Quoted 2 lines
Hmm... Happened to me too on a EPIA board. Fortunately I have access to a programmer and could reprogram the BIOS externally.
I tried to find one but it seems like BIOS damages are covered by the warranty so... ;)
Quoted 3 lines
Not unless you're willing to drill a hole in your CPU heatsink and stick a thermal probe on the case of the CPU and calculate your way back to the die temp.
Ehm... let's get voltage/frequency scaling work, ok? XD
Quoted 4 lines
Can you send me the current settings from the 'Thermal Management' page (pg 33 in the manual) and the 'Frequency/Voltage control' page (pg 54)? I believe you have the knobs to run the CPU at different frequencies.
I don't remember them. I will send them to you as soon as I get the new motherboard.
Quoted 2 lines
Btw I asked my contact at VIA for the datasheet of the C7 CPU. He's trying to get it for me.
Quoted 7 lines
Let's hope he gets the datasheet... also kernel's guys would find that useful (for frequency scaling).
Quoted 1 line
...juerg
Bye, Alessandro.
_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors