Issue getting sis630 i2c smbus driver to work
I have a laptop with a sis630 chipset
When I modprobe i2c-sis630, nothing happens. The module seems to load fine, but there are no messages in dmesg (I have all debuggng options for I2C enabled), and 'i2cdetect -l' returns nothing. Just to check, I loaded the i2c-isa module, which works ok (i2cdetect -l shows the isa driver) but there are no isa sensors (not surprising)
sensors-detect (obviously) doesn't detect anything either.
This is a 2.6.7 kernel with lm-sensors 2.8.7
ACPI is enabled if it is important
please let me know if there is anything else I can do to help debug further.
lspci:
0000:00:00.0 Host bridge: Silicon Integrated Systems [SiS] 630 Host (rev 31) 0000:00:00.1 IDE interface: Silicon Integrated Systems [SiS] 5513 [IDE] (rev d0) 0000:00:01.0 ISA bridge: Silicon Integrated Systems [SiS] SiS85C503/5513 (LPC Bridge)
0000:00:01.1 Ethernet controller: Silicon Integrated Systems [SiS] SiS900 PCI Fast Ethernet (rev 82)
0000:00:01.2 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
0000:00:01.3 USB Controller: Silicon Integrated Systems [SiS] USB 1.0 Controller (rev 07)
0000:00:01.4 Multimedia audio controller: Silicon Integrated Systems [SiS] SiS PCI Audio Accelerator (rev 02)
0000:00:01.6 Modem: Silicon Integrated Systems [SiS] AC'97 Modem Controller (rev a0)
0000:00:02.0 PCI bridge: Silicon Integrated Systems [SiS] Virtual PCI-to-PCI bridge (AGP)
0000:00:03.0 CardBus bridge: O2 Micro, Inc. OZ6912 Cardbus Controller 0000:00:09.0 Network controller: Intersil Corporation Prism 2.5 Wavelan chipset (rev 01)
0000:00:0a.0 FireWire (IEEE 1394): Lucent Microelectronics FW323 (rev 04) 0000:01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] 630/730 PCI/AGP VGA Display Adapter (rev 31)
lspci -n
0000:00:00.0 Class 0600: 1039:0630 (rev 31)
0000:00:00.1 Class 0101: 1039:5513 (rev d0)
0000:00:01.0 Class 0601: 1039:0018
0000:00:01.1 Class 0200: 1039:0900 (rev 82)
0000:00:01.2 Class 0c03: 1039:7001 (rev 07)
0000:00:01.3 Class 0c03: 1039:7001 (rev 07)
0000:00:01.4 Class 0401: 1039:7018 (rev 02)
0000:00:01.6 Class 0703: 1039:7013 (rev a0)
0000:00:02.0 Class 0604: 1039:0001
0000:00:03.0 Class 0607: 1217:6972
0000:00:09.0 Class 0280: 1260:3873 (rev 01)
0000:00:0a.0 Class 0c00: 11c1:5811 (rev 04)
0000:01:00.0 Class 0300: 1039:6300 (rev 31)
lsmod:
Module Size Used by i2c_sis630 8044 0 i2c_core 21652 1 i2c_sis630 sis 54176 2
grep 'I2C.*=' .configCONFIG_I2C=mCONFIG_I2C_CHARDEV=mCONFIG_I2C_ALGOBIT=mCONFIG_I2C_ALGOPCF=mCONFIG_I2C_ISA=mCONFIG_I2C_SIS630=mCONFIG_I2C_SENSOR=mCONFIG_I2C_DEBUG_CORE=yCONFIG_I2C_DEBUG_ALGO=yCONFIG_I2C_DEBUG_BUS=yCONFIG_I2C_DEBUG_CHIP=y
(all sensor chips are built as modules)
.Geoff
Skipped content of type multipart/mixed-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040706/f5ffe63d/attachment.bin
Quoted 6 lines
Thanks, this did indeed work, though when running sensors-detect, i
get: Next adapter: SMBus SIS630 adapter at 5080 (Algorithm unavailiable) Do you want to scan it? (YES/no/selectively):
Client found at address0x08
Client found at address0x10
Quoted 7 lines
..
Sorry, no chips were detected.
..I assume this means that either (a) the laptop has no sensors, or (b) they aren't supported by linux yet. Is this a reasonable assertion? Is there anything I can do (short of disassembling my laptop) to help?
Most probably (a). 0x08 is a typical address for SMBus 2.0 related stuff (not a real chip), and 0x10 is certainly not a typical address for hardware monitoring chips. You can still try dumping their contents (using i2cdump), but I would say no chance we can do anything with them. At the very limit they may be battery-related chips.
It's very common that laptop have no hardware monitoring chips, or at least they are not exposed. You may get some luck with ACPI (thermal zone & fan) in this case.
Good luck,
Signature · 2 lines
Jean Delvare http://khali.linux-fr.org/
Hi all:
Quoted 6 lines · Geoffrey Hausheer
Quoted 3 lines · On Tue, 6 Jul 2004 10:59:16 +0200, "Alexander Malysh amalysh-at-web.de…
Hi,
please try attached patch...
(attached patch added SiS 1039:0018 to PCI device list of sis630.c)
Quoted 6 lines
Quoted 1 line
Thanks!
Thanks, this did indeed work, though when running sensors-detect, i get:
Next adapter: SMBus SIS630 adapter at 5080 (Algorithm unavailiable) Do you want to scan it? (YES/no/selectively):
Client found at address0x08
Client found at address0x10
<snip>
Well, that's interesting all by itself. Until now, I thought that 1039:0018 were always just mis-identified SiS 96x south bridges. I've seen a SiS735 (single-chip north/south) identify itself as 1039:0735 & 1039:0018. For that system, the sis96x driver works fine.
In your case, Geoffrey, the 2.6 kernel PCI quirks routine still does the right thing (or at least, it doesn't break anything I guess). Trouble is, it tries to write a particular bit in the PCI device config space that is probably not appropriate... one that for 96x chipsets would enable the SMBus device. I'm not sure what to do about this.
Furthermore, what happens when the guy with 1039:0735/1039:0018 loads sis630? That could be very bad.
Regards,
Signature · 2 lines
Mark M. Hoffman [email protected]
Hi Mark,
Quoted 5 lines · Mark M. Hoffman
Hi all:
Quoted 2 lines · Geoffrey Hausheer
On Tue, 6 Jul 2004 10:59:16 +0200, "Alexander Malysh amalysh-at-web.de
Quoted 7 lines
Quoted 5 lines
|lm-sensors/1.0-Allow|" <[email protected]> said: |Quoted 3 lines
Hi,
please try attached patch...
(attached patch added SiS 1039:0018 to PCI device list of
sis630.c)
yep, that's correct...
Quoted 16 lines
Quoted 8 lines
Quoted 2 lines
Thanks!
Thanks, this did indeed work, though when running sensors-detect, i get:
Next adapter: SMBus SIS630 adapter at 5080 (Algorithm unavailiable) Do you want to scan it? (YES/no/selectively):
Client found at address0x08
Client found at address0x10<snip>
Well, that's interesting all by itself. Until now, I thought that 1039:0018 were always just mis-identified SiS 96x south bridges. I've seen a SiS735 (single-chip north/south) identify itself as 1039:0735 & 1039:0018. For that system, the sis96x driver works fine.
Quoted 5 lines
In your case, Geoffrey, the 2.6 kernel PCI quirks routine still does the right thing (or at least, it doesn't break anything I guess). Trouble is, it tries to write a particular bit in the PCI device config space that is probably not appropriate... one that for 96x chipsets would enable the SMBus device. I'm not sure what to do about this.
sis630/sis730 LPC has also a ability to change a id, so PCI quirk routine just did this and i2c-sis630 should be aware of this possibility.
Quoted 3 lines
Furthermore, what happens when the guy with 1039:0735/1039:0018 loads sis630? That could be very bad.
nothing bad will happens, as long the guy doesn't force i2c-sis630 to be loaded, because i2c-sis630 checks for supported chips (and those are: sis630, sis730).
Quoted 2 lines
Regards,
Signature · 10 lines
Best regards, Dipl.-Ing. Alexander Malysh -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: signature Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20040708/522f90e2/attachment.bin
Quoted 4 lines · On Tue, 6 Jul 2004 10:59:16 +0200, "Alexander Malysh amalysh-at-web.de…
Hi,
please try attached patch...
Thanks!
Thanks, this did indeed work, though when running sensors-detect, i get:
Next adapter: SMBus SIS630 adapter at 5080 (Algorithm unavailiable) Do you want to scan it? (YES/no/selectively):
Client found at address 0x08
Client found at address 0x10
..
Sorry, no chips were detected.
..
I assume this means that either (a) the laptop has no sensors, or (b) they aren't supported by linux yet. Is this a reasonable assertion? Is there anything I can do (short of disassembling my laptop) to help?
Thanks again,
.Geoff