Skip to contentSkip to conversation

i2c-sis645.c patch (Experimental SiS 655 support)

PATCH Applied Kenneth Bernard Healy 5 participants 7 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

This patch experimentally enables SiS 655 support by the i2c-sis645 driver.

It simply modifies the driver to also accept the SiS 655 as a valid host bridge.

Partially tested on a Gigabyte GA-SINXP1394 (SiS655/963), no problems so far. Driver successfully enables the SMBus controller, i2cdetect finds the usual devices, and i2cdump successfully reads the DIMM SPD eeprom's.

The patch is against the lm_sensors-2.8.5 release.

--
Ken Healy
--

-------------- next part --------------

i2c-sis645.c renamed from i2c-sis645.c.orig +15 -0
diff -urN i2c-sis645.c.orig i2c-sis645.c > i2c-sis645.patch
@@ -30,6 +30,14 @@
     http://www2.lm-sensors.nu/~lm78/download.html
 */
 
+/* 25th March 2004
+     Experimental support for Sis655 chipsets added by Ken Healy
+     <[email protected]> | tr -d .@ | tr r @ | tr m .
+
+     Works on Gigabyte GA-SINXP1394 motherboard. Not fully tested, but
+     no problems so far.
+*/
+
 /*
     Note: we assume there can only be one SiS645 with one SMBus interface
 */
@@ -71,6 +79,11 @@
 #define PCI_DEVICE_ID_SI_651 0x0651
 #endif
 
+/* SiS655 north bridge (defined in 2.4.22)*/
+#ifndef PCI_DEVICE_ID_SI_655
+#define PCI_DEVICE_ID_SI_655 0x0655
+#endif
+
 /* SiS746 north bridge (defined in 2.4.21) */
 #ifndef PCI_DEVICE_ID_SI_746
 #define PCI_DEVICE_ID_SI_746 0x0746
@@ -261,6 +274,8 @@
 			&& (NULL = pci_find_device(PCI_VENDOR_ID_SI,
 				PCI_DEVICE_ID_SI_651, NULL))
 			&& (NULL = pci_find_device(PCI_VENDOR_ID_SI,
+				PCI_DEVICE_ID_SI_655, NULL))
+			&& (NULL = pci_find_device(PCI_VENDOR_ID_SI,
 				PCI_DEVICE_ID_SI_735, NULL))
 			&& (NULL = pci_find_device(PCI_VENDOR_ID_SI,
 				PCI_DEVICE_ID_SI_745, NULL))
#1 lore raw
Quoted 4 lines
Quoted 4 lines

This patch experimentally enables SiS 655 support by the i2c-sis645 driver.
(...)
The patch is against the lm_sensors-2.8.5 release.

A similar patch against Linux 2.6.5-mm1 would be appreciated.

Thanks.

Signature · 2 lines
Jean Delvare
http://www.ensicaen.ismra.fr/~delvare/
#2 lore raw
In reply to Kenneth Bernard Healy

applied
thanks

Quoted 58 lines · Kenneth Bernard Healy

This patch experimentally enables SiS 655 support by the i2c-sis645 driver.

It simply modifies the driver to also accept the SiS 655 as a valid host bridge.

Partially tested on a Gigabyte GA-SINXP1394 (SiS655/963), no problems so far. Driver successfully enables the SMBus controller, i2cdetect finds the usual devices, and i2cdump successfully reads the DIMM SPD eeprom's.

The patch is against the lm_sensors-2.8.5 release.

--
Ken Healy
--

------------------------------------------------------------------------

diff -urN i2c-sis645.c.orig i2c-sis645.c > i2c-sis645.patch

i2c-sis645.c renamed from i2c-sis645.c.orig +15 -0
@@ -30,6 +30,14 @@
     http://www2.lm-sensors.nu/~lm78/download.html
 */
 
+/* 25th March 2004
+     Experimental support for Sis655 chipsets added by Ken Healy
+     <[email protected]> | tr -d .@ | tr r @ | tr m .
+
+     Works on Gigabyte GA-SINXP1394 motherboard. Not fully tested, but
+     no problems so far.
+*/
+
 /*
     Note: we assume there can only be one SiS645 with one SMBus interface
 */
@@ -71,6 +79,11 @@
 #define PCI_DEVICE_ID_SI_651 0x0651
 #endif
 
