i2c-piix4 fix undo
Hi Greg,
A few months ago, we added a workaround to i2c-piix4 to help it to work on a few boards. The fix was ported to 2.6, the patch is here:
http://linuxusb.bkbits.net:8080/i2c-2.6/[email protected]
It since turned out that it also breaks the module for other boards, and it even breaks more than it fixes (4 reports since lm_sensors-2.8.1 was released). The problem is under investigation by Tom Rini, the author of the original fix.
I suggest that you reverse the fix in Linux 2.6 before 2.6.0 is released. Once we have enough information to submit a better one (could take some time), I'll send a new patch to you.
Thanks.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/
Quoted 6 lines · Jean Delvare
Hi Greg,
A few months ago, we added a workaround to i2c-piix4 to help it to work on a few boards. The fix was ported to 2.6, the patch is here:
http://linuxusb.bkbits.net:8080/i2c-2.6/[email protected]
Quoted 8 lines
It since turned out that it also breaks the module for other boards, and it even breaks more than it fixes (4 reports since lm_sensors-2.8.1 was released). The problem is under investigation by Tom Rini, the author of the original fix.
I suggest that you reverse the fix in Linux 2.6 before 2.6.0 is released. Once we have enough information to submit a better one (could take some time), I'll send a new patch to you.
Thanks, I've backed this patch out and will send it off to Linus.
greg k-h
Quoted 12 lines · Greg KH
Quoted 11 lines · Jean Delvare
Hi Greg,
A few months ago, we added a workaround to i2c-piix4 to help it to work on a few boards. The fix was ported to 2.6, the patch is here:
http://linuxusb.bkbits.net:8080/i2c-2.6/[email protected]It since turned out that it also breaks the module for other boards, and it even breaks more than it fixes (4 reports since lm_sensors-2.8.1 was released). The problem is under investigation by Tom Rini, the author of the original fix.
Quoted 5 lines
Quoted 3 lines
I suggest that you reverse the fix in Linux 2.6 before 2.6.0 is released. Once we have enough information to submit a better one (could take some time), I'll send a new patch to you.
Thanks, I've backed this patch out and will send it off to Linus.
If it's not too late, how about doing the current work-around (module param to enable the fix) instead?
Signature · 9 lines
Tom Rini http://gate.crashing.org/~trini/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031218/100610c6/attachment.bin
Quoted 13 lines · Tom Rini
Quoted 12 lines · Greg KH
Quoted 11 lines · Jean Delvare
Hi Greg,
A few months ago, we added a workaround to i2c-piix4 to help it to work on a few boards. The fix was ported to 2.6, the patch is here:
http://linuxusb.bkbits.net:8080/i2c-2.6/[email protected]It since turned out that it also breaks the module for other boards, and it even breaks more than it fixes (4 reports since lm_sensors-2.8.1 was released). The problem is under investigation by Tom Rini, the author of the original fix.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
I suggest that you reverse the fix in Linux 2.6 before 2.6.0 is released. Once we have enough information to submit a better one (could take some time), I'll send a new patch to you.
Thanks, I've backed this patch out and will send it off to Linus.
If it's not too late, how about doing the current work-around (module param to enable the fix) instead?
Sure, got patch? :)
thanks,
greg k-h
Quoted 18 lines · Greg KH
Quoted 17 lines · Tom Rini
Quoted 16 lines · Greg KH
Quoted 14 lines · Jean Delvare
Hi Greg,
A few months ago, we added a workaround to i2c-piix4 to help it to work on a few boards. The fix was ported to 2.6, the patch is here:
http://linuxusb.bkbits.net:8080/i2c-2.6/[email protected]It since turned out that it also breaks the module for other boards, and it even breaks more than it fixes (4 reports since lm_sensors-2.8.1 was released). The problem is under investigation by Tom Rini, the author of the original fix.
I suggest that you reverse the fix in Linux 2.6 before 2.6.0 is released. Once we have enough information to submit a better one (could take some time), I'll send a new patch to you.
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Thanks, I've backed this patch out and will send it off to Linus.
If it's not too late, how about doing the current work-around (module param to enable the fix) instead?
Sure, got patch? :)
Here you go:
=== drivers/i2c/busses/i2c-piix4.c 1.19 vs edited ==--- 1.19/drivers/i2c/busses/i2c-piix4.c Mon Sep 22 09:02:10 2003
+++ edited/drivers/i2c/busses/i2c-piix4.c Fri Dec 19 09:40:03 2003
@@ -99,6 +99,13 @@
"Forcibly enable the PIIX4 at the given address. " "EXTREMELY DANGEROUS!");
+/* If fix_hstcfg is set to anything different from 0, we reset one of the
+ registers to be a valid value. */
+static int fix_hstcfg = 0;
+MODULE_PARM(fix_hstcfg, "i");
+MODULE_PARM_DESC(fix_hstcfg,
+ "Fix config register. Needed on some boards (Force CPCI735).");
+
static int piix4_transaction(void);
@@ -164,9 +171,17 @@
/* Some BIOS will set up the chipset incorrectly and leave a register
in an undefined state (causing I2C to act very strangely). */
if (temp & 0x02) {
- dev_info(&PIIX4_dev->dev, "Worked around buggy BIOS (I2C)\n");
- temp = temp & 0xfd;
- pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp);
+ if (fix_hstcfg) {
+ dev_info(&PIIX4_dev->dev, "Working around buggy BIOS "
+ "(I2C)\n");
+ temp &= 0xfd;
+ pci_write_config_byte(PIIX4_dev, SMBHSTCFG, temp);
+ } else {
+ dev_info(&PIIX4_dev->dev, "Unusual config register "
+ "value\n");
+ dev_info(&PIIX4_dev->dev, "Try using fix_hstcfg=1 if "
+ "you experience problems\n");
+ }
}
/* If force_addr is set, we program the new address here. Just to make
Signature · 9 lines
Tom Rini http://gate.crashing.org/~trini/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.lm-sensors.org/pipermail/lm-sensors/attachments/20031219/4a2e5ede/attachment.bin
Quoted 19 lines · Tom Rini
Quoted 18 lines · Greg KH
Quoted 17 lines · Tom Rini
Quoted 16 lines · Greg KH
Quoted 14 lines · Jean Delvare
Hi Greg,
A few months ago, we added a workaround to i2c-piix4 to help it to work on a few boards. The fix was ported to 2.6, the patch is here:
http://linuxusb.bkbits.net:8080/i2c-2.6/[email protected]It since turned out that it also breaks the module for other boards, and it even breaks more than it fixes (4 reports since lm_sensors-2.8.1 was released). The problem is under investigation by Tom Rini, the author of the original fix.
I suggest that you reverse the fix in Linux 2.6 before 2.6.0 is released. Once we have enough information to submit a better one (could take some time), I'll send a new patch to you.
Quoted 8 lines
Quoted 6 lines
Quoted 4 lines
Quoted 1 line
Thanks, I've backed this patch out and will send it off to Linus.
If it's not too late, how about doing the current work-around (module param to enable the fix) instead?
Sure, got patch? :)
Here you go:
Thanks, I've applied this version instead.
greg k-h
Quoted 14 lines · Jean Delvare
Quoted 4 lines
Quoted 1 line
Sure, got patch? :)
Here you go:
(...)Checked to apply cleanly against linux-2.6.0. Added to my collection as linux-2.6.0-i2c-piix4-hstcfg.diff.
BTW, I removed linux-2.6.0-test11-i2c-nforce2.diff from my collection now that it made it into linux-2.6.0.
Greg, I have a patch pending that you might not be aware of. Although it touches a driver outside of the i2c subsystem, it is related to i2c:
Quoted 8 lines
http://delvare.nerim.net/i2c/linux-2.6/linux-2.6.0-test9-pcmcia-sa1100-noi2c.diff
It simply prevents the sa1100 PCMCIA driver from including the
i2c.hheader file while not making any use of it. This change was part of the recent wave of patches I sent to Marcelo. Since he accepted it, it seems logical to update the 2.6 driver in the same way.Could you please have this patch applied to the 2.6 kernel tree?
Thanks, I've made this change to the 2.6 tree of patches to send off.
greg k-h
Quoted 4 lines
Quoted 1 line
Sure, got patch? :)
Here you go:
(...)
Checked to apply cleanly against linux-2.6.0. Added to my collection as linux-2.6.0-i2c-piix4-hstcfg.diff.
BTW, I removed linux-2.6.0-test11-i2c-nforce2.diff from my collection now that it made it into linux-2.6.0.
Greg, I have a patch pending that you might not be aware of. Although it touches a driver outside of the i2c subsystem, it is related to i2c:
http://delvare.nerim.net/i2c/linux-2.6/linux-2.6.0-test9-pcmcia-sa1100-noi2c.diff
It simply prevents the sa1100 PCMCIA driver from including the i2c.h header file while not making any use of it. This change was part of the recent wave of patches I sent to Marcelo. Since he accepted it, it seems logical to update the 2.6 driver in the same way.
Could you please have this patch applied to the 2.6 kernel tree? Thanks.
Signature · 2 lines
Jean Delvare http://www.ensicaen.ismra.fr/~delvare/