bmc and fan speed control
Quoted 39 lines · Yani Ioannou
Hi Aj,
Sorry for the late reply, I've been busy trying to get the sysfs-dyncallback patch accepted into the kernel so I can re-write bmcsensors and get it in at some point in the future.
Quoted 14 lines · Aj Lavin
Hi,
Any hints for somebody attempting to configure fan speed control with a BMC? :-)
I am using bmcsensors with Intel SHG2 motherboard, Sahalee BMC. According to the motherboard docs it also uses an ADM1026. bmcsensors works great for reading temperatures and fan speeds. But when I run pwmconfig I get:
/usr/sbin/pwmconfig: There are no pwm-capable sensor modules installedLooking at
bmcsensors.cI see:
#if 0
static void bmcsensors_fan_div(structi2c_client*client, int operation,Quoted 8 lines
int ctl_name, int *nrels_mag, long *results); static void bmcsensors_pwm(struct i2c_client *client, int operation, int ctl_name, int *nrels_mag, long *results);#endif
Not knowing anything about device drivers I guess that fan control support is not yet programmed into bmcsensors. If you need help testing this feature I would be more than happy to try it on my server. ;-)
Yes, those look like they are leftover from the original 2.4 bmcsensors driver (Mark wrote), unfortunately I haven't got an IPMI BMC that supports this, although it would be nice to get this working. I wonder why it wasn't implemented in the original driver.. I'm forwarding this to Mark to see if he has any input.
Quoted 8 lines
Quoted 2 lines
In the mean time, is there other Linux software I can use to adjust the fan speeds? Even manual fan speed control would be helpful.
You might be able to use ipmitool, or one of the other userspace impi interfaces, unfortunately I have no such experience with pwm sensors.
Yani
2.4 bmcsensors doesn't have write support at all. In fact I didn't realize that 2.6 _did_ have write support. Nice Yani!
That is obviously a requirement for setting anything.
the functions #if'ed out look like cruft left over from when I copied whatever driver I started from, they should be deleted.
I've never seen an IPMI SDR that looked like PWM control or fan divisor.
IPMI systems tend to want to control their own fan speeds, in my experience, so taking manual control of PWM doesn't really fit the IPMI paradigm too well.
For example, with my IPMI system I was testing the fan reading so I stuck a pencil in the CPU fan. It tried to restart the fan 3 times in about 10 seconds and then the system did an instantaneous shutdown. Nice I guess but made testing harder :)
I'm not familiar with how a general-purpose output (like PWM) would be implemented in IPMI. bmcsensors is all about sensor _inputs_ and their limits.
So I don't think PWM control via bmcsensors makes a lot of sense.
mds
Hi Al,
Quoted 2 lines
Intel SHG2 motherboard which I believe uses a Sahalee BMC. It also employs an ADM1021 which I think does the fan control. (...)
Not a chance, as the ADM1021 is a two-temperature chip. It doesn't deal with fans at all.
The SHG2 manual mentions an ADM1026 instead, which is a full-featured hardware monitoring chip, and has some fan speed control capabilities.
--
Jean Delvare
Hi Aj,
Quoted 3 lines
Quoted 1 line
Hi Al,
AJ :-)
Oops, sorry ;-)
Quoted 5 lines
You are right, I shouldn't type chip names from memory! I meant I think the ADM1026 does the fan speed control for the Intel SHG2 motherboard. Notice on page 30 of the SHG2 Technical Product Specification it says pin 18 of the ADM1026 is "PWM" : "Pulse width modulation of fan speed".
True. If memory serves, it is also possible to use DC fan control on that same pin (I think).
Quoted 2 lines
Now my question is, is it feasible to control the fan speed on an Intel SHG2 motherboard from Linux?
If the motherboard is properly wired for fan control operation, that should work, as the adm1026 driver has support for this. Your best chance is to try simply the adm1026 driver and see how it goes.
Signature · 1 line
Jean Delvare
Quoted 4 lines · Mark Studebaker
2.4 bmcsensors doesn't have write support at all. In fact I didn't realize that 2.6 _did_ have write support. Nice Yani!
That is obviously a requirement for setting anything.
Well I added it for setting max/min/hysteresis limits when porting the driver but I couldn't actually test it (my bmc doesn't offer any write support) .. so..err I'm surprised if it works :-). I haven't heard about it one way or the other from anyone yet.
Quoted 3 lines
I've never seen an IPMI SDR that looked like PWM control or fan divisor.
IPMI systems tend to want to control their own fan speeds, in my experience, so taking manual control of PWM doesn't really fit the IPMI paradigm too well.
That's my (limited) experience too, Aj what specific bmc/motherboard are you using? I'd be interested to take a look at any documentation.
Quoted 3 lines
For example, with my IPMI system I was testing the fan reading so I stuck a pencil in the CPU fan. It tried to restart the fan 3 times in about 10 seconds and then the system did an instantaneous shutdown. Nice I guess but made testing harder :)
lol... mine just blinks red leds at me which seems very useful in the case of a meltdown with me not around. I used my finger I think though not a pencil - ouch ;-). It tends to run the fans at very low speeds though.
Quoted 4 lines
I'm not familiar with how a general-purpose output (like PWM) would be implemented in IPMI. bmcsensors is all about sensor _inputs_ and their limits.
So I don't think PWM control via bmcsensors makes a lot of sense.
Thanks, yes if this is only supported by one or two strange bmcs then it probably wouldn't make sense trying to add support.
Yani
Hi Aj,
Yes the ADM1026 has fan control, but the ADM1026 is mentioned only as the chip used by the IPMI BMC on it's private i2c bus. All IPMI BMCs use normal hardware monitoring chips (AFAIK) at a lower level, but usually the documentation isn't always so complete as telling you which. The BMC is essentially another separate computer running on your motherboard along with it's own CPU, memory, firmware and even i2c bus. The chip is likely only accessible by the IPMI BMC directly, so unless the IPMI BMC has some sort of support itself for a command to set the pwm you are out of luck.
The only sensor write commands in IPMI 1.5 are for setting alarm limits, enabling/disabling sensors and setting sensor types, so I don't see how you could set the fan speed in anyway via IPMI.
I think the only possible way to set the fan speed then would be if (like my board) the IPMI BMC shares the same i2c bus as the rest of the machine, except the bios blocks access to it, and you somehow unblock that and access the ADM1026 directly (which by the way the IPMI BMC wouldn't like, and would likely start complaining). In my case I can do that by flashing with another vendor's bios, but my motherboard is a bit unusual, and I wouldn't recommend trying anything like that.
Yani
Quoted 8 lines · Yani Ioannou
Quoted 4 lines · Mark Studebaker
2.4 bmcsensors doesn't have write support at all. In fact I didn't realize that 2.6 _did_ have write support. Nice Yani!
That is obviously a requirement for setting anything.
Quoted 5 lines
Well I added it for setting max/min/hysteresis limits when porting the driver but I couldn't actually test it (my bmc doesn't offer any write support) .. so..err I'm surprised if it works :-). I haven't heard about it one way or the other from anyone yet.
IIRC that's the way my HP system was too, everything was read-only. If writes were allowed I would have written the code :(
Quoted 17 lines · Yani Ioannou
Quoted 6 lines · Mark Studebaker
2.4 bmcsensors doesn't have write support at all. In fact I didn't realize that 2.6 _did_ have write support. Nice Yani!
That is obviously a requirement for setting anything.Well I added it for setting max/min/hysteresis limits when porting the driver but I couldn't actually test it (my bmc doesn't offer any write support) .. so..err I'm surprised if it works :-). I haven't heard about it one way or the other from anyone yet.
Quoted 10 lines
Quoted 5 lines
I've never seen an IPMI SDR that looked like PWM control or fan divisor.
IPMI systems tend to want to control their own fan speeds, in my experience, so taking manual control of PWM doesn't really fit the IPMI paradigm too well.That's my (limited) experience too, Aj what specific bmc/motherboard are you using? I'd be interested to take a look at any documentation.
Intel SHG2 motherboard which I believe uses a Sahalee BMC. It also employs an ADM1021 which I think does the fan control. I really just want a way to adjust the fan control parameters, or disable fan control altogether so that the fans run at full speed. After a recent BIOS upgrade the fans have been stuck at 2/3 speed regardless of temperature. Unfortunately this machine has already been deployed, so if I need console access to adjust the fan speed then it's not going to happen.
The "Technical Product Specification" for the SHG2 is here:
http://support.intel.com/support/motherboards/server/shg2/sb/cs-006520.htm
[ ...]
Thanks!
Aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2773 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050509/867d47d0/smime.bin
Quoted 3 lines · Jean Delvare
Hi Al,
AJ :-)
Quoted 5 lines
Quoted 4 lines
Intel SHG2 motherboard which I believe uses a Sahalee BMC. It also employs an ADM1021 which I think does the fan control. (...)
Quoted 7 lines
Not a chance, as the ADM1021 is a two-temperature chip. It doesn't deal with fans at all.
The SHG2 manual mentions an ADM1026 instead, which is a full-featured hardware monitoring chip, and has some fan speed control capabilities.
You are right, I shouldn't type chip names from memory! I meant I think the ADM1026 does the fan speed control for the Intel SHG2 motherboard. Notice on page 30 of the SHG2 Technical Product Specification it says pin 18 of the ADM1026 is "PWM" : "Pulse width modulation of fan speed".
Now my question is, is it feasible to control the fan speed on an Intel SHG2 motherboard from Linux?
Best Regards,
Aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2773 bytes
Desc: S/MIME Cryptographic Signature
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20050510/abacebd3/smime.bin