Skip to contentSkip to conversation

Driver for vt8231

DISCUSSION Aaron Marsh 2 participants 3 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Starting with a couple of leads posted on this list, I've put together a working driver for the vt8231. I've only been able to test it against my EPIA800 board, with the following output from 'sensors' under 2.8.7:

vt8231-isa-6000
Adapter: ISA adapter
VCore1: +3.47 V (min = -0.05 V, max = +4.42 V)

+5V:       +3.26 V  (min =  -0.08 V, max =  +6.31 V)   
+12V:     +12.56 V  (min =  -0.18 V, max = +15.00 V)   
fan1:     3971 RPM  (min =    0 RPM, div = 2)          
fan2:     6425 RPM  (min =    0 RPM, div = 2)          

ERROR: Can't get TEMP2 data!
Proc Temp: +16.3 C (high = +276 C, hyst = -1 C)
vid: +2.05 V

I know this isn't quite right, but it matches the output from lm_sensors-2.8.7 under 2.4.27 (specifically the VCore as 3.3v not 5.v and the TEMP2 error).

I'm not entirely confident in the ability to _input_ to the driver, that's next on my tasklist.

In any case, the patch against kernel 2.6.8.1 is at:

http://www.stanford.edu/~amarsh/vt8231/linux-2.6.8.1-vt8231.patch

A patch against lm_sensors-2.8.7 is at:

http://www.stanford.edu/~amarsh/vt8231/lm_sensors-2.8.7-vt8231.patch

And a copy of my sensors.conf is at:

http://www.stanford.edu/~amarsh/vt8231/sensors.conf

One additional side note. I originally wrote the driver to use the VID sys file 'cpu0_vid' then rolled it back to use the current 'in0_ref.' I'd happily change back to cpu0_vid if that's the way the wind's blowing.

I'm afraid I'm new to contributing to projects of this size. Please let me know what else I can do to get this driver in the mainstream.

Thank you,

Aaron Marsh

Signature · 2 lines
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org
#1 lore raw

Aaron, thanks for the port. I tried the vt8231 port on a VIA EPIA 5000 and your sensors.conf running 2.6.8 (Debian) with the following output:

t8231-isa-6000
Adapter: ISA adapter
VCore1: +0.30 V (min = -0.05 V, max = +0.39 V)

+5V:       +0.23 V  (min =  -0.08 V, max =  +0.56 V)
+12V:      +1.10 V  (min =  -0.18 V, max =  +1.34 V)
fan1:        0 RPM  (min =    0 RPM, div = 2)
fan2:        0 RPM  (min =    0 RPM, div = 2)
ERROR: Can't get TEMP2 data!
Proc Temp:  -0.8 C  (high =    -1 C, hyst =    -1 C)
vid:       +2.05 V

The 5000 doesn't have fans, so fan1 and fan2 are good. The other values look a little weird, but I haven't really found any usefuleness for VIA's sensors anyway. (Proc Temp doesn't seem to change even when running CPU benchmarks for extended periods of time).

Overall, your port of vt8231 looks to be at least as good as the support in 2.4, so I would support adding it to the 2.6 drivers. (I'm not sure how that is accomplished)

Thanks,
Jerry

Quoted 31 lines · --- Aaron Marsh

Starting with a couple of leads posted on this list, I've put together a
working driver for the vt8231. I've only been able to test it against my
EPIA800 board, with the following output from 'sensors' under 2.8.7:

vt8231-isa-6000
Adapter: ISA adapter
VCore1: +3.47 V (min = -0.05 V, max = +4.42 V)

+5V: +3.26 V (min = -0.08 V, max = +6.31 V)

+12V: +12.56 V (min = -0.18 V, max = +15.00 V)

fan1: 3971 RPM (min = 0 RPM, div = 2)

fan2: 6425 RPM (min = 0 RPM, div = 2)

ERROR: Can't get TEMP2 data!
Proc Temp: +16.3 C (high = +276 C, hyst = -1 C)

vid: +2.05 V

I know this isn't quite right, but it matches the output from lm_sensors-2.8.7
under 2.4.27 (specifically the VCore as 3.3v not 5.v and the TEMP2 error).

Quoted 9 lines

I'm not entirely confident in the ability to _input_ to the driver, that's
next on my tasklist.

In any case, the patch against kernel 2.6.8.1 is at:

http://www.stanford.edu/~amarsh/vt8231/linux-2.6.8.1-vt8231.patch

Quoted 4 lines

A patch against lm_sensors-2.8.7 is at:

http://www.stanford.edu/~amarsh/vt8231/lm_sensors-2.8.7-vt8231.patch

Quoted 29 lines

And a copy of my sensors.conf is at:

http://www.stanford.edu/~amarsh/vt8231/sensors.conf

One additional side note. I originally wrote the driver to use the VID sys
file 'cpu0_vid' then rolled it back to use the current 'in0_ref.' I'd happily
change back to cpu0_vid if that's the way the wind's blowing.

I'm afraid I'm new to contributing to projects of
this size. Please let me
know what else I can do to get this driver in the
mainstream.

Thank you,

Aaron Marsh

Signature · 3 lines
[email protected]
SDF Public Access UNIX System -
http://sdf.lonestar.org
#2 lore raw
In reply to Aaron Marsh

Jerry,

Thanks for the feedback. I wish I could pin down some of the strange behavior and at least determine if it's in the kernel-side code or in the calibrations used in sensors.conf. I just haven't done the detective work.

FWIW, while I'm not sure I trust the temperature calibration either, my Proc Temp does change with load (18.7 idle, 40-ish while compiling the kernel). Hmm...

Thanks again for the support,

Aaron

Quoted 32 lines · Jerry Joplin

Aaron, thanks for the port. I tried the vt8231 port on a VIA EPIA 5000 and your sensors.conf running 2.6.8 (Debian) with the following output:

t8231-isa-6000
Adapter: ISA adapter
VCore1: +0.30 V (min = -0.05 V, max = +0.39 V)

+5V:       +0.23 V  (min =  -0.08 V, max =  +0.56 V)
+12V:      +1.10 V  (min =  -0.18 V, max =  +1.34 V)
fan1:        0 RPM  (min =    0 RPM, div = 2)
fan2:        0 RPM  (min =    0 RPM, div = 2)
ERROR: Can't get TEMP2 data!
Proc Temp:  -0.8 C  (high =    -1 C, hyst =    -1 C)
vid:       +2.05 V

The 5000 doesn't have fans, so fan1 and fan2 are good. The other values look a little weird, but I haven't really found any usefuleness for VIA's sensors anyway. (Proc Temp doesn't seem to change even when running CPU benchmarks for extended periods of time).

Overall, your port of vt8231 looks to be at least as good as the support in 2.4, so I would support adding it to the 2.6 drivers. (I'm not sure how that is accomplished)

Thanks,
Jerry

Signature · 2 lines
[email protected]
SDF Public Access UNIX System - http://sdf.lonestar.org