3c509.rst 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. .. SPDX-License-Identifier: GPL-2.0
  2. =============================================================================
  3. Linux and the 3Com EtherLink III Series Ethercards (driver v1.18c and higher)
  4. =============================================================================
  5. This file contains the instructions and caveats for v1.18c and higher versions
  6. of the 3c509 driver. You should not use the driver without reading this file.
  7. release 1.0
  8. 28 February 2002
  9. Current maintainer (corrections to):
  10. David Ruggiero <jdr@farfalle.com>
  11. Introduction
  12. ============
  13. The following are notes and information on using the 3Com EtherLink III series
  14. ethercards in Linux. These cards are commonly known by the most widely-used
  15. card's 3Com model number, 3c509. They are all 10mb/s ISA-bus cards and shouldn't
  16. be (but sometimes are) confused with the similarly-numbered PCI-bus "3c905"
  17. (aka "Vortex" or "Boomerang") series. Kernel support for the 3c509 family is
  18. provided by the module 3c509.c, which has code to support all of the following
  19. models:
  20. - 3c509 (original ISA card)
  21. - 3c509B (later revision of the ISA card; supports full-duplex)
  22. - 3c589 (PCMCIA)
  23. - 3c589B (later revision of the 3c589; supports full-duplex)
  24. - 3c579 (EISA)
  25. Large portions of this documentation were heavily borrowed from the guide
  26. written the original author of the 3c509 driver, Donald Becker. The master
  27. copy of that document, which contains notes on older versions of the driver,
  28. currently resides on Scyld web server: http://www.scyld.com/.
  29. Special Driver Features
  30. =======================
  31. Overriding card settings
  32. The driver allows boot- or load-time overriding of the card's detected IOADDR,
  33. IRQ, and transceiver settings, although this capability shouldn't generally be
  34. needed except to enable full-duplex mode (see below). An example of the syntax
  35. for LILO parameters for doing this::
  36. ether=10,0x310,3,0x3c509,eth0
  37. This configures the first found 3c509 card for IRQ 10, base I/O 0x310, and
  38. transceiver type 3 (10base2). The flag "0x3c509" must be set to avoid conflicts
  39. with other card types when overriding the I/O address. When the driver is
  40. loaded as a module, only the IRQ may be overridden. For example,
  41. setting two cards to IRQ10 and IRQ11 is done by using the irq module
  42. option::
  43. options 3c509 irq=10,11
  44. Full-duplex mode
  45. ================
  46. The v1.18c driver added support for the 3c509B's full-duplex capabilities.
  47. In order to enable and successfully use full-duplex mode, three conditions
  48. must be met:
  49. (a) You must have a Etherlink III card model whose hardware supports full-
  50. duplex operations. Currently, the only members of the 3c509 family that are
  51. positively known to support full-duplex are the 3c509B (ISA bus) and 3c589B
  52. (PCMCIA) cards. Cards without the "B" model designation do *not* support
  53. full-duplex mode; these include the original 3c509 (no "B"), the original
  54. 3c589, the 3c529 (MCA bus), and the 3c579 (EISA bus).
  55. (b) You must be using your card's 10baseT transceiver (i.e., the RJ-45
  56. connector), not its AUI (thick-net) or 10base2 (thin-net/coax) interfaces.
  57. AUI and 10base2 network cabling is physically incapable of full-duplex
  58. operation.
  59. (c) Most importantly, your 3c509B must be connected to a link partner that is
  60. itself full-duplex capable. This is almost certainly one of two things: a full-
  61. duplex-capable Ethernet switch (*not* a hub), or a full-duplex-capable NIC on
  62. another system that's connected directly to the 3c509B via a crossover cable.
  63. Full-duplex mode can be enabled using 'ethtool'.
  64. .. warning::
  65. Extremely important caution concerning full-duplex mode
  66. Understand that the 3c509B's hardware's full-duplex support is much more
  67. limited than that provide by more modern network interface cards. Although
  68. at the physical layer of the network it fully supports full-duplex operation,
  69. the card was designed before the current Ethernet auto-negotiation (N-way)
  70. spec was written. This means that the 3c509B family ***cannot and will not
  71. auto-negotiate a full-duplex connection with its link partner under any
  72. circumstances, no matter how it is initialized***. If the full-duplex mode
  73. of the 3c509B is enabled, its link partner will very likely need to be
  74. independently _forced_ into full-duplex mode as well; otherwise various nasty
  75. failures will occur - at the very least, you'll see massive numbers of packet
  76. collisions. This is one of very rare circumstances where disabling auto-
  77. negotiation and forcing the duplex mode of a network interface card or switch
  78. would ever be necessary or desirable.
  79. Available Transceiver Types
  80. ===========================
  81. For versions of the driver v1.18c and above, the available transceiver types are:
  82. == =========================================================================
  83. 0 transceiver type from EEPROM config (normally 10baseT); force half-duplex
  84. 1 AUI (thick-net / DB15 connector)
  85. 2 (undefined)
  86. 3 10base2 (thin-net == coax / BNC connector)
  87. 4 10baseT (RJ-45 connector); force half-duplex mode
  88. 8 transceiver type and duplex mode taken from card's EEPROM config settings
  89. 12 10baseT (RJ-45 connector); force full-duplex mode
  90. == =========================================================================
  91. Prior to driver version 1.18c, only transceiver codes 0-4 were supported. Note
  92. that the new transceiver codes 8 and 12 are the *only* ones that will enable
  93. full-duplex mode, no matter what the card's detected EEPROM settings might be.
  94. This insured that merely upgrading the driver from an earlier version would
  95. never automatically enable full-duplex mode in an existing installation;
  96. it must always be explicitly enabled via one of these code in order to be
  97. activated.
  98. The transceiver type can be changed using 'ethtool'.
  99. Interpretation of error messages and common problems
  100. ----------------------------------------------------
  101. Error Messages
  102. ^^^^^^^^^^^^^^
  103. eth0: Infinite loop in interrupt, status 2011.
  104. These are "mostly harmless" message indicating that the driver had too much
  105. work during that interrupt cycle. With a status of 0x2011 you are receiving
  106. packets faster than they can be removed from the card. This should be rare
  107. or impossible in normal operation. Possible causes of this error report are:
  108. - a "green" mode enabled that slows the processor down when there is no
  109. keyboard activity.
  110. - some other device or device driver hogging the bus or disabling interrupts.
  111. Check /proc/interrupts for excessive interrupt counts. The timer tick
  112. interrupt should always be incrementing faster than the others.
  113. No received packets
  114. ^^^^^^^^^^^^^^^^^^^
  115. If a 3c509, 3c562 or 3c589 can successfully transmit packets, but never
  116. receives packets (as reported by /proc/net/dev or 'ifconfig') you likely
  117. have an interrupt line problem. Check /proc/interrupts to verify that the
  118. card is actually generating interrupts. If the interrupt count is not
  119. increasing you likely have a physical conflict with two devices trying to
  120. use the same ISA IRQ line. The common conflict is with a sound card on IRQ10
  121. or IRQ5, and the easiest solution is to move the 3c509 to a different
  122. interrupt line. If the device is receiving packets but 'ping' doesn't work,
  123. you have a routing problem.
  124. Tx Carrier Errors Reported in /proc/net/dev
  125. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  126. If an EtherLink III appears to transmit packets, but the "Tx carrier errors"
  127. field in /proc/net/dev increments as quickly as the Tx packet count, you
  128. likely have an unterminated network or the incorrect media transceiver selected.
  129. 3c509B card is not detected on machines with an ISA PnP BIOS.
  130. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  131. While the updated driver works with most PnP BIOS programs, it does not work
  132. with all. This can be fixed by disabling PnP support using the 3Com-supplied
  133. setup program.
  134. 3c509 card is not detected on overclocked machines
  135. ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  136. Increase the delay time in id_read_eeprom() from the current value, 500,
  137. to an absurdly high value, such as 5000.
  138. Decoding Status and Error Messages
  139. ----------------------------------
  140. The bits in the main status register are:
  141. ===== ======================================
  142. value description
  143. ===== ======================================
  144. 0x01 Interrupt latch
  145. 0x02 Tx overrun, or Rx underrun
  146. 0x04 Tx complete
  147. 0x08 Tx FIFO room available
  148. 0x10 A complete Rx packet has arrived
  149. 0x20 A Rx packet has started to arrive
  150. 0x40 The driver has requested an interrupt
  151. 0x80 Statistics counter nearly full
  152. ===== ======================================
  153. The bits in the transmit (Tx) status word are:
  154. ===== ============================================
  155. value description
  156. ===== ============================================
  157. 0x02 Out-of-window collision.
  158. 0x04 Status stack overflow (normally impossible).
  159. 0x08 16 collisions.
  160. 0x10 Tx underrun (not enough PCI bus bandwidth).
  161. 0x20 Tx jabber.
  162. 0x40 Tx interrupt requested.
  163. 0x80 Status is valid (this should always be set).
  164. ===== ============================================
  165. When a transmit error occurs the driver produces a status message such as::
  166. eth0: Transmit error, Tx status register 82
  167. The two values typically seen here are:
  168. 0x82
  169. ^^^^
  170. Out of window collision. This typically occurs when some other Ethernet
  171. host is incorrectly set to full duplex on a half duplex network.
  172. 0x88
  173. ^^^^
  174. 16 collisions. This typically occurs when the network is exceptionally busy
  175. or when another host doesn't correctly back off after a collision. If this
  176. error is mixed with 0x82 errors it is the result of a host incorrectly set
  177. to full duplex (see above).
  178. Both of these errors are the result of network problems that should be
  179. corrected. They do not represent driver malfunction.
  180. Revision history (this file)
  181. ============================
  182. 28Feb02 v1.0 DR New; major portions based on Becker original 3c509 docs