Skip to contentSkip to conversation

ESB2 SMBUS - validation request

PATCH Rudolf Marek 2 participants 4 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

Hello,

I noticed that you added ESB2 support to i2c-i801.c Thats OK for 2.6 kernels however for 2.4.x series it is needed too. (lm_sensors lives outside 2.4 tree and its homepage is at http://www.lm-sensors.nu)

I created neccessary patch that adds support to 2.4.x i2c-i801.c and to our sensors-detect script, but I need to confirm that:

1) the SMBUS host supports PEC
2) the PCI "function" is 3
3) it is OK to call it "Intel Enterprise Southbridge - ESB2"

I failed to find datasheet for it so any point to it for future reference would be perfect. (Or just state it is same as in 6300ESB)

What is left is documentattion update in doc/ directory.
I will also update 2.6.12-rc4/Documentation/i2c/busses/i2c-i801 file.

Regards

Rudolf

FIY: here is what files were modified and how.

kernel/busses/i2c-i801.c +13 -0
@@ -31,6 +31,7 @@
     6300ESB		25A4   ("")
     ICH6		266A   ("")
     ICH7		27DA   ("")
+    ESB2 		269B   ("")
     This driver supports several versions of Intel's I/O Controller Hubs (ICH).
     For SMBus support, they are similar to the PIIX4 and are part
     of Intel's '810' and other chipsets.
@@ -75,6 +76,11 @@
 #define PCI_DEVICE_ID_INTEL_ESB_4	0x25a4
 #endif
 
+/* ESB2 - Enterprise Southbridge is undefined */
+#ifndef PCI_DEVICE_ID_INTEL_ESB2_17
+#define PCI_DEVICE_ID_INTEL_ESB2_17 	0x269b
+#endif
+
 /* ICH6 is undefined */
 #ifndef PCI_DEVICE_ID_INTEL_ICH6_16
 #define PCI_DEVICE_ID_INTEL_ICH6_16	0x266a
@@ -160,6 +166,7 @@
 	if (dev->device = PCI_DEVICE_ID_INTEL_82801DB_3 ||
 	    dev->device = PCI_DEVICE_ID_INTEL_82801EB_3 ||
 	    dev->device = PCI_DEVICE_ID_INTEL_ESB_4 ||
+	    dev->device = PCI_DEVICE_ID_INTEL_ESB2_17 ||	
 	    dev->device = PCI_DEVICE_ID_INTEL_ICH6_16 ||
 	    dev->device = PCI_DEVICE_ID_INTEL_ICH7_17)
 		isich4 = 1;
