Skip to contentSkip to conversation

i2c-sis630 bus driver (was Re: last call for 2.6.5)

DISCUSSION [email protected] 2 participants 4 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

BTW- My workstation at work has an integrated sis630. It comes up like this:

[root@drtheopolis lm_sensors2]# lspci -v -d 1039:6300 01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] SiS630 GUI Accelerator+3D (rev 31) (prog-if 00 [VGA])
Subsystem: Asustek Computer, Inc.: Unknown device 8032
Flags: 66Mhz, medium devsel, IRQ 11
BIST result: 00
Memory at f0000000 (32-bit, prefetchable) [size8M] Memory at ea000000 (32-bit, non-prefetchable) [size8K] I/O ports at c800 [size8]
Capabilities: [40] Power Management version 1
Capabilities: [50] AGP version 2.0

[root@drtheopolis lm_sensors2]# lspci -vn -d 1039:6300 01:00.0 Class 0300: 1039:6300 (rev 31)

	Subsystem: 1043:8032
	Flags: 66Mhz, medium devsel, IRQ 11
	BIST result: 00
	Memory at f0000000 (32-bit, prefetchable) [size8M]
	Memory at ea000000 (32-bit, non-prefetchable) [size8K]
	I/O ports at c800 [size8]
	Capabilities: [40] Power Management version 1
	Capabilities: [50] AGP version 2.0

As a test, I substituted PCI_DEVICE_ID_SI_630 with 0x6300:

        /* Look for the SIS630 */
        if (!(sis630_dev = pci_find_device(PCI_VENDOR_ID_SI,
                                            PCI_DEVICE_ID_SI_503,
                                            sis630_dev))) {
                printk(KERN_ERR "i2c-sis630.o: Error: Can't detect SIS630!\n");
                return -ENODEV;
        }
        tmp = pci_find_device(PCI_VENDOR_ID_SI,/*PCI_DEVICE_ID_SI_630*/0x6300,NULL);
        if (tmp = NULL && force = 0) {
                printk(KERN_ERR "i2c-sis630.o: Error: Can't detect SIS630!\n");
                return -ENODEV;
        }

And, things seems to be working thus far (but perhaps a bit slow):

eeprom-i2c-1-50

Adapter: SMBus SIS630 adapter at e480
Algorithm: Non-I2C SMBus adapter
Memory type:            SDRAM DIMM SPD
SDRAM Size (MB):        512

eeprom-i2c-1-51

Adapter: SMBus SIS630 adapter at e480
Algorithm: Non-I2C SMBus adapter
Memory type:            SDRAM DIMM SPD
SDRAM Size (MB):        512

Good work! Perhaps we can add this chip ID to the detection?

Phil

Quoted 23 lines · Alexander Malysh

Hi Mark , All:

First of all: sorry for late response...

As of today , I'm only user I know , who use i2c-sis630. At the moment I don't have more commits to make.
Because of adding i2c-sis630.c to mkpatch , I leave gladly the decision to you...

Regards,
Alexander Malysh

Am Samstag, 7. September 2002 17:40 schrieb Mark D. Studebaker:

Quoted 10 lines

Last minute stuff - any comments on whether to put in for 2.6.5 or wait?

- add i2c-630 to mkpatch
- add i2c-645 to mkpatch
- add nVidia address discovery to i2c-amd756
- anything else?

Quoted 2 lines · Mark D. Studebaker

please check in / finish everything in the next week, let's say... by Monday Sept. 9th, for a release Friday the 13th!

Signature · 3 lines
Philip Edelbrock -- IS Manager -- Edge Design, Corvallis, OR
   [email protected] -- http://www.netroedge.com/~phil
 PGP F16: 01 D2 FD 01 B5 46 F4 F0  3A 8B 9D 7E 14 7F FB 7A
#1 lore raw
Quoted 18 lines · Alexander Malysh

Hi Phil,All:

Am Mittwoch, 18. September 2002 00:05 schrieb [email protected]:

Quoted 15 lines

BTW- My workstation at work has an integrated sis630. It comes up like this:

[root@drtheopolis lm_sensors2]# lspci -v -d 1039:6300 01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] SiS630 GUI Accelerator+3D (rev 31) (prog-if 00 [VGA])
Subsystem: Asustek Computer, Inc.: Unknown device 8032
Flags: 66Mhz, medium devsel, IRQ 11
BIST result: 00
Memory at f0000000 (32-bit, prefetchable) [size8M] Memory at ea000000 (32-bit, non-prefetchable) [size8K] I/O ports at c800 [size8]
Capabilities: [40] Power Management version 1
Capabilities: [50] AGP version 2.0

Quoted 3 lines

