ADM1030 query
Hi Alex,
Quoted 4 lines
I am interrested in developping the driver for adm1030 as I have one in my MSI Mega651 barebone.
Could you please send me the infos you have ?
Two persons were supposed to write an adm1030/adm1031 driver one year ago but we never had news about the advancement and are now unable to contact them.
Then, we had someone announcing he had been writing a driver for the adm1030 some times ago:
http://archives.andrew.net.au/lm-sensors/msg07123.html
But unfortunately it turned out that the driver is far from completion, and doesn't follow our driver scheme and interface at all so it's rather useless to us. A complete, standard-compliant driver would be appreciated.
Thanks.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Ok,
Actually I've written a driver from specs yesterday using the pdf datasheet. It is based on the 2.6.4 kernel sensors driver. I will clean it up tonight, and, if you are interrested, I'll post it to you.
I have also one question:
- The ADM1030 can either control the fan speed, by default it is set to
automatic. Is it safe to enable the user to go into manual mode (dangerous) and how it has to be handled (interface with /sys filesystem).
I've also made modifications to the sensors 2.8.4 package, and I wonder what is the meaning of the SYSCTL #define's are they related to the kernel or it is only for program / libsensors interface.
Thanks for your response.
Alex.
Quoted 20 lines · Jean Delvare
Hi Alex,
Quoted 4 lines
I am interrested in developping the driver for adm1030 as I have one in my MSI Mega651 barebone.
Could you please send me the infos you have ?
Two persons were supposed to write an adm1030/adm1031 driver one year ago but we never had news about the advancement and are now unable to contact them.
Then, we had someone announcing he had been writing a driver for the adm1030 some times ago:
http://archives.andrew.net.au/lm-sensors/msg07123.html
But unfortunately it turned out that the driver is far from completion, and doesn't follow our driver scheme and interface at all so it's rather useless to us. A complete, standard-compliant driver would be appreciated.Thanks.
Quoted 4 lines
Actually I've written a driver from specs yesterday using the pdf datasheet. It is based on the 2.6.4 kernel sensors driver. I will clean it up tonight, and, if you are interrested, I'll post it to you.
Sure we are interested :)
I will review your code, and then invite you to send it (as a patch against the latest MM kernel) to Greg KH for inclusion into the main kernel tree.
Quoted 6 lines
I have also one question:
- The ADM1030 can either control the fan speed, by default it is set to automatic. Is it safe to enable the user to go into manual mode (dangerous) and how it has to be handled (interface with /sys filesystem).
Various chips do have manual mode and we enable it. Several chips also have automatic mode and we sometimes support it, although no common interface was defined yet.
Typically, you have a sysfs file "pwm1_enable" holding a boolean value. 0 means always full speed, 1 means that manual speed control is enabled. The value of the file "pwm1" (between 0 and 255) then defines the desired speed.
We still have to find a common interface for the various automatic modes. Names vary between chips (smart fan, qfan, smart guardian...) and the number and natures of the registers that control the automatic mode differ too, which makes designing a common interface harder.
As far as the mode itself is concerned, I can think of two different approaches. Either add a file "pwm1_auto", holding a boolean value. Or add value "2" = "automatic mode" to the file "pwm1_enable". I don't know which would be better, it may depend on chips implement it (but again this may differ between chips).
We would have to compare the different hardware implementations in deep in order to correctly define a common interface.
Quoted 3 lines
I've also made modifications to the sensors 2.8.4 package, and I wonder what is the meaning of the SYSCTL #define's are they related to the kernel or it is only for program / libsensors interface.
Both kernel and user-space. In 2.4 there are two ways to access the driver's values: procfs and system calls. SYSCTL defines are used for the second access method, which is the one used by libsensors. So the use of these defines is mandatory if you want your driver to be supported by libsensors and the various applications that rely on it (sensors and xsensors for example).
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
[Please reply to the list, not to me directly]
According to Alexandre D ALTON:
Quoted 2 lines
When in automatic mode, the ADM1030 chip automatically controls the fan speed depending on the CPU temperature.
Do you mean that no other parameter cen be set by the user (when in automatic mode)?
This would be very different from the IT87 then. The IT87 "smart guardian" mode lets you define several temperature/fan speed points (5 IIRC). You can think of them as the expression of conditions and actions like: "If the temperature raises above 40?C, set fan speed to 80%" or "If the temperature raises above 50?C, set fan speed to 95%" and so on. I don't think you can change the points through the BIOS setup screen but they can be configured through the chipset's registers and the Linux driver (2.4 only at the moment) allows that.
I would yet have to take a look at the other implementations (recent Winbond chips have something similar) and see if we can draw a common scheme.
Quoted 3 lines
What I would like to implement is to set
pwm1_enableto 2 by default meaning that the chip controls the fan. 0 would mean allways full speed and 1 to set the speed using the "pwm1" file.
That's one of the solution I had in mind, yes.
The only objection I would have is about the default. The correct default would be (IMHO) not to change what was set by the BIOS. Same goes for the rest of the initialization, BTW (i.e. don't break what the BIOS did).
What does your BIOS setup screen offer WRT hardware monitoring?
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Could I be added to the mailing list ?
Quoted 9 lines · Jean Delvare
[Please reply to the list, not to me directly]
According to Alexandre D ALTON:
Quoted 2 lines
When in automatic mode, the ADM1030 chip automatically controls the fan speed depending on the CPU temperature.
Do you mean that no other parameter cen be set by the user (when in automatic mode)?
NO, I do not mean it...
Quoted 8 lines
This would be very different from the IT87 then. The IT87 "smart guardian" mode lets you define several temperature/fan speed points (5 IIRC). You can think of them as the expression of conditions and actions like: "If the temperature raises above 40?C, set fan speed to 80%" or "If the temperature raises above 50?C, set fan speed to 95%" and so on. I don't think you can change the points through the BIOS setup screen but they can be configured through the chipset's registers and the Linux driver (2.4 only at the moment) allows that.
ADM1030 has the same behavior, in auto mode, it adapts fan speed to temp, and temp parameters that can be changed. But it's more like a feedback linear loop, not step one.
Quoted 9 lines
I would yet have to take a look at the other implementations (recent Winbond chips have something similar) and see if we can draw a common scheme.
Quoted 3 lines
What I would like to implement is to set
pwm1_enableto 2 by default meaning that the chip controls the fan. 0 would mean allways full speed and 1 to set the speed using the "pwm1" file.That's one of the solution I had in mind, yes.
I'll go into that solution as a first step.
Quoted 4 lines
The only objection I would have is about the default. The correct default would be (IMHO) not to change what was set by the BIOS. Same goes for the rest of the initialization, BTW (i.e. don't break what the BIOS did).
Ok, the default value will be taken from what the bios set. (from reading the config registers.)
Quoted 1 line
What does your BIOS setup screen offer WRT hardware monitoring?
I'll give you that info when I'll get home, I'm at work righ now.
Alex.
According to Alexandre D ALTON:
Quoted 1 line
Could I be added to the mailing list ?
No way!
Just kidding ;) Request sent.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/