+/* SiS655 north bridge (defined in 2.4.22)*/
+#ifndef PCI_DEVICE_ID_SI_655
+#define PCI_DEVICE_ID_SI_655 0x0655
+#endif
+
 /* SiS746 north bridge (defined in 2.4.21) */
 #ifndef PCI_DEVICE_ID_SI_746
 #define PCI_DEVICE_ID_SI_746 0x0746
@@ -261,6 +274,8 @@
 			&& (NULL = pci_find_device(PCI_VENDOR_ID_SI,
 				PCI_DEVICE_ID_SI_651, NULL))
 			&& (NULL = pci_find_device(PCI_VENDOR_ID_SI,
+				PCI_DEVICE_ID_SI_655, NULL))
+			&& (NULL = pci_find_device(PCI_VENDOR_ID_SI,
 				PCI_DEVICE_ID_SI_735, NULL))
 			&& (NULL = pci_find_device(PCI_VENDOR_ID_SI,
 				PCI_DEVICE_ID_SI_745, NULL))
#3 lore raw
In reply to Kenneth Bernard Healy

Hi Ken, Mark...

Quoted 2 lines · Mark D. Studebaker

the i2c-sis96x driver doesn't have a list of PCI ID's so a 'similar patch' isn't possible. MMH does anything need to change in 2.6 for this new chip?

Nope, it should work fine as it is. The 2.6 kernel checks for any SiS PCI id madness at boot time and fixes it (long before the i2c-sis96x driver inits).

However, sensors-detect needs the patch which I just committed. Ken, could you please test that?

Thanks and regards,

Signature · 2 lines
Mark M. Hoffman
[email protected]
#4 lore raw
In reply to Kenneth Bernard Healy
Quoted 6 lines · * s98028405 <[email protected]> [2004-04-07 12:54:28 +0100]:

Hi Mark,

Will do.

It may be a few days though - I'll have to setup a 2.6 kernel (still with 2.4 at the moment).

Oops, I wasn't clear... the sensors-detect patch is needed even for a 2.4 kernel. But of course I would appreciate if you test w/ a 2.6 kernel as well.

Quoted 1 line

I'll send the results when I get them.

Thanks!

Quoted 14 lines

Regards,
Ken.

Quoted 11 lines

=== Original Message From "Mark M. Hoffman" <[email protected]> ==> >Hi Ken, Mark...

Quoted 2 lines · Mark D. Studebaker

the i2c-sis96x driver doesn't have a list of PCI ID's so a 'similar patch' isn't possible. MMH does anything need to change in 2.6 for this new chip?

Nope, it should work fine as it is. The 2.6 kernel checks for any SiS PCI id madness at boot time and fixes it (long before the i2c-sis96x driver inits).

However, sensors-detect needs the patch which I just committed. Ken, could you please test that?

Regards,

Signature · 2 lines
Mark M. Hoffman
[email protected]
#5 lore raw
In reply to Kenneth Bernard Healy

the i2c-sis96x driver doesn't have a list of PCI ID's so a 'similar patch' isn't possible. MMH does anything need to change in 2.6 for this new chip?

Quoted 10 lines · Jean Delvare
Quoted 4 lines
Quoted 4 lines

This patch experimentally enables SiS 655 support by the i2c-sis645 driver.
(...)
The patch is against the lm_sensors-2.8.5 release.

A similar patch against Linux 2.6.5-mm1 would be appreciated.

Thanks.

#6 lore raw
In reply to Kenneth Bernard Healy

Hi Mark,

Will do.

It may be a few days though - I'll have to setup a 2.6 kernel (still with 2.4 at the moment).

I'll send the results when I get them.

Regards,
Ken.

Quoted 17 lines

=== Original Message From "Mark M. Hoffman" <[email protected]> ==>Hi Ken, Mark...

Quoted 2 lines · Mark D. Studebaker

the i2c-sis96x driver doesn't have a list of PCI ID's so a 'similar patch' isn't possible. MMH does anything need to change in 2.6 for this new chip?

Nope, it should work fine as it is. The 2.6 kernel checks for any SiS PCI id madness at boot time and fixes it (long before the i2c-sis96x driver inits).

However, sensors-detect needs the patch which I just committed. Ken, could you please test that?

Thanks and regards,

--
Mark M. Hoffman
[email protected]