Skip to contentSkip to conversation

ref 1501

DISCUSSION Juan Araya 3 participants 11 messages May 19, 2005

lore
Share & tools
lore

Juan Araya

author
#0 lore raw

this is sensors-detect output but also the output that sensors gave me in the kernel 2.4.22, i know the modules are i2c-ali1535 and w83781d cause i've used it before in there, what i see strange is that in the kernel 2.4.22 the algorithm says Non-i2c SMBus adapter and in the 2.6 Algorithm unavailable, maybe that's not the problem and i'm doing something wrong
About ticket 839, i know the error i'm using one a7a266, the only diference is the chipset revision, lspci says the chip is M1533 but it's M1535D+ so the error is the old one

Signature · 16 lines
+++ GMX - die erste Adresse f?r Mail, Message, More +++
Neu: Preissenkung f?r MMS und FreeMMS! http://www.gmx.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sensor
Type: application/octet-stream
Size: 1025 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040104/31cc3f79/sensor.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: detect
Type: application/octet-stream
Size: 7995 bytes
Desc: not available
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040104/31cc3f79/detect.obj
#1 lore raw
Quoted 8 lines

this is sensors-detect output but also the output that sensors gave me in the kernel 2.4.22, i know the modules are i2c-ali1535 and w83781d cause i've used it before in there, what i see strange is that in the kernel 2.4.22 the algorithm says Non-i2c SMBus adapter and in the 2.6 Algorithm unavailable, maybe that's not the problem and i'm doing something wrong About ticket 839, i know the error i'm using one a7a266, the only diference is the chipset revision, lspci says the chip is M1533 but it's M1535D+ so the error is the old one

Sorry for the delay.

If you still don't have it working, please upgrade to Linux 2.6.2, lm_sensors 2.8.4, enable all debugging options when configuring the Linux i2c drivers, retry and report.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#4 lore raw
In reply to Juan Araya
Quoted 2 lines

Ok, there it's kernel 2.6.2 lm_sensors 2.8.4 and all debugging options on

Stupid me. There is a bug in i2c-core debugging in Linux 2.6.2 (causing the segmentation fault). Please disable debugging of i2c-core, recompile and try again.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#7 lore raw
In reply to Juan Araya

Hi,

I may have an idea to solve your problem. Please unload w83781d (while still having i2c-ali1535 loaded) and dump the contents of your chip (using "i2cdump 0 0x2d", adapt to your system if needed).

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#8 lore raw
In reply to Juan Araya
Quoted 2 lines

Did as you say, the values are changing so i guess the ali bus if fine, i don't know how to force the w83781d using i2cdetec :P

I think I found the problem. Here is a patch against Linux 2.6.3 that should make it work.

Sorry it took me so long to get to it, it was very basic and lying under my eyes, but for some reasons it was so evident that I did not see it.

Signature · 13 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
-------------- next part --------------
--- linux-2.6.3/drivers/i2c/busses/i2c-ali1535.c.orig	Thu Feb  5 22:24:55 2004
+++ linux-2.6.3/drivers/i2c/busses/i2c-ali1535.c	Tue Feb 24 20:54:30 2004
@@ -484,6 +484,7 @@
 
 static struct i2c_adapter ali1535_adapter = {
 	.owner		= THIS_MODULE,
+	.class          = I2C_ADAP_CLASS_SMBUS,
 	.algo		= &smbus_algorithm,
 	.name		= "unset",
 };
author
#10 lore raw
In reply to Juan Araya

Did as you say, the values are changing so i guess the ali bus if fine, i don't know how to force the w83781d using i2cdetec :P

-------------- next part --------------
i2cdump 0 0x2d
No size specified (using byte-data access)
WARNING! This program can confuse your I2C bus, cause data loss and worse! I will probe file /dev/i2c-0, address 0x2d, mode byte
You have five seconds to reconsider and press CTRL-C!

     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: b9 bf cf d2 c0 d5 00 cd a7 f8 a5 ac 8c 68 54 f8    ??????.??????hT?