@@ -658,6 +665,12 @@
 	},
 	{
 		.vendor =	PCI_VENDOR_ID_INTEL,
+		.device =	PCI_DEVICE_ID_INTEL_ESB2_17,
+		.subvendor =	PCI_ANY_ID,
+		.subdevice = 	PCI_ANY_ID,
+	},
+	{
+		.vendor =	PCI_VENDOR_ID_INTEL,
 		.device =	PCI_DEVICE_ID_INTEL_ICH6_16,
 		.subvendor =	PCI_ANY_ID,
 		.subdevice =	PCI_ANY_ID,
prog/detect/sensors-detect +8 -0
@@ -132,6 +132,14 @@
      } ,
      {
        vendid => 0x8086,
+       devid  => 0x269B,
+       func => 3,
+       procid => "Intel Enterprise Southbridge - ESB2",
+       driver => "i2c-i801",
+       match => sub { $_[0] =~ /^SMBus I801 adapter at [0-9a-f]{4}/ },
+     } ,
+     {
+       vendid => 0x8086,
        devid  => 0x266A,
        func => 3,
        procid => "Intel 82801FB ICH6",
#1 lore raw

Hi Rudolf,

Quoted 6 lines

I noticed that you added ESB2 support to i2c-i801.c Thats OK for 2.6 kernels however for 2.4.x series it is needed too. (lm_sensors lives outside 2.4 tree and its homepage is at http://www.lm-sensors.nu)

I created neccessary patch that adds support to 2.4.x i2c-i801.c and to our sensors-detect script (...)

Thanks for looking into this. I have two minor coding-style comments:

kernel/busses/i2c-i801.c line 81

Quoted 6 lines
kernel/busses/i2c-i801.c +3 -0
(...)
+/* ESB2 - Enterprise Southbridge is undefined */
+#ifndef PCI_DEVICE_ID_INTEL_ESB2_17
+#define PCI_DEVICE_ID_INTEL_ESB2_17 	0x269b

You have an extra space before the tab here.

prog/detect/sensors-detect line 140

Quoted 5 lines
prog/detect/sensors-detect +2 -0
(...)
+       match => sub { $_[0] =~ /^SMBus I801 adapter at [0-9a-f]{4}/ },
+     } ,

No space before comma please (although I know there are a lot in this file...)

Otherwise it looks correct to me, providing Jason confirms your guesses.

Thanks,

Signature · 1 line
Jean Delvare
#2 lore raw
In reply to Rudolf Marek

Hi Rudolf,

Quoted 2 lines

I'm attaching the patch. I can't apply because I forgot my password it seems :( Jean please apply.

Nahh, I won't apply your patches forever. Either find your password back, or ask Phil for a new one.

Signature · 1 line
Jean Delvare
#3 lore raw
In reply to Rudolf Marek

Hi all

Quoted 6 lines

Hello Rudolf,

ESB2 has not been released yet. When it is, it will have a new name. It is not the same as the 6300ESB. At this time, I do not know what it will be called.

Quoted 6 lines

It does support PEC.
The PCI function is 3.
I can not comment on what to call it at this time.

Thanks for adding it to the 2.4 code.

I'm attaching the patch. I can't apply because I forgot my password it seems :( Jean please apply.

Jason could you please let us now about real name when it will be released?

Thanks

regards

Rudolf

doc/busses/i2c-i801 +1 -0
diff -Naur lm_sensors2/doc/busses/i2c-i801 lm_sensors2edit/doc/busses/i2c-i801
@@ -15,6 +15,7 @@
   * Intel 6300ESB
   * Intel 82801FB/FR/FW/FRW (ICH6)
   * Intel ICH7
+  * Intel Enterprise Southbridge - ESB2 (code name)
     Datasheets: Publicly available at the Intel website
 
 Authors: Frodo Looijaard <[email protected]>, Philip Edelbrock
kernel/busses/i2c-i801.c +13 -0
diff -Naur lm_sensors2/kernel/busses/i2c-i801.c lm_sensors2edit/kernel/busses/i2c-i801.c
@@ -31,6 +31,7 @@
     6300ESB		25A4   ("")
     ICH6		266A   ("")
     ICH7		27DA   ("")
+    ESB2 		269B   ("")
     This driver supports several versions of Intel's I/O Controller Hubs (ICH).
     For SMBus support, they are similar to the PIIX4 and are part
     of Intel's '810' and other chipsets.
@@ -75,6 +76,11 @@
 #define PCI_DEVICE_ID_INTEL_ESB_4	0x25a4
 #endif
 
+/* ESB2 - Enterprise Southbridge is undefined */
+#ifndef PCI_DEVICE_ID_INTEL_ESB2_17
+#define PCI_DEVICE_ID_INTEL_ESB2_17	0x269b
+#endif
+
 /* ICH6 is undefined */
 #ifndef PCI_DEVICE_ID_INTEL_ICH6_16
 #define PCI_DEVICE_ID_INTEL_ICH6_16	0x266a
@@ -160,6 +166,7 @@
 	if (dev->device = PCI_DEVICE_ID_INTEL_82801DB_3 ||
 	    dev->device = PCI_DEVICE_ID_INTEL_82801EB_3 ||
 	    dev->device = PCI_DEVICE_ID_INTEL_ESB_4 ||
+	    dev->device = PCI_DEVICE_ID_INTEL_ESB2_17 ||	
 	    dev->device = PCI_DEVICE_ID_INTEL_ICH6_16 ||
 	    dev->device = PCI_DEVICE_ID_INTEL_ICH7_17)
 		isich4 = 1;
@@ -658,6 +665,12 @@
 	},
 	{
 		.vendor =	PCI_VENDOR_ID_INTEL,
+		.device =	PCI_DEVICE_ID_INTEL_ESB2_17,
+		.subvendor =	PCI_ANY_ID,
+		.subdevice = 	PCI_ANY_ID,
+	},
+	{
+		.vendor =	PCI_VENDOR_ID_INTEL,
 		.device =	PCI_DEVICE_ID_INTEL_ICH6_16,
 		.subvendor =	PCI_ANY_ID,
 		.subdevice =	PCI_ANY_ID,
prog/detect/sensors-detect +8 -0
diff -Naur lm_sensors2/prog/detect/sensors-detect lm_sensors2edit/prog/detect/sensors-detect
@@ -132,6 +132,14 @@
      } ,
      {
        vendid => 0x8086,
+       devid  => 0x269B,
+       func => 3,
+       procid => "Intel Enterprise Southbridge - ESB2",
+       driver => "i2c-i801",
+       match => sub { $_[0] =~ /^SMBus I801 adapter at [0-9a-f]{4}/ },
+     },
+     {
+       vendid => 0x8086,
        devid  => 0x266A,
        func => 3,
        procid => "Intel 82801FB ICH6",