[snip]
I have this one too ... It's only VGA-Card. Can you please provide full lspci -vvv from this board ?

Sure, here it is:

[root@drtheopolis phil]# lspci -d 1039:6300 -vvv
01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] SiS630 GUI Accelerator+3D (rev 31) (prog-if 00 [VGA])
Subsystem: Asustek Computer, Inc.: Unknown device 8032
Control: I/O+ Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop-
ParErr- Stepping- SERR- FastB2B-
Status: Cap+ 66Mhz+ UDF- FastB2B+ ParErr- DEVSEL=medium

Quoted 1 line

TAbort- <TAbort- <MAbort- >SERR- <PERR-

Interrupt: pin A routed to IRQ 11
BIST result: 00
Region 0: Memory at f0000000 (32-bit, prefetchable) [size8M] Region 1: Memory at ea000000 (32-bit, non-prefetchable) [size8K] Region 2: I/O ports at c800 [size8]
Capabilities: [40] Power Management version 1
Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=0mA
PME(D0-,D1-,D2-,D3hot-,D3cold-)

		Status: D0 PME-Enable- DSel=0 DScale=0 PME-
	Capabilities: [50] AGP version 2.0
		Status: RQ SBA+ 64bit- FW- Rate=x1,x2
		Command: RQ=0 SBA- AGP- 64bit- FW- Rate=<none>
Quoted 4 lines
Quoted 2 lines

As a test, I substituted PCI_DEVICE_ID_SI_630 with 0x6300:

no needed anymore , the driver have force option for this :)

Can we have the driver detect it instead of requiring the users to force it? I mean, the driver is for the SiS630, and this PCI device is a SiS630. It wouldn't be obvious to a user that they not only use the driver, but must force it to use it.

Quoted 15 lines
Quoted 15 lines

        /* Look for the SIS630 */
        if (!(sis630_dev = pci_find_device(PCI_VENDOR_ID_SI,
                                            PCI_DEVICE_ID_SI_503,
                                            sis630_dev))) {
                printk(KERN_ERR "i2c-sis630.o: Error: Can't detect
SIS630!\n"); return -ENODEV;
        }
        tmp > > pci_find_device(PCI_VENDOR_ID_SI,/*PCI_DEVICE_ID_SI_630*/0x6300,NULL); if
(tmp = NULL && force = 0) {
                printk(KERN_ERR "i2c-sis630.o: Error: Can't detect
SIS630!\n"); return -ENODEV;
        }
Quoted 6 lines
Quoted 1 line

And, things seems to be working thus far (but perhaps a bit slow):

yes it's slow, because I have disabled change of the Host Master Clock (it's hang my Laptop) ... You can try to change i2c-sis630.c at line 194
from: sis630_write(SMB_CNT, 0x00);
to: sis630_write(SMB_CNT, 0x20);

With just some brief testing, it seems to work. Doesn't seem much faster, but it works.

Quoted 2 lines

In this case Host Master Clock will be changed to 56KHz and should be a bit faster :) Tell me please if it works for you ...

I'm OK with it being slow for the sake of added stability/reliability.

Phil

Signature · 3 lines
Philip Edelbrock -- IS Manager -- Edge Design, Corvallis, OR
   [email protected] -- http://www.netroedge.com/~phil
 PGP F16: 01 D2 FD 01 B5 46 F4 F0  3A 8B 9D 7E 14 7F FB 7A
#2 lore raw
In reply to [email protected]

Hi Phil,All:

Am Mittwoch, 18. September 2002 00:05 schrieb [email protected]:

Quoted 15 lines

BTW- My workstation at work has an integrated sis630. It comes up like this:

[root@drtheopolis lm_sensors2]# lspci -v -d 1039:6300 01:00.0 VGA compatible controller: Silicon Integrated Systems [SiS] SiS630 GUI Accelerator+3D (rev 31) (prog-if 00 [VGA])
Subsystem: Asustek Computer, Inc.: Unknown device 8032
Flags: 66Mhz, medium devsel, IRQ 11
BIST result: 00
Memory at f0000000 (32-bit, prefetchable) [size8M] Memory at ea000000 (32-bit, non-prefetchable) [size8K] I/O ports at c800 [size8]
Capabilities: [40] Power Management version 1
Capabilities: [50] AGP version 2.0

[snip]
I have this one too ... It's only VGA-Card. Can you please provide full lspci -vvv from this board ?

Quoted 2 lines

As a test, I substituted PCI_DEVICE_ID_SI_630 with 0x6300:

no needed anymore , the driver have force option for this :)