10: a5 f8 a5 30 04 00 00 00 00 00 00 00 00 00 00 00    ???0?...........
20: 6f 6e cf b7 d2 0f 2a 20 72 ff ff 80 67 80 67 e3    on????* r..?g?g?
30: b9 cd a7 ed 9d 40 05 49 22 18 00 02 40 00 00 00    ?????@?I"?.?@...
40: 01 90 00 00 00 ff 00 54 2d 22 01 40 01 00 80 5c    ??.....T-"?@?.?\
50: ff ff 00 ff ff ff ff ff 31 8f 8f 00 e0 48 e2 3f    ........1??.?H??
60: 70 6f cf b7 d1 10 2a 20 72 ff ff 80 67 80 67 e3    po????* r..?g?g?
70: b9 cd a7 ed 9d 40 05 49 22 18 00 02 40 00 00 00    ?????@?I"?.?@...
80: b9 c0 d0 d4 bf d4 00 cd a7 f8 a5 ac 8c 68 54 f8    ??????.??????hT?
90: a5 f8 a5 30 04 00 00 00 00 00 00 00 00 00 00 00    ???0?...........
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
Tebas:/home/burbu# i2cdump 0 0x2d
No size specified (using byte-data access)
  WARNING! This program can confuse your I2C bus, cause data loss and worse!
  I will probe file /dev/i2c-0, address 0x2d, mode byte
  You have five seconds to reconsider and press CTRL-C!
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: b8 c0 d0 d3 bf d4 00 cd a7 f8 a5 ac 8c 68 54 f8    ??????.??????hT?
10: a5 f8 a5 30 04 00 00 00 00 00 00 00 00 00 00 00    ???0?...........
20: 70 70 d0 b8 d1 10 2b 20 72 ff ff 80 67 80 67 e3    pp????+ r..?g?g?
30: b9 cd a7 ed 9d 40 05 49 22 18 00 02 40 00 00 00    ?????@?I"?.?@...
40: 01 00 00 00 00 ff 00 54 2d 22 01 40 01 00 80 5c    ?......T-"?@?.?\
50: ff ff 00 ff ff ff ff ff 31 8f 8f 00 e0 48 e2 3f    ........1??.?H??
60: 6e 6f d1 b7 d1 10 2a 20 73 ff ff 80 67 80 67 e3    no????* s..?g?g?
70: b9 cd a7 ed 9d 40 05 49 22 18 00 02 40 00 00 00    ?????@?I"?.?@...
80: b9 bf d0 d3 c0 d5 00 cd a7 f8 a5 ac 8c 68 54 f8    ??????.??????hT?
90: a5 f8 a5 30 04 00 00 00 00 00 00 00 00 00 00 00    ???0?...........
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
Tebas:/home/burbu# i2cdump 0 0x2d
No size specified (using byte-data access)
  WARNING! This program can confuse your I2C bus, cause data loss and worse!
  I will probe file /dev/i2c-0, address 0x2d, mode byte
  You have five seconds to reconsider and press CTRL-C!
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f    0123456789abcdef
00: b9 bf cf d0 bf d4 00 cd a7 f8 a5 ac 8c 68 54 f8    ??????.??????hT?
10: a5 f8 a5 30 04 00 00 00 00 00 00 00 00 00 00 00    ???0?...........
20: 6f 6f cf b5 d2 10 2a 20 72 ff ff 80 67 80 67 e3    oo????* r..?g?g?
30: b9 cd a7 ed 9d 40 05 49 22 18 00 02 40 00 00 00    ?????@?I"?.?@...
40: 01 00 00 00 00 ff 00 54 2d 22 01 40 01 00 80 5c    ?......T-"?@?.?\
50: ff ff 00 ff ff ff ff ff 31 8f 8f 00 e0 48 e2 3f    ........1??.?H??
60: 70 6f cf b8 d1 10 2a 20 72 ff ff 80 67 80 67 e3    po????* r..?g?g?
70: b9 cd a7 ed 9d 40 05 49 22 18 00 02 40 00 00 00    ?????@?I"?.?@...
80: b9 c0 ce cf bf d4 00 cd a7 f8 a5 ac 8c 68 54 f8    ??????.??????hT?
90: a5 f8 a5 30 04 00 00 00 00 00 00 00 00 00 00 00    ???0?...........
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
c0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
d0: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff    ................
e0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................
f0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00    ................