linux-2.6.1, ECS K7S5A / SiS735
hi.
I just installed lm-sensors 2.8.2 user utils to read the sis735 board sensors in my server, running linux-2.6.1.
first of all I got confused over what to compile or not. As of now, there is sis5595 as a module (since sensors-detect asks for it), then there is sis96x as a module since the kernel help says it supports the 735 chipset. i2c support is compiled in statically.
now first of all I hacked the detect script to look for sis96x since sis645 module doesn't exist at all.
script loads it fine, the it8705 chip, too (*and* the sis5595, bob knows why) but later on after everything is loaded, namely:
i2c_sis96x 4416 0 it87 21632 0 i2c_sensor 2368 1 it87
it still tells me "no sensors found".
any ideas?
Signature · 8 lines
-----BEGIN GEEK CODE BLOCK----- Version: 3.12 FGCS d--(+)@ s-:+ a- C+++(++++) UL+>++++ P+>++ L+++>++++ E-- W++ N o? K- w--(---) !O M+ V- PS++(+) PE(-) Y+ PGP(-) t++(---)@ 5 X+(++) R+(++) tv--(+)@ b+(+++) DI+++ D G++ e* h>++ r%>* y? ------END GEEK CODE BLOCK------ http://www.againsttcpa.com - nothing fights like the opposition
Quoted 7 lines
I just installed lm-sensors 2.8.2 user utils to read the sis735 board sensors in my server, running linux-2.6.1.
first of all I got confused over what to compile or not. As of now, there is sis5595 as a module (since sensors-detect asks for it), then there is sis96x as a module since the kernel help says it supports the 735 chipset. i2c support is compiled in statically.
Should be supported by i2c-sis96x, yes.
Quoted 2 lines
now first of all I hacked the detect script to look for sis96x since sis645 module doesn't exist at all.
Right, that's on my to-do list for some times already, but couldn't find the time to fix that problem yet, sorry.
Quoted 2 lines
script loads it fine, the it8705 chip, too (*and* the sis5595, bob knows why)
It shouldn't. And you shouldn't try to load it, as it might confuse your bus.
Quoted 8 lines
but later on after everything is loaded, namely:
i2c_sis96x 4416 0 it87 21632 0 i2c_sensor 2368 1 it87it still tells me "no sensors found".
any ideas?
Not really, except ths sis5595-might-have-confused-your-bus mentioned right above.
Make sure you have sysfs support enabled in your kernel and mounted under /sys on your system. Check your dmesg for possible hints, and have a loot at what /sys/bus/i2c contains.
You could also unload it87 and run i2cdetect on your sis735 bus, to make sure you see your it87 chip there (I expect you to see it if sensors-detect suggested it). If you can see the chip, run i2cdump on it and we'll try to understand why the it87 drivers did not like it.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 7 lines
here seems to be the problem: i2c-core is statically, i2c-dev and i2c-sis96x are loaded as modules. after that I did i2cdump. it doesn't find any buses. i2cdetect 0 tells me there is no such device. strange, i did
mkdev.shand the files are in dev.ideas? do have to hack more than i2cdetect to make sis96x work on my sis735 board?
I'm rather clueless. I'm not even sure wether this is related to the sis96x driver or not. Maybe you want to see with Mark, our SiS busses expert.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 11 lines · On Thu, 15 Jan 2004 18:18:09 +0100 Jean Delvare <[email protected]> wrote:
Quoted 7 lines
here seems to be the problem: i2c-core is statically, i2c-dev and i2c-sis96x are loaded as modules. after that I did i2cdump. it doesn't find any buses. i2cdetect 0 tells me there is no such device. strange, i did
mkdev.shand the files are in dev.ideas? do have to hack more than i2cdetect to make sis96x work on my sis735 board?
I'm rather clueless. I'm not even sure wether this is related to the sis96x driver or not. Maybe you want to see with Mark, our SiS busses expert.
I suspect this to be a kernel .config issue, but I never did sensors stuff before. I'll write to said Mark.
Besides - is there still a mailing list? Didn't find subscription infos.
Greetings,
Dex
Quoted 10 lines · Dexter Filmore
Quoted 7 lines · On Thu, 15 Jan 2004 18:18:09 +0100 Jean Delvare <[email protected]> wrote:
Quoted 7 lines
here seems to be the problem: i2c-core is statically, i2c-dev and i2c-sis96x are loaded as modules. after that I did i2cdump. it doesn't find any buses. i2cdetect 0 tells me there is no such device. strange, i did
mkdev.shand the files are in dev.ideas? do have to hack more than i2cdetect to make sis96x work on my sis735 board?
No, i2cdetect should work on any i2c bus that works. It sounds like the i2c-sis96x driver isn't recognizing your setup.
Quoted 6 lines
Quoted 3 lines
I'm rather clueless. I'm not even sure wether this is related to the sis96x driver or not. Maybe you want to see with Mark, our SiS busses expert.
I suspect this to be a kernel .config issue, but I never did sensors stuff before. I'll write to said Mark.
Not if I write you first. ;)
Quoted 1 line
Besides - is there still a mailing list? Didn't find subscription infos.
Yes; you can post without subscribing. You've been doing this already.
Could you send the results of 'lspci -v' and 'lspci -n' on your system while running 2.6.x? Does the i2c-sis645 driver work for you with kernel 2.4.x? If so, please send both 'lspci' results while running that also.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Quoted 2 lines · Dexter Filmore
I suspected that, but then again how can I get the complete list instead of replies only to my threads?
The mailing list is maintained manually. If you want to subscribe, send a message to Phil Edelbrock <[email protected]>. If you just want to read the list, look here: http://archives.andrew.net.au/lm-sensors/
Quoted 10 lines
Quoted 4 lines
Could you send the results of 'lspci -v' and 'lspci -n' on your system while running 2.6.x? Does the i2c-sis645 driver work for you with kernel 2.4.x? If so, please send both 'lspci' results while running that also.
I've got it working now with 2.4.24 (to which I reverted anyway since there's some framebuffer woes with 2.6) and got it working fine.
Here is lsmod and lspci -v-/n from 2.4.24:******** 2.4.24 *********
Quoted 9 lines
root@xerxes:~# lsmod Module Size Used by Not tainted //strange no module is listed as "used" by any other, is'nt it it87 11852 0 (unused) smbus-arp 4820 0 (unused) //this one is not displayed in 2.6 eeprom 3824 0 (unused) i2c-isa 716 0 (unused) agpgart 14224 0 (unused)
No, the above shows that you don't have i2c-sis645 loaded. The sensors program may work without it though (it87 via ISA access).
Quoted 8 lines
root@xerxes:~# lspci -n 00:00.0 Class 0600: 1039:0735 (rev 01) 00:01.0 Class 0604: 1039:0001 00:02.0 Class 0601: 1039:0008 00:02.5 Class 0101: 1039:5513 (rev d0) 00:0b.0 Class 0401: 1274:1371 (rev 02) 00:0d.0 Class 0200: 10ec:8139 (rev 10) 01:00.0 Class 0300: 102b:1001 (rev 02)
After you load i2c-sis645, you should see a new entry in 'lspci -n', like this:
00:02.1 Class 0c05 1039:0016
This is the SMBus PCI device that i2c-sis645 un-hides. Let's first confirm that much works for you in kernel 2.4.
Quoted 3 lines
that's it about 2.4. right now I can't boot 2.6 since this is a server machine, I guess I'll have the opportunity tomorrow, I'll send you the other data then.
With kernel 2.6, the driver (which is renamed to the more correct i2c-sis96x) does not unhide the SMBus device. The kernel itself does that right after it boots. This is the part that I suspect is going bad for you; here's what I'd like you to do (beware this could crash your machine, especially if you or I mistype something)...
As root, do this (# is the prompt):
# setpci -s 00:02.0 0x40
This will report a single number in hex; for me, it gives "98". Add hex 40 to it; for me that's "98 + 40 = d8". Substitute yours in place of NN below...
# setpci -s 00:02.0 0x40=0xNN
OK, now the true identity of that PCI device is revealed:
# lspci -H1 -n | grep "00:02.0"
Send me the results of that command. Here's what I expect you'll see:
00:02.0 Class 0601: 1039:0018
Now one more command, to put things back. Substitute the hex number that you read in the first command for MM below...
# setpci -s 00:02.0 0x40=0xMM
I don't expect that the above commands will make much sense to you, but at least you need to understand addition in hex to do this - if not then let me know and I'll try to arrange a meeting by IRC to walk you through it.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]