Skip to contentSkip to conversation

Problem with it87 module from Linux 2.6.26 onward

lm-sensors Jean Delvare 2 participants 3 messages Oct 18, 2008 – Oct 19, 2008

lore
Share & tools
lore
#0 lore raw

Hallo Johannes,

Adding the lm-sensors list in Cc, as well as Andrew Paprocki who has been working on the it87 driver lately.

Quoted 13 lines · Johannes Truschnigg

Dear Linux kernel module authors,

I'm the owner of an ASUS M2NPV-VM mainboard which features a chip driven by the it87 module. I used the PWM capabilities of this chip to reduce my system's noise level, by having its fan speeds regulated via fancontrol from lm_sensors, as the BIOS-provided PWM regulation isn't good enough (the fans spin at full speed despite CPUtemp being lower than 40°C, etc.). However, this mechanism stopped working as soon as I upgraded to the 2.6.26 kernel. I was able to dig up a commentary on some mailing list that this "bug" I hit was introduced by choice, and that I could probably work around it by specifying "fix_pwm_polarity=1" as a parameter to the module. I suppose it would work, if the debug ringbuffer wouldn't contain

Quoted 7 lines

### snip ###
it87 it87.656: PWM configuration looks sane, won't touch ### snip ###

after loading the module accordingly. Is there a way to _really_ force 2.6.25's behavior in this manner? Or am I doing it wrong, and there's another way I can get what I want, which is PWM working the way I would like it to?

There's no way to force the polarity change, for your own good. If you did not need to pass fix_pwm_polarity=1 before, then passing it now will not solve your problem.

Quoted 2 lines

I'd really appreciate getting an answer on that matter - thank you in any way for taking your time!

The it87 driver did not change between kernel 2.6.25 and kernel 2.6.26:
http://www.eu.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fv2.6%2Fpatch-2.6.26.bz2

So, I have a hard time believing that fan speed control is working with kernel 2.6.25 and doesn't work with kernel 2.6.26 without any other change to your system. You'll have to do more tests to figure out what exactly broke fan speed control on your system.

Please also explain in more details what the actual problem is. "It stopped working" doesn't tell us much.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw

Hello Jean, Andrew and List!

Quoted 4 lines · On Saturday 18 October 2008 21:18:07 Jean Delvare wrote:

Hallo Johannes,

Adding the lm-sensors list in Cc, as well as Andrew Paprocki who has been working on the it87 driver lately.

Great, thanks for redirecting the noise I generated to the proper location :)

Quoted 19 lines · Johannes Truschnigg
Quoted 17 lines

Dear Linux kernel module authors,

I'm the owner of an ASUS M2NPV-VM mainboard which features a chip driven by the it87 module. I used the PWM capabilities of this chip to reduce my system's noise level, by having its fan speeds regulated via fancontrol from lm_sensors, as the BIOS-provided PWM regulation isn't good enough (the fans spin at full speed despite CPUtemp being lower than 40°C, etc.). However, this mechanism stopped working as soon as I upgraded to the 2.6.26 kernel. I was able to dig up a commentary on some mailing list that this "bug" I hit was introduced by choice, and that I could probably work around it by specifying "fix_pwm_polarity=1" as a parameter to the module. I suppose it would work, if the debug ringbuffer wouldn't contain

### snip ###
it87 it87.656: PWM configuration looks sane, won't touch ### snip ###

Quoted 8 lines
Quoted 4 lines

after loading the module accordingly. Is there a way to _really_ force 2.6.25's behavior in this manner? Or am I doing it wrong, and there's another way I can get what I want, which is PWM working the way I would like it to?

There's no way to force the polarity change, for your own good. If you did not need to pass fix_pwm_polarity=1 before, then passing it now will not solve your problem.

I see, thanks for clearing that up.

Quoted 7 lines
Quoted 3 lines

I'd really appreciate getting an answer on that matter - thank you in any way for taking your time!

The it87 driver did not change between kernel 2.6.25 and kernel 2.6.26:
http://www.eu.kernel.org/diff/diffview.cgi?file=%2Fpub%2Flinux%2Fkernel%2Fv
2.6%2Fpatch-2.6.26.bz2

Hmm, that indeed is interesting...

Quoted 4 lines

So, I have a hard time believing that fan speed control is working with kernel 2.6.25 and doesn't work with kernel 2.6.26 without any other change to your system. You'll have to do more tests to figure out what exactly broke fan speed control on your system.

You are right indeed; I had 2.6.25 running with the Gentoo patchset applied (
http://dev.gentoo.org/~dsd/genpatches/ ), and switched to vanilla for 2.6.26. The file /sys/class/hwmon/hwmon1/device/pwm1 disappeared in turn, and "fancontrol" finds itself unable to regulate the system fans according to my preferences. Skimming over the patches' descriptions, I couldn't find anything that'd denote changed to it87, or sth. else that could be related to my problem, however. I'm not at the machine right now, and would not want to risk switching kernels and reboot the box blindly without a chance of getting near it the next two weeks. I'll check asap whether or not fancontrol works again with gentoo-sources (2.6.27), and let you all know about success or failure, if you don't mind.

Quoted 2 lines

Please also explain in more details what the actual problem is. "It stopped working" doesn't tell us much.

Hope my above paragraph serves a bit better than my initial report - for sake of completeness, when starting fancontrol, I now get:

###snip###
Enabling PWM on fans...
/usr/sbin/fancontrol: line 232: hwmon1/device/pwm1: No such file or directory Error enabling PWM on /sys/class/hwmon/hwmon1/device/pwm1 Aborting, restoring fans...
/usr/sbin/fancontrol: line 189: hwmon1/device/pwm1: No such file or directory Verify fans have returned to full speed
###snip###

Thank you very much for your kind and prompt reply! FOSS support actually rocks :)

Signature · 8 lines
with best regards:
- Johannes Truschnigg ( [email protected] )

www: http://johannes.truschnigg.info/
phone: +43 650 2 133337
jabber: [email protected]

Please do not bother me with HTML-eMail or attachments. Thank you.

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors

#2 lore raw
In reply to Jean Delvare

Hi Johannes,

Quoted 11 lines · Johannes Truschnigg

Hope my above paragraph serves a bit better than my initial report - for sake of completeness, when starting fancontrol, I now get:

###snip###
Enabling PWM on fans...
/usr/sbin/fancontrol: line 232: hwmon1/device/pwm1: No such file or directory Error enabling PWM on /sys/class/hwmon/hwmon1/device/pwm1 Aborting, restoring fans...
/usr/sbin/fancontrol: line 189: hwmon1/device/pwm1: No such file or directory Verify fans have returned to full speed
###snip###

OK, I think I know what's going on. More likely the it87 driver is behaving just fine but kernel 2.6.26 finds one more hwmon device on your system (most likely an ACPI thermal zone) and this shifts the hwmon class devices by one, i.e. your it87 device is now hwmon2 instead of hwmon1. Just check under /sys/class/hwmon. You can read the "name" attributes under each class device's parent directory to find out who is who:

grep . /sys/class/hwmon/*/device/name /sys/class/hwmon/*/name 2>/dev/null

So most probably you can fix fancontrol by simply replacing all occurrences of hwmon1 by hwmon2 in /etc/fancontrol. This is where it would help if we could reference hwmon drivers by name rather than by class device number, but we don't have support for this yet.

Quoted 2 lines

Thank you very much for your kind and prompt reply! FOSS support actually rocks :)

You're welcome.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors