Skip to contentSkip to conversation

w83l785ts inserted but no readings right away

DISCUSSION Johannes Hübner 2 participants 5 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hi,

I have an Asus A7N8X-X mainboard with the asb100 (bach) and the w83l785ts chip. Latter one reads the internal CPU-temp-diode. When all needed modules are loaded it works really well including fancontrol. But the w83l785ts doesn't always work. When the module is inserted trough the lm_sensors start-script it is listed when doing lsmod but there is no /sys/bus/i2c/devices/1-002e/ directory. After I rmmod and modprobe the module (sometimes several times) everything works. When using Windows I realized that Speed Fan also sometimes failes to detect the w83l785ts-chip. Is this a known problem and do you know a workaround? There are no error-messages from modprobe, dmesg or anybody else.

Here is my configuration
System: Fedora Core 2
uname -r : 2.6.6-1.435.2.3
sensors --version : 2.8.6
cat /etc/sysconfig/lm_sensors:
-----
MODULE_0=i2c-nforce2
MODULE_1�prom
MODULE_2=asb100
MODULE_3=w83l785ts
-----
cat /etc/fancontrol :
-----
INTERVAL
FCTEMPS= 1-002d/fan1_pwm=1-002e/temp1_input
FCFANS= 1-002d/fan1_pwm=1-002d/fan1_input
MINTEMP= 1-002d/fan1_pwm%
MAXTEMP= 1-002d/fan1_pwm`
MINSTART= 1-002d/fan1_pwm0
MINSTOP= 1-002d/fan1_pwm�
-----

I hope this is all information you need
Thanks for your help in advance and thank you for lm_sensors!

Johannes H?bner

BTW: I had to change pwmconfig a bit for it to detect the fanX_pwm lines of the asb100. In it s current state it only finds pwmX . I can send it to you if you don't know what I mean.

#1 lore raw
Quoted 5 lines

I have an Asus A7N8X-X mainboard with the asb100 (bach) and the w83l785ts chip. Latter one reads the internal CPU-temp-diode. When all needed modules are loaded it works really well including fancontrol.

Quoted 8 lines

But the w83l785ts doesn't always work. When the module is inserted trough the lm_sensors start-script it is listed when doing lsmod but there is no /sys/bus/i2c/devices/1-002e/ directory. After I rmmod and modprobe the module (sometimes several times) everything works. When using Windows I realized that Speed Fan also sometimes failes to detect the w83l785ts-chip. Is this a known problem and do you know a workaround? There are no error-messages from modprobe, dmesg or anybody else.

This much reminds me this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id(99

Please read the whole thread and confirm, or detail why your case is different.

Next step would be to apply the proposed patch and recompile your kernel, including "I2C chip debugging messages", then compare a working case with a failing one, and report. I suspect that reads are sometimes wrong with no error reported, due to the BIOS messing up with the SMBus. If that's the case there's (unfortunately) not much we can do...

Quoted 3 lines

BTW: I had to change pwmconfig a bit for it to detect the fanX_pwm lines of the asb100. In it s current state it only finds pwmX . I can send it to you if you don't know what I mean.

Yes, please provide your changes in the form of a patch. We'll review it and see if it's acceptable.

Thanks.

Signature · 2 lines
Jean "Khali" Delvare
http://khali.linux-fr.org/
#2 lore raw
In reply to Johannes Hübner
Quoted 16 lines · Jean Delvare
Quoted 5 lines

I have an Asus A7N8X-X mainboard with the asb100 (bach) and the w83l785ts chip. Latter one reads the internal CPU-temp-diode. When all needed modules are loaded it works really well including fancontrol.

Quoted 10 lines

But the w83l785ts doesn't always work. When the module is inserted trough the lm_sensors start-script it is listed when doing lsmod but there is no /sys/bus/i2c/devices/1-002e/ directory. After I rmmod and modprobe the module (sometimes several times) everything works. When using Windows I realized that Speed Fan also sometimes failes to detect the w83l785ts-chip. Is this a known problem and do you know a workaround? There are no error-messages from modprobe, dmesg or anybody else.

Quoted 7 lines

This much reminds me this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id(99

Please read the whole thread and confirm, or detail why your case is different.

This matches my problem, except that I had one case where I rmmoded and then modprobed the w83l785ts module again it still didn't work and it took a second try.

Quoted 7 lines

Next step would be to apply the proposed patch and recompile your kernel, including "I2C chip debugging messages", then compare a working case with a failing one, and report. I suspect that reads are sometimes wrong with no error reported, due to the BIOS messing up with the SMBus. If that's the case there's (unfortunately) not much we can do...

Reads have been fine so far. Unfortunatly I'm not using a self compiled vanilla kernel but maybe I can quickly compile one tomorrow or so (after a math examination). I have now changed the configuration to first load the w83l785ts module and then the asb100 module, after a few reboots I'll see if it helped. I will report if it does.

Quoted 6 lines
Quoted 5 lines

BTW: I had to change pwmconfig a bit for it to detect the fanX_pwm lines of the asb100. In it s current state it only finds pwmX . I can send it to you if you don't know what I mean.

Quoted 6 lines

Yes, please provide your changes in the form of a patch. We'll review it and see if it's acceptable.

Thanks.

It looks like the script has been corrected in lm_sensors 2.8.7 so nevermind about this.

Thank you for your help
Johannes H?bner

#3 lore raw
In reply to Johannes Hübner

On Wed, 01 Sep 2004 12:17:35 +0200, Johannes H?bner wrote

Quoted 4 lines

I wrote a while ago because of problems with the w83l785ts. I think the problem is solved since I swapped the order in which the modules are
loaded: First i2c-nforce2, then w83l785ts, and then asb100. I also updated my BIOS from 1007 to 1010 but the problem was gone before that.

Thanks for reporting. I've updated the relevant bug (#2899 [1]) in the kernel bugzilla base.

I'm a bit suspicious that changing the order will solve the problem in all cases, because you said earlier that you sometimes had to cycle the w83l785ts driver more than once to get it to work. And, as a matter of fact, it did not solve the problem for the bug submitter. So I think there are two different causes of failure, possibly linked.

Please let us know if you experience difficulties again despite the modules load order change.

Thanks.

[1] http://bugzilla.kernel.org/show_bug.cgi?id(99

Signature · 2 lines
Jean Delvare
http://khali.linux-fr.org/
#4 lore raw
In reply to Johannes Hübner

Hi,

I wrote a while ago because of problems with the w83l785ts. I think the problem is solved since I swapped the order in which the modules are
loaded: First i2c-nforce2, then w83l785ts, and then asb100. I also updated my BIOS from 1007 to 1010 but the problem was gone before that.

Thank you
Johannes H?bner

Quoted 43 lines · Jean Delvare
Quoted 5 lines

I have an Asus A7N8X-X mainboard with the asb100 (bach) and the w83l785ts chip. Latter one reads the internal CPU-temp-diode. When all needed modules are loaded it works really well including fancontrol.

Quoted 10 lines

But the w83l785ts doesn't always work. When the module is inserted trough the lm_sensors start-script it is listed when doing lsmod but there is no /sys/bus/i2c/devices/1-002e/ directory. After I rmmod and modprobe the module (sometimes several times) everything works. When using Windows I realized that Speed Fan also sometimes failes to detect the w83l785ts-chip. Is this a known problem and do you know a workaround? There are no error-messages from modprobe, dmesg or anybody else.

This much reminds me this bug report:
http://bugzilla.kernel.org/show_bug.cgi?id(99

Please read the whole thread and confirm, or detail why your case is different.

Next step would be to apply the proposed patch and recompile your kernel, including "I2C chip debugging messages", then compare a working case with a failing one, and report. I suspect that reads are sometimes wrong with no error reported, due to the BIOS messing up with the SMBus. If that's the case there's (unfortunately) not much we can do...

Quoted 5 lines

BTW: I had to change pwmconfig a bit for it to detect the fanX_pwm lines of the asb100. In it s current state it only finds pwmX . I can send it to you if you don't know what I mean.

Yes, please provide your changes in the form of a patch. We'll review it and see if it's acceptable.

Thanks.