Question about address 0x69
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
i have a small question about smbus block read/write because i start to write a utility to set the FSB. I have an ASUS TUSL2-C with an ICS94201 I?C and a ASUS A7V Mainboard. For both Mainboards the Clock Chip Generator is at address 0x69, but if i use i2cdump 0 0x69 s to read data from an error occurs.
Feb 19 23:50:48 homer kernel: i2c-dev.o: opened i2c-1 Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x705, arg: bffff618. Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x706, arg: 69. Feb 19 23:50:53 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x720, arg: bffff720. Feb 19 23:50:53 homer kernel: i2c-i801.o: Block (pre 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-i801.o: SMBus Timeout! Feb 19 23:50:54 homer kernel: i2c-i801.o: Error: no response! Feb 19 23:50:54 homer kernel: i2c-i801.o: Block (post 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-dev.o: Closed: i2c-1
Thats the debug output from kernel log. It comes on both mainboards with different chipsets, does anyone knows this problem? The BUS is not busy or such things, also after coldstart of both systems it does not work. Don't know exactly if this is a bug in the i2c code. :)
- --
Best regards
Maik Broemme
UNIX/Linux Developer
WOLK Kernel Developer - http://wolk.sourceforge.net/
TuxBox Developer - http://tuxbox.berlios.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+VAtUj7mZcU7rMfERArQfAKDCAl0AvUXFBcaQzHz4qAjN/y7qpACdFLTM 07+fZhhyvEWSAXkBQYJwn2k=Q7sN
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
thanks for the tips but if i try it with i2c block read (i2cdump 1 0x69 i) i get an error "Adapter for i2c bus 1 does not have i2c block read capability" The device is registered as
i2c-1 smbus SMBus I801 adapter at e800 Non-I2C SMBus adapter
- --
Best regards
Maik Broemme
UNIX/Linux Developer
WOLK Kernel Developer - http://wolk.sourceforge.net/
TuxBox Developer - http://tuxbox.berlios.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+VKU2j7mZcU7rMfERAsPmAJ9Udkaw89olNVilYjtNRo1N+EZYzwCePjy8 Vcg3/3Lug8VWsuCbLjs475c=ZJwy
-----END PGP SIGNATURE-----
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi,
than is there any way to do this with smbus block read?
- --
Best regards
Maik Broemme
UNIX/Linux Developer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+VQ6jj7mZcU7rMfERAk0OAKDT1+0zbKZjKjb1PYO28rl6DpZFcQCgo73c UAqEy6gPBSP4UyJ87B1OPFg=nEL9
-----END PGP SIGNATURE-----
many clock chips are write-only. See your datasheet to verify.
Quoted 34 lines · Maik Broemme
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
i have a small question about smbus block read/write because i start to write a utility to set the FSB. I have an ASUS TUSL2-C with an ICS94201 I?C and a ASUS A7V Mainboard. For both Mainboards the Clock Chip Generator is at address
0x69, but if i use i2cdump 00x69s to read data from an error occurs.Feb 19 23:50:48 homer kernel: i2c-dev.o: opened i2c-1 Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x705, arg: bffff618. Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x706, arg: 69. Feb 19 23:50:53 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x720, arg: bffff720. Feb 19 23:50:53 homer kernel: i2c-i801.o: Block (pre 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-i801.o: SMBus Timeout! Feb 19 23:50:54 homer kernel: i2c-i801.o: Error: no response! Feb 19 23:50:54 homer kernel: i2c-i801.o: Block (post 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-dev.o: Closed: i2c-1Thats the debug output from kernel log. It comes on both mainboards with different chipsets, does anyone knows this problem? The BUS is not busy or such things, also after coldstart of both systems it does not work. Don't know exactly if this is a bug in the i2c code. :)
- --
Best regardsMaik Broemme
UNIX/Linux DeveloperWOLK Kernel Developer - http://wolk.sourceforge.net/
TuxBox Developer - http://tuxbox.berlios.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)iD8DBQE+VAtUj7mZcU7rMfERArQfAKDCAl0AvUXFBcaQzHz4qAjN/y7qpACdFLTM 07+fZhhyvEWSAXkBQYJwn2k> =Q7sN
-----END PGP SIGNATURE-----
Yes, I'm very familiar with that. It's an I2C chip which is on an SMBus. The two are somewhat compatible, but not completely. The I2C chip in this case is locking up and taking over the bus and not letting go because it thinks the transaction is still pending (ironicly, the clock chip has no time out). The only way to make it stop is to power it down and back up (complete system power down). If you stick with using SMBus commands which are compatible with this chip, you should be OK. But, using commands like a byte-read when the chip expects a word-read (this is a hypothetical example and may not hold true) could cause bad things like this to happen.
Phil
Quoted 36 lines · Maik Broemme
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
i have a small question about smbus block read/write because i start to write a utility to set the FSB. I have an ASUS TUSL2-C with an ICS94201 I?C and a ASUS A7V Mainboard. For both Mainboards the Clock Chip Generator is at address
0x69, but if i use i2cdump 00x69s to read data from an error occurs.Feb 19 23:50:48 homer kernel: i2c-dev.o: opened i2c-1 Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x705, arg: bffff618. Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x706, arg: 69. Feb 19 23:50:53 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x720, arg: bffff720. Feb 19 23:50:53 homer kernel: i2c-i801.o: Block (pre 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-i801.o: SMBus Timeout! Feb 19 23:50:54 homer kernel: i2c-i801.o: Error: no response! Feb 19 23:50:54 homer kernel: i2c-i801.o: Block (post 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-dev.o: Closed: i2c-1Thats the debug output from kernel log. It comes on both mainboards with different chipsets, does anyone knows this problem? The BUS is not busy or such things, also after coldstart of both systems it does not work. Don't know exactly if this is a bug in the i2c code. :)
- --
Best regardsMaik Broemme
UNIX/Linux DeveloperWOLK Kernel Developer - http://wolk.sourceforge.net/
TuxBox Developer - http://tuxbox.berlios.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)iD8DBQE+VAtUj7mZcU7rMfERArQfAKDCAl0AvUXFBcaQzHz4qAjN/y7qpACdFLTM 07+fZhhyvEWSAXkBQYJwn2k>=Q7sN
-----END PGP SIGNATURE-----
right you are Phil.
You want to use i2c block read, not smbus block read. Support for i2c block read was added in the last year or so but it is lightly tested.
Very few bus drivers support i2c block but i2c-i801 does. Don't know if anyone has ever tried it through i2c-dev, though.
Try changing your ioctl to use i2c block.
Also try i2cdump which does support i2c block (i2cdump 0x69 i)
Quoted 52 lines · Philip Edelbrock
Yes, I'm very familiar with that. It's an I2C chip which is on an SMBus. The two are somewhat compatible, but not completely. The I2C chip in this case is locking up and taking over the bus and not letting go because it thinks the transaction is still pending (ironicly, the clock chip has no time out). The only way to make it stop is to power it down and back up (complete system power down). If you stick with using SMBus commands which are compatible with this chip, you should be OK. But, using commands like a byte-read when the chip expects a word-read (this is a hypothetical example and may not hold true) could cause bad things like this to happen.
Phil
Quoted 36 lines · Maik Broemme
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
i have a small question about smbus block read/write because i start to write a utility to set the FSB. I have an ASUS TUSL2-C with an ICS94201 I?C and a ASUS A7V Mainboard. For both Mainboards the Clock Chip Generator is at address
0x69, but if i use i2cdump 00x69s to read data from an error occurs.Feb 19 23:50:48 homer kernel: i2c-dev.o: opened i2c-1 Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x705, arg: bffff618. Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x706, arg: 69. Feb 19 23:50:53 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x720, arg: bffff720. Feb 19 23:50:53 homer kernel: i2c-i801.o: Block (pre 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-i801.o: SMBus Timeout! Feb 19 23:50:54 homer kernel: i2c-i801.o: Error: no response! Feb 19 23:50:54 homer kernel: i2c-i801.o: Block (post 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-dev.o: Closed: i2c-1Thats the debug output from kernel log. It comes on both mainboards with different chipsets, does anyone knows this problem? The BUS is not busy or such things, also after coldstart of both systems it does not work. Don't know exactly if this is a bug in the i2c code. :)
- --
Best regardsMaik Broemme
UNIX/Linux DeveloperWOLK Kernel Developer - http://wolk.sourceforge.net/
TuxBox Developer - http://tuxbox.berlios.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)iD8DBQE+VAtUj7mZcU7rMfERArQfAKDCAl0AvUXFBcaQzHz4qAjN/y7qpACdFLTM 07+fZhhyvEWSAXkBQYJwn2k> >=Q7sN
-----END PGP SIGNATURE-----
correction "i2cdump 1 0x69 i"
Quoted 65 lines · Mark D. Studebaker
right you are Phil.
You want to use i2c block read, not smbus block read. Support for i2c block read was added in the last year or so but it is lightly tested.
Very few bus drivers support i2c block but i2c-i801 does. Don't know if anyone has ever tried it through i2c-dev, though.Try changing your ioctl to use i2c block.
Also try i2cdump which does support i2c block (i2cdump0x69i)Quoted 52 lines · Philip Edelbrock
Yes, I'm very familiar with that. It's an I2C chip which is on an SMBus. The two are somewhat compatible, but not completely. The I2C chip in this case is locking up and taking over the bus and not letting go because it thinks the transaction is still pending (ironicly, the clock chip has no time out). The only way to make it stop is to power it down and back up (complete system power down). If you stick with using SMBus commands which are compatible with this chip, you should be OK. But, using commands like a byte-read when the chip expects a word-read (this is a hypothetical example and may not hold true) could cause bad things like this to happen.
Phil
Quoted 36 lines · Maik Broemme
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
i have a small question about smbus block read/write because i start to write a utility to set the FSB. I have an ASUS TUSL2-C with an ICS94201 I?C and a ASUS A7V Mainboard. For both Mainboards the Clock Chip Generator is at address
0x69, but if i use i2cdump 00x69s to read data from an error occurs.Feb 19 23:50:48 homer kernel: i2c-dev.o: opened i2c-1 Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x705, arg: bffff618. Feb 19 23:50:48 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x706, arg: 69. Feb 19 23:50:53 homer kernel: i2c-dev.o: i2c-1 ioctl, cmd: 0x720, arg: bffff720. Feb 19 23:50:53 homer kernel: i2c-i801.o: Block (pre 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-i801.o: SMBus Timeout! Feb 19 23:50:54 homer kernel: i2c-i801.o: Error: no response! Feb 19 23:50:54 homer kernel: i2c-i801.o: Block (post 1): CNT, CMD , ADDÓ, DAT0q, BLKDAT Feb 19 23:50:54 homer kernel: i2c-dev.o: Closed: i2c-1Thats the debug output from kernel log. It comes on both mainboards with different chipsets, does anyone knows this problem? The BUS is not busy or such things, also after coldstart of both systems it does not work. Don't know exactly if this is a bug in the i2c code. :)
- --
Best regardsMaik Broemme
UNIX/Linux DeveloperWOLK Kernel Developer - http://wolk.sourceforge.net/
TuxBox Developer - http://tuxbox.berlios.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)iD8DBQE+VAtUj7mZcU7rMfERArQfAKDCAl0AvUXFBcaQzHz4qAjN/y7qpACdFLTM 07+fZhhyvEWSAXkBQYJwn2k> > >=Q7sN
-----END PGP SIGNATURE-----
whoops, sorry about that, i2c-i801 only supports i2c block writes, not i2c block reads. looks like you are out of luck.
Quoted 24 lines · Maik Broemme
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
thanks for the tips but if i try it with i2c block read (i2cdump 1
0x69i) i get an error "Adapter for i2c bus 1 does not have i2c block read capability" The device is registered asi2c-1 smbus SMBus I801 adapter at e800 Non-I2C SMBus adapter
- --
Best regardsMaik Broemme
UNIX/Linux DeveloperWOLK Kernel Developer - http://wolk.sourceforge.net/
TuxBox Developer - http://tuxbox.berlios.de/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)iD8DBQE+VKU2j7mZcU7rMfERAsPmAJ9Udkaw89olNVilYjtNRo1N+EZYzwCePjy8 Vcg3/3Lug8VWsuCbLjs475c> =ZJwy
-----END PGP SIGNATURE-----
no
smbus block includes a count byte, i2c doesn't
see doc/smbus-protocol in i2c for details
Quoted 19 lines · Maik Broemme
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1Hi,
than is there any way to do this with smbus block read?
- --
Best regardsMaik Broemme
UNIX/Linux Developer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)iD8DBQE+VQ6jj7mZcU7rMfERAk0OAKDT1+0zbKZjKjb1PYO28rl6DpZFcQCgo73c UAqEy6gPBSP4UyJ87B1OPFg> =nEL9
-----END PGP SIGNATURE-----