i2c-piix4 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. Kernel driver i2c-piix4
  2. Supported adapters:
  3. * Intel 82371AB PIIX4 and PIIX4E
  4. * Intel 82443MX (440MX)
  5. Datasheet: Publicly available at the Intel website
  6. * ServerWorks OSB4, CSB5, CSB6, HT-1000 and HT-1100 southbridges
  7. Datasheet: Only available via NDA from ServerWorks
  8. * ATI IXP200, IXP300, IXP400, SB600, SB700 and SB800 southbridges
  9. Datasheet: Not publicly available
  10. * AMD Hudson-2, CZ
  11. Datasheet: Not publicly available
  12. * Standard Microsystems (SMSC) SLC90E66 (Victory66) southbridge
  13. Datasheet: Publicly available at the SMSC website http://www.smsc.com
  14. Authors:
  15. Frodo Looijaard <frodol@dds.nl>
  16. Philip Edelbrock <phil@netroedge.com>
  17. Module Parameters
  18. -----------------
  19. * force: int
  20. Forcibly enable the PIIX4. DANGEROUS!
  21. * force_addr: int
  22. Forcibly enable the PIIX4 at the given address. EXTREMELY DANGEROUS!
  23. Description
  24. -----------
  25. The PIIX4 (properly known as the 82371AB) is an Intel chip with a lot of
  26. functionality. Among other things, it implements the PCI bus. One of its
  27. minor functions is implementing a System Management Bus. This is a true
  28. SMBus - you can not access it on I2C levels. The good news is that it
  29. natively understands SMBus commands and you do not have to worry about
  30. timing problems. The bad news is that non-SMBus devices connected to it can
  31. confuse it mightily. Yes, this is known to happen...
  32. Do 'lspci -v' and see whether it contains an entry like this:
  33. 0000:00:02.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 02)
  34. Flags: medium devsel, IRQ 9
  35. Bus and device numbers may differ, but the function number must be
  36. identical (like many PCI devices, the PIIX4 incorporates a number of
  37. different 'functions', which can be considered as separate devices). If you
  38. find such an entry, you have a PIIX4 SMBus controller.
  39. On some computers (most notably, some Dells), the SMBus is disabled by
  40. default. If you use the insmod parameter 'force=1', the kernel module will
  41. try to enable it. THIS IS VERY DANGEROUS! If the BIOS did not set up a
  42. correct address for this module, you could get in big trouble (read:
  43. crashes, data corruption, etc.). Try this only as a last resort (try BIOS
  44. updates first, for example), and backup first! An even more dangerous
  45. option is 'force_addr=<IOPORT>'. This will not only enable the PIIX4 like
  46. 'force' foes, but it will also set a new base I/O port address. The SMBus
  47. parts of the PIIX4 needs a range of 8 of these addresses to function
  48. correctly. If these addresses are already reserved by some other device,
  49. you will get into big trouble! DON'T USE THIS IF YOU ARE NOT VERY SURE
  50. ABOUT WHAT YOU ARE DOING!
  51. The PIIX4E is just an new version of the PIIX4; it is supported as well.
  52. The PIIX/PIIX3 does not implement an SMBus or I2C bus, so you can't use
  53. this driver on those mainboards.
  54. The ServerWorks Southbridges, the Intel 440MX, and the Victory66 are
  55. identical to the PIIX4 in I2C/SMBus support.
  56. If you own Force CPCI735 motherboard or other OSB4 based systems you may need
  57. to change the SMBus Interrupt Select register so the SMBus controller uses
  58. the SMI mode.
  59. 1) Use lspci command and locate the PCI device with the SMBus controller:
  60. 00:0f.0 ISA bridge: ServerWorks OSB4 South Bridge (rev 4f)
  61. The line may vary for different chipsets. Please consult the driver source
  62. for all possible PCI ids (and lspci -n to match them). Lets assume the
  63. device is located at 00:0f.0.
  64. 2) Now you just need to change the value in 0xD2 register. Get it first with
  65. command: lspci -xxx -s 00:0f.0
  66. If the value is 0x3 then you need to change it to 0x1
  67. setpci -s 00:0f.0 d2.b=1
  68. Please note that you don't need to do that in all cases, just when the SMBus is
  69. not working properly.
  70. Hardware-specific issues
  71. ------------------------
  72. This driver will refuse to load on IBM systems with an Intel PIIX4 SMBus.
  73. Some of these machines have an RFID EEPROM (24RF08) connected to the SMBus,
  74. which can easily get corrupted due to a state machine bug. These are mostly
  75. Thinkpad laptops, but desktop systems may also be affected. We have no list
  76. of all affected systems, so the only safe solution was to prevent access to
  77. the SMBus on all IBM systems (detected using DMI data.)
  78. For additional information, read:
  79. http://www.lm-sensors.org/browser/lm-sensors/trunk/README