Quoted 14 lines
        /* Look for the SIS630 */
        if (!(sis630_dev = pci_find_device(PCI_VENDOR_ID_SI,
                                            PCI_DEVICE_ID_SI_503,
                                            sis630_dev))) {
                printk(KERN_ERR "i2c-sis630.o: Error: Can't detect
SIS630!\n"); return -ENODEV;
        }
        tmp > pci_find_device(PCI_VENDOR_ID_SI,/*PCI_DEVICE_ID_SI_630*/0x6300,NULL); if
(tmp = NULL && force = 0) {
                printk(KERN_ERR "i2c-sis630.o: Error: Can't detect
SIS630!\n"); return -ENODEV;
        }
Quoted 1 line

And, things seems to be working thus far (but perhaps a bit slow):

yes it's slow, because I have disabled change of the Host Master Clock (it's hang my Laptop) ... You can try to change i2c-sis630.c at line 194
from: sis630_write(SMB_CNT, 0x00);
to: sis630_write(SMB_CNT, 0x20);

In this case Host Master Clock will be changed to 56KHz and should be a bit faster :) Tell me please if it works for you ...

Regards,
Alexander Malysh

P.S. I have sent a patch to you and list for support Onsemi MC1066 sensor. I have no answer , whether I may commit the changes ?

Quoted 32 lines

eeprom-i2c-1-50

Adapter: SMBus SIS630 adapter at e480
Algorithm: Non-I2C SMBus adapter
Memory type:            SDRAM DIMM SPD
SDRAM Size (MB):        512

eeprom-i2c-1-51

Adapter: SMBus SIS630 adapter at e480
Algorithm: Non-I2C SMBus adapter
Memory type:            SDRAM DIMM SPD
SDRAM Size (MB):        512

Good work! Perhaps we can add this chip ID to the detection?

Phil

Quoted 12 lines · Alexander Malysh

Hi Mark , All:

First of all: sorry for late response...

As of today , I'm only user I know , who use i2c-sis630. At the moment I don't have more commits to make.
Because of adding i2c-sis630.c to mkpatch , I leave gladly the decision to you...

Regards,
Alexander Malysh

#3 lore raw
In reply to [email protected]

Am Mittwoch, 18. September 2002 20:14 schrieb [email protected]:
[snip]

Quoted 8 lines
Quoted 4 lines

[snip]
I have this one too ... It's only VGA-Card. Can you please provide full lspci -vvv from this board ?

Sure, here it is:

[root@drtheopolis phil]# lspci -d 1039:6300 -vvv

[snip]

Phil, I meant without -d option ... Thank you in advance ...
I'm not sure , what kind of pci-id should be checked ? i found 2 id's = 6300
1. PCI_DEVICE_ID_SI_630_VGA (this is your case)
2. PCI_DEVICE_ID_SI_6300

Therefore I would have gladly full lspci output ...

Quoted 9 lines
Quoted 4 lines
Quoted 2 lines

As a test, I substituted PCI_DEVICE_ID_SI_630 with 0x6300:

no needed anymore , the driver have force option for this :)

Can we have the driver detect it instead of requiring the users to force it? I mean, the driver is for the SiS630, and this PCI device is a SiS630. It wouldn't be obvious to a user that they not only use the driver, but must force it to use it.

You are right , but I meant you does't need to "hack" the code anymore to probe a driver for supported chips...

Quoted 31 lines
Quoted 14 lines
Quoted 14 lines
        /* Look for the SIS630 */
        if (!(sis630_dev = pci_find_device(PCI_VENDOR_ID_SI,
                                            PCI_DEVICE_ID_SI_503,
                                            sis630_dev))) {
                printk(KERN_ERR "i2c-sis630.o: Error: Can't detect
SIS630!\n"); return -ENODEV;
        }
        tmp > > > pci_find_device(PCI_VENDOR_ID_SI,/*PCI_DEVICE_ID_SI_630*/0x6300,NULL);
if (tmp = NULL && force = 0) {
                printk(KERN_ERR "i2c-sis630.o: Error: Can't detect
SIS630!\n"); return -ENODEV;
        }
Quoted 6 lines
Quoted 1 line

And, things seems to be working thus far (but perhaps a bit slow):

yes it's slow, because I have disabled change of the Host Master Clock (it's hang my Laptop) ... You can try to change i2c-sis630.c at line 194
from: sis630_write(SMB_CNT, 0x00);
to: sis630_write(SMB_CNT, 0x20);

With just some brief testing, it seems to work. Doesn't seem much faster, but it works.

Quoted 2 lines

In this case Host Master Clock will be changed to 56KHz and should be a bit faster :) Tell me please if it works for you ...

I'm OK with it being slow for the sake of added stability/reliability.

Phil

Signature · 1 line
Alexander Malysh