VIA VT1211 Port to 2.6.x in progress
here's some more belated comments
mds
Quoted 48 lines · BARRE Francois
Hello Mark,
Here is the freshest mail I sent on the people involved I found. I asked some questions by the end of mail that you could surely answer. Alexander Isacson found another guy involved in the same goal anyway...
Best regards,
Fran?ois.
-----Message d'origine-----
De : BARRE Francois
Envoy? : mardi 13 janvier 2004 11:02
? : '[email protected]'
Objet : RE : RE : VIA VT1211 Port to 2.6.x in progressWell in fact I'm really *really* busy this week, but not business I would like to take care of.
In fact I won't have time to achieve a propper port till... Let's say the week-end.
* Things that work :
Global module port : I shall try for [ins|rm]mod the module several times in order to check for mem leakage. At least if there was none in 2.4.x, no reason there should be some in 2.6.x.
temp_input[1-4] : things work well using thelm_sensors2.8.2, which directly plug in the/sys/brand new architecture.
Not so shure thesensors_detectprovided in the prog/ of lm_sensors-2.8.2 work, I never tested it.* Things that remain (according to the src/linux/Documentation/i2c/sysfs-interface) :
Finishing the port. I didn't take time to port the write capability for device attributes, so all w/r attrs (e.g.temp_hyst, ...) are to be ported. All attributes like in_*, fan_* had a really similar coding sheme in the previous vt1211 driver, so it would not take long to care of (just copy/paste ;-).Much odder (?) stuff to port would be things like
temp_crit, vrm, 'cause I didn't check if it was coded in the previous driver.* Anyway, and as a conclusion :
- It could take something like a hour or two to finish stuff & clean up the irrelevant parts of code. Let's add another hour or two to recode theupdate_clientin a much cleaner way...
Quoted 5 lines
- Is
lm_sensorsin charge of switching theREG_UCH_CONFIGstuff (switching btwn volt and temp ?). I really don't know which part of the system is involved in changing such an attribute, I just know the 2.4.x vt1211 driver had the capability to change this....
userspace changes the value (see sensors.conf 'set config xx') The UCH concept is a big pain.
The driver attempts to report zeroes for temps and voltages that are disabled. My choices for temp and in numbering (commented in the driver and sensors.conf) make it even more confusing.
Quoted 6 lines
- The last question I still wonder about : is the jiffies stuff (granting that time between
update_clientsis greater that 1.5s) a hardware issue, or a pure optimization using a simple data-caching mechanism ? I didn't manage to contact the original author, Mark D. Studebaker, and I would not like to sacrifice his _wonderfull_ caching stuff in order to minimize overhead (due to all attributes reading from the i2c dev), if this change in code design
Quoted 9 lines
is not so much efficient.
Maybe I'm just losing my time wondering about pointless issues, but I guess the most frequent use of such a device is to regularly poll for a temperature and show/use it somewhere (like in gkrellm or on a tiny LCD screen popping 'CPU Burning !'). Except for testing or reading all voltages maybe...
I shall keep this design unchanged for the moment, and provide a compile-time option later on to avoid data caching.
caching code is common in all the lm_sensors drivers so I don't take credit. see other mail for more info.
Quoted 120 lines
This may have been a too long mail for a busy man ;-).
I will come back to you when the driver is ready-to-test. Max deadline in a week ? If you want to achieve it by yourself, feel free to do so, just inform me to prevent useless parallel porting tasks... ;-)
Have a nice day !
Fran?ois Barre.
-> -----Message d'origine-----
-> De : [email protected] [mailto:[email protected]] -> Envoy? : mardi 13 janvier 2004 10:28
-> ? : BARRE Francois
-> Objet : Re: RE : VIA VT1211 Port to 2.6.x in progress
->
->
-> This is great news!
->
-> I really need this driver to make sure I have adequate
-> cooling for a small
-> robot I'm making. I also interested in measuring the voltage -> levels when
-> the batteries start to run out.
->
-> Let me know if there is anything you think I can to to help -> you port the
-> driver.
->
-> /Alexander
->
-> > Ok, I had a short look on the wonderfull
->Documentation/i2c/sysfs-interface
-> > file. So I will be able to achieve driver port during this -> week-end, you
-> > should receive on Monday or so.
-> >
-> > Have a nice week-end all !
-> >
-> > Just a little question : I am in trouble with the gkrellm plugin of -> >lm_sensors, that is not able to do thelm_sensorscomplex -> calculations...
-> > Is
-> > there any issue to force gkrellm to get thelm_sensors-> results in place of
-> > the too simple linear gkrellm function ?
-> >
-> >
-> >
-> > -> -----Message d'origine-----
-> > -> De : Jean Delvare [mailto:[email protected]]
-> > -> Envoy? : jeudi 8 janvier 2004 22:56
-> > -> ? : BARRE Francois
-> > -> Cc : [email protected]; Alexander Isacson -> > -> Objet : Re: VIA VT1211 Port to 2.6.x in progress
-> > ->
-> > ->
-> > -> > I am currently working on the vt1211 port from
-> lm_sensors-2.8.2
-> > -> > to the brand new kernel 2.6.x. It is working quite -> well (right now
-> > -> > only temp? are working, but the remaining part is not a -> > -> hard work to
-> > -> > do).
-> > ->
-> > -> Great news :)
-> > ->
-> > -> > I first hope I am not working on another people's task... -> > ->
-> > -> Indeed you are, more or less. Alexander (CC'd) once was -> > -> doing the same.
-> > -> No news since mid-December though, so I don't know if -> he finished the
-> > -> port or not.
-> > ->
-> > -> > Then, it would be kind from you to provide me a kind -> of API for
-> > -> > the '/sys' interface used by the 'sensors' program. -> > ->
-> > -> Everything is detailed in
->Documentation/i2c/sysfs-interfaceof Linux
-> > -> 2.6.1-rc1 and later. If something's missing, let us know. -> > ->
-> > -> > PS : don't be afraid of my @siemens.com email
-> address, I am just a
-> > -> > one-year trainee here, and I'm not working on some -> linux-related
-> > -> > siemens project (are there any ?).
-> > ->
-> > -> Oh my god, he is working at Siemens. Let's be afraid! -> ;) We have had
-> > -> good relationships with FSC in the past, and are
-> supporting three of
-> > -> their chips (Scylla, Hermes and Poseidon).
-> > ->
-> > -> > PSx2 : where could I find a hacker involved (currently or -> > -> in the past)
-> > -> > of the vt1211 devel, I could have questions for
-> him(/her) about the
-> > -> > necessity of mutexes in this driver...
-> > ->
-> > -> I hope that Mark D. Studebaker, who is present on this -> list and wrote
-> > -> the driver, will be able to help.
-> > ->
-> > -> Alexander & Francois, please get in touch with each -> other, share your
-> > -> works and provide a working driver for 2.6, so that we -> can have it
-> > -> included in Linux 2.6.2.
-> > ->
-> > -> Thanks!
-> > ->
-> > -> --
-> > -> Jean Delvare
-> > -> http://www.ensicaen.ismra.fr/~delvare/
-> > ->
-> >
->
Hello all.
I'm wondering about the status of the port. I'm approaching the deadline for my project and I need to monitor voltages and temperature. Is that working in the current version? If so, could someone please e-mail it to me?
Thanks allot, keep up the good work!
Signature · 1 line
Alexander Isacson <[email protected]>
Hi
Take a look at my port, I think it should be usable enough for what you want:
http://pwp.netcabo.pt/0246517002/vt1211.c
Quoted 8 lines · Alexander Isacson
Hello all.
I'm wondering about the status of the port. I'm approaching the deadline for my project and I need to monitor voltages and temperature. Is that working in the current version? If so, could someone please e-mail it to me?
Thanks allot, keep up the good work!
I promised Khali I'd test your driver but first I have to move my 1211 board over to 2.6, hope to get to it soon.
mds
Quoted 39 lines · BARRE Francois
Hello all,
This is my own port of the vt1211 for 2.6.x which seems to work pretty well, including extensive insmod/rmmod uses, ...
I just have a problem with temp_[hyst|over]2, not solved yet... Working on it !I hope it will be of some help...
By the way, should someone include me in the sensors ml ?
Thanks in advance.
-----Message d'origine-----
De : Nuno Grilo [mailto:[email protected]] Envoy? : lundi 26 janvier 2004 00:58
? : Alexander Isacson; Mark Studebaker
Cc : BARRE Francois; '[email protected]'; LM Sensors Objet : Re: TR : RE : VIA VT1211 Port to 2.6.x in progressHi
Take a look at my port, I think it should be usable enough for what you want:
http://pwp.netcabo.pt/0246517002/vt1211.cQuoted 8 lines · Alexander Isacson
Hello all.
I'm wondering about the status of the port. I'm approaching the deadline for my project and I need to monitor voltages and temperature. Is that working in the current version? If so, could someone please e-mail it to me?
Thanks allot, keep up the good work!
Hello all,
This is my own port of the vt1211 for 2.6.x which seems to work pretty well, including extensive insmod/rmmod uses, ...
I just have a problem with temp_[hyst|over]2, not solved yet... Working on it !
I hope it will be of some help...
By the way, should someone include me in the sensors ml ?
Thanks in advance.
-----Message d'origine-----
De : Nuno Grilo [mailto:[email protected]] Envoy? : lundi 26 janvier 2004 00:58
? : Alexander Isacson; Mark Studebaker
Cc : BARRE Francois; '[email protected]'; LM Sensors Objet : Re: TR : RE : VIA VT1211 Port to 2.6.x in progress
Hi
Take a look at my port, I think it should be usable enough for what you want:
http://pwp.netcabo.pt/0246517002/vt1211.c
Quoted 8 lines · Alexander Isacson
Hello all.
I'm wondering about the status of the port. I'm approaching the deadline for my project and I need to monitor voltages and temperature. Is that working in the current version? If so, could someone please e-mail it to me?
Thanks allot, keep up the good work!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vt1211.c
Type: application/octet-stream
Size: 24219 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040311/30edb0f0/vt1211.obj
sorry for 2 month delay.
I'm ready to test your driver. Is the code at the link below still the latest?
Quoted 51 lines · Mark Studebaker
I promised Khali I'd test your driver but first I have to move my 1211 board over to 2.6,
hope to get to it soon.
mdsQuoted 41 lines · BARRE Francois
Hello all,
This is my own port of the vt1211 for 2.6.x which seems to work pretty well,
including extensive insmod/rmmod uses, ...
I just have a problem with temp_[hyst|over]2, not solved yet... Working on
it !I hope it will be of some help...
By the way, should someone include me in the sensors ml ?
Thanks in advance.
-----Message d'origine-----
De : Nuno Grilo [mailto:[email protected]] Envoy? : lundi 26 janvier 2004 00:58
? : Alexander Isacson; Mark Studebaker
Cc : BARRE Francois; '[email protected]'; LM Sensors Objet : Re: TR : RE : VIA VT1211 Port to 2.6.x in progressHi
Take a look at my port, I think it should be usable enough for what you
want: http://pwp.netcabo.pt/0246517002/vt1211.cQuoted 8 lines · Alexander Isacson
Hello all.
I'm wondering about the status of the port. I'm approaching the deadline for my project and I need to monitor voltages and temperature. Is that working in the current version? If so, could someone please e-mail it to me?
Thanks allot, keep up the good work!
I guess what I meant to ask is,
there are two ports, Nuno's and Francois', have you two done any merging or updating or do you want me to just pick one?
Quoted 62 lines · Mark Studebaker
sorry for 2 month delay.
I'm ready to test your driver. Is the code at the link below still the latest?Quoted 54 lines · Mark Studebaker
I promised Khali I'd test your driver but first I have to move my 1211 board over to 2.6,
hope to get to it soon.
mdsQuoted 44 lines · BARRE Francois
Hello all,
This is my own port of the vt1211 for 2.6.x which seems to work pretty well,
including extensive insmod/rmmod uses, ...
I just have a problem with temp_[hyst|over]2, not solved yet... Working on
it !I hope it will be of some help...
By the way, should someone include me in the sensors ml ?
Thanks in advance.
-----Message d'origine-----
De : Nuno Grilo [mailto:[email protected]] Envoy? : lundi 26 janvier 2004 00:58
? : Alexander Isacson; Mark Studebaker
Cc : BARRE Francois; '[email protected]'; LM Sensors Objet : Re: TR : RE : VIA VT1211 Port to 2.6.x in progressHi
Take a look at my port, I think it should be usable enough for what you
want: http://pwp.netcabo.pt/0246517002/vt1211.cQuoted 10 lines · Alexander Isacson
Hello all.
I'm wondering about the status of the port. I'm approaching the deadline
for my project and I need to monitor voltages and temperature. Is that working in the current version? If so, could someone please e-mail it to
me?Thanks allot, keep up the good work!