1*132db935SJakub Kicinski.. SPDX-License-Identifier: GPL-2.0 2*132db935SJakub Kicinski 3*132db935SJakub Kicinski============================================================================= 4*132db935SJakub KicinskiLinux and the 3Com EtherLink III Series Ethercards (driver v1.18c and higher) 5*132db935SJakub Kicinski============================================================================= 6*132db935SJakub Kicinski 7*132db935SJakub KicinskiThis file contains the instructions and caveats for v1.18c and higher versions 8*132db935SJakub Kicinskiof the 3c509 driver. You should not use the driver without reading this file. 9*132db935SJakub Kicinski 10*132db935SJakub Kicinskirelease 1.0 11*132db935SJakub Kicinski 12*132db935SJakub Kicinski28 February 2002 13*132db935SJakub Kicinski 14*132db935SJakub KicinskiCurrent maintainer (corrections to): 15*132db935SJakub Kicinski David Ruggiero <jdr@farfalle.com> 16*132db935SJakub Kicinski 17*132db935SJakub KicinskiIntroduction 18*132db935SJakub Kicinski============ 19*132db935SJakub Kicinski 20*132db935SJakub KicinskiThe following are notes and information on using the 3Com EtherLink III series 21*132db935SJakub Kicinskiethercards in Linux. These cards are commonly known by the most widely-used 22*132db935SJakub Kicinskicard's 3Com model number, 3c509. They are all 10mb/s ISA-bus cards and shouldn't 23*132db935SJakub Kicinskibe (but sometimes are) confused with the similarly-numbered PCI-bus "3c905" 24*132db935SJakub Kicinski(aka "Vortex" or "Boomerang") series. Kernel support for the 3c509 family is 25*132db935SJakub Kicinskiprovided by the module 3c509.c, which has code to support all of the following 26*132db935SJakub Kicinskimodels: 27*132db935SJakub Kicinski 28*132db935SJakub Kicinski - 3c509 (original ISA card) 29*132db935SJakub Kicinski - 3c509B (later revision of the ISA card; supports full-duplex) 30*132db935SJakub Kicinski - 3c589 (PCMCIA) 31*132db935SJakub Kicinski - 3c589B (later revision of the 3c589; supports full-duplex) 32*132db935SJakub Kicinski - 3c579 (EISA) 33*132db935SJakub Kicinski 34*132db935SJakub KicinskiLarge portions of this documentation were heavily borrowed from the guide 35*132db935SJakub Kicinskiwritten the original author of the 3c509 driver, Donald Becker. The master 36*132db935SJakub Kicinskicopy of that document, which contains notes on older versions of the driver, 37*132db935SJakub Kicinskicurrently resides on Scyld web server: http://www.scyld.com/. 38*132db935SJakub Kicinski 39*132db935SJakub Kicinski 40*132db935SJakub KicinskiSpecial Driver Features 41*132db935SJakub Kicinski======================= 42*132db935SJakub Kicinski 43*132db935SJakub KicinskiOverriding card settings 44*132db935SJakub Kicinski 45*132db935SJakub KicinskiThe driver allows boot- or load-time overriding of the card's detected IOADDR, 46*132db935SJakub KicinskiIRQ, and transceiver settings, although this capability shouldn't generally be 47*132db935SJakub Kicinskineeded except to enable full-duplex mode (see below). An example of the syntax 48*132db935SJakub Kicinskifor LILO parameters for doing this:: 49*132db935SJakub Kicinski 50*132db935SJakub Kicinski ether=10,0x310,3,0x3c509,eth0 51*132db935SJakub Kicinski 52*132db935SJakub KicinskiThis configures the first found 3c509 card for IRQ 10, base I/O 0x310, and 53*132db935SJakub Kicinskitransceiver type 3 (10base2). The flag "0x3c509" must be set to avoid conflicts 54*132db935SJakub Kicinskiwith other card types when overriding the I/O address. When the driver is 55*132db935SJakub Kicinskiloaded as a module, only the IRQ may be overridden. For example, 56*132db935SJakub Kicinskisetting two cards to IRQ10 and IRQ11 is done by using the irq module 57*132db935SJakub Kicinskioption:: 58*132db935SJakub Kicinski 59*132db935SJakub Kicinski options 3c509 irq=10,11 60*132db935SJakub Kicinski 61*132db935SJakub Kicinski 62*132db935SJakub KicinskiFull-duplex mode 63*132db935SJakub Kicinski================ 64*132db935SJakub Kicinski 65*132db935SJakub KicinskiThe v1.18c driver added support for the 3c509B's full-duplex capabilities. 66*132db935SJakub KicinskiIn order to enable and successfully use full-duplex mode, three conditions 67*132db935SJakub Kicinskimust be met: 68*132db935SJakub Kicinski 69*132db935SJakub Kicinski(a) You must have a Etherlink III card model whose hardware supports full- 70*132db935SJakub Kicinskiduplex operations. Currently, the only members of the 3c509 family that are 71*132db935SJakub Kicinskipositively known to support full-duplex are the 3c509B (ISA bus) and 3c589B 72*132db935SJakub Kicinski(PCMCIA) cards. Cards without the "B" model designation do *not* support 73*132db935SJakub Kicinskifull-duplex mode; these include the original 3c509 (no "B"), the original 74*132db935SJakub Kicinski3c589, the 3c529 (MCA bus), and the 3c579 (EISA bus). 75*132db935SJakub Kicinski 76*132db935SJakub Kicinski(b) You must be using your card's 10baseT transceiver (i.e., the RJ-45 77*132db935SJakub Kicinskiconnector), not its AUI (thick-net) or 10base2 (thin-net/coax) interfaces. 78*132db935SJakub KicinskiAUI and 10base2 network cabling is physically incapable of full-duplex 79*132db935SJakub Kicinskioperation. 80*132db935SJakub Kicinski 81*132db935SJakub Kicinski(c) Most importantly, your 3c509B must be connected to a link partner that is 82*132db935SJakub Kicinskiitself full-duplex capable. This is almost certainly one of two things: a full- 83*132db935SJakub Kicinskiduplex-capable Ethernet switch (*not* a hub), or a full-duplex-capable NIC on 84*132db935SJakub Kicinskianother system that's connected directly to the 3c509B via a crossover cable. 85*132db935SJakub Kicinski 86*132db935SJakub KicinskiFull-duplex mode can be enabled using 'ethtool'. 87*132db935SJakub Kicinski 88*132db935SJakub Kicinski.. warning:: 89*132db935SJakub Kicinski 90*132db935SJakub Kicinski Extremely important caution concerning full-duplex mode 91*132db935SJakub Kicinski 92*132db935SJakub Kicinski Understand that the 3c509B's hardware's full-duplex support is much more 93*132db935SJakub Kicinski limited than that provide by more modern network interface cards. Although 94*132db935SJakub Kicinski at the physical layer of the network it fully supports full-duplex operation, 95*132db935SJakub Kicinski the card was designed before the current Ethernet auto-negotiation (N-way) 96*132db935SJakub Kicinski spec was written. This means that the 3c509B family ***cannot and will not 97*132db935SJakub Kicinski auto-negotiate a full-duplex connection with its link partner under any 98*132db935SJakub Kicinski circumstances, no matter how it is initialized***. If the full-duplex mode 99*132db935SJakub Kicinski of the 3c509B is enabled, its link partner will very likely need to be 100*132db935SJakub Kicinski independently _forced_ into full-duplex mode as well; otherwise various nasty 101*132db935SJakub Kicinski failures will occur - at the very least, you'll see massive numbers of packet 102*132db935SJakub Kicinski collisions. This is one of very rare circumstances where disabling auto- 103*132db935SJakub Kicinski negotiation and forcing the duplex mode of a network interface card or switch 104*132db935SJakub Kicinski would ever be necessary or desirable. 105*132db935SJakub Kicinski 106*132db935SJakub Kicinski 107*132db935SJakub KicinskiAvailable Transceiver Types 108*132db935SJakub Kicinski=========================== 109*132db935SJakub Kicinski 110*132db935SJakub KicinskiFor versions of the driver v1.18c and above, the available transceiver types are: 111*132db935SJakub Kicinski 112*132db935SJakub Kicinski== ========================================================================= 113*132db935SJakub Kicinski0 transceiver type from EEPROM config (normally 10baseT); force half-duplex 114*132db935SJakub Kicinski1 AUI (thick-net / DB15 connector) 115*132db935SJakub Kicinski2 (undefined) 116*132db935SJakub Kicinski3 10base2 (thin-net == coax / BNC connector) 117*132db935SJakub Kicinski4 10baseT (RJ-45 connector); force half-duplex mode 118*132db935SJakub Kicinski8 transceiver type and duplex mode taken from card's EEPROM config settings 119*132db935SJakub Kicinski12 10baseT (RJ-45 connector); force full-duplex mode 120*132db935SJakub Kicinski== ========================================================================= 121*132db935SJakub Kicinski 122*132db935SJakub KicinskiPrior to driver version 1.18c, only transceiver codes 0-4 were supported. Note 123*132db935SJakub Kicinskithat the new transceiver codes 8 and 12 are the *only* ones that will enable 124*132db935SJakub Kicinskifull-duplex mode, no matter what the card's detected EEPROM settings might be. 125*132db935SJakub KicinskiThis insured that merely upgrading the driver from an earlier version would 126*132db935SJakub Kicinskinever automatically enable full-duplex mode in an existing installation; 127*132db935SJakub Kicinskiit must always be explicitly enabled via one of these code in order to be 128*132db935SJakub Kicinskiactivated. 129*132db935SJakub Kicinski 130*132db935SJakub KicinskiThe transceiver type can be changed using 'ethtool'. 131*132db935SJakub Kicinski 132*132db935SJakub Kicinski 133*132db935SJakub KicinskiInterpretation of error messages and common problems 134*132db935SJakub Kicinski---------------------------------------------------- 135*132db935SJakub Kicinski 136*132db935SJakub KicinskiError Messages 137*132db935SJakub Kicinski^^^^^^^^^^^^^^ 138*132db935SJakub Kicinski 139*132db935SJakub Kicinskieth0: Infinite loop in interrupt, status 2011. 140*132db935SJakub KicinskiThese are "mostly harmless" message indicating that the driver had too much 141*132db935SJakub Kicinskiwork during that interrupt cycle. With a status of 0x2011 you are receiving 142*132db935SJakub Kicinskipackets faster than they can be removed from the card. This should be rare 143*132db935SJakub Kicinskior impossible in normal operation. Possible causes of this error report are: 144*132db935SJakub Kicinski 145*132db935SJakub Kicinski - a "green" mode enabled that slows the processor down when there is no 146*132db935SJakub Kicinski keyboard activity. 147*132db935SJakub Kicinski 148*132db935SJakub Kicinski - some other device or device driver hogging the bus or disabling interrupts. 149*132db935SJakub Kicinski Check /proc/interrupts for excessive interrupt counts. The timer tick 150*132db935SJakub Kicinski interrupt should always be incrementing faster than the others. 151*132db935SJakub Kicinski 152*132db935SJakub KicinskiNo received packets 153*132db935SJakub Kicinski^^^^^^^^^^^^^^^^^^^ 154*132db935SJakub Kicinski 155*132db935SJakub KicinskiIf a 3c509, 3c562 or 3c589 can successfully transmit packets, but never 156*132db935SJakub Kicinskireceives packets (as reported by /proc/net/dev or 'ifconfig') you likely 157*132db935SJakub Kicinskihave an interrupt line problem. Check /proc/interrupts to verify that the 158*132db935SJakub Kicinskicard is actually generating interrupts. If the interrupt count is not 159*132db935SJakub Kicinskiincreasing you likely have a physical conflict with two devices trying to 160*132db935SJakub Kicinskiuse the same ISA IRQ line. The common conflict is with a sound card on IRQ10 161*132db935SJakub Kicinskior IRQ5, and the easiest solution is to move the 3c509 to a different 162*132db935SJakub Kicinskiinterrupt line. If the device is receiving packets but 'ping' doesn't work, 163*132db935SJakub Kicinskiyou have a routing problem. 164*132db935SJakub Kicinski 165*132db935SJakub KicinskiTx Carrier Errors Reported in /proc/net/dev 166*132db935SJakub Kicinski^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 167*132db935SJakub Kicinski 168*132db935SJakub Kicinski 169*132db935SJakub KicinskiIf an EtherLink III appears to transmit packets, but the "Tx carrier errors" 170*132db935SJakub Kicinskifield in /proc/net/dev increments as quickly as the Tx packet count, you 171*132db935SJakub Kicinskilikely have an unterminated network or the incorrect media transceiver selected. 172*132db935SJakub Kicinski 173*132db935SJakub Kicinski3c509B card is not detected on machines with an ISA PnP BIOS. 174*132db935SJakub Kicinski^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 175*132db935SJakub Kicinski 176*132db935SJakub KicinskiWhile the updated driver works with most PnP BIOS programs, it does not work 177*132db935SJakub Kicinskiwith all. This can be fixed by disabling PnP support using the 3Com-supplied 178*132db935SJakub Kicinskisetup program. 179*132db935SJakub Kicinski 180*132db935SJakub Kicinski3c509 card is not detected on overclocked machines 181*132db935SJakub Kicinski^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 182*132db935SJakub Kicinski 183*132db935SJakub KicinskiIncrease the delay time in id_read_eeprom() from the current value, 500, 184*132db935SJakub Kicinskito an absurdly high value, such as 5000. 185*132db935SJakub Kicinski 186*132db935SJakub Kicinski 187*132db935SJakub KicinskiDecoding Status and Error Messages 188*132db935SJakub Kicinski---------------------------------- 189*132db935SJakub Kicinski 190*132db935SJakub Kicinski 191*132db935SJakub KicinskiThe bits in the main status register are: 192*132db935SJakub Kicinski 193*132db935SJakub Kicinski===== ====================================== 194*132db935SJakub Kicinskivalue description 195*132db935SJakub Kicinski===== ====================================== 196*132db935SJakub Kicinski0x01 Interrupt latch 197*132db935SJakub Kicinski0x02 Tx overrun, or Rx underrun 198*132db935SJakub Kicinski0x04 Tx complete 199*132db935SJakub Kicinski0x08 Tx FIFO room available 200*132db935SJakub Kicinski0x10 A complete Rx packet has arrived 201*132db935SJakub Kicinski0x20 A Rx packet has started to arrive 202*132db935SJakub Kicinski0x40 The driver has requested an interrupt 203*132db935SJakub Kicinski0x80 Statistics counter nearly full 204*132db935SJakub Kicinski===== ====================================== 205*132db935SJakub Kicinski 206*132db935SJakub KicinskiThe bits in the transmit (Tx) status word are: 207*132db935SJakub Kicinski 208*132db935SJakub Kicinski===== ============================================ 209*132db935SJakub Kicinskivalue description 210*132db935SJakub Kicinski===== ============================================ 211*132db935SJakub Kicinski0x02 Out-of-window collision. 212*132db935SJakub Kicinski0x04 Status stack overflow (normally impossible). 213*132db935SJakub Kicinski0x08 16 collisions. 214*132db935SJakub Kicinski0x10 Tx underrun (not enough PCI bus bandwidth). 215*132db935SJakub Kicinski0x20 Tx jabber. 216*132db935SJakub Kicinski0x40 Tx interrupt requested. 217*132db935SJakub Kicinski0x80 Status is valid (this should always be set). 218*132db935SJakub Kicinski===== ============================================ 219*132db935SJakub Kicinski 220*132db935SJakub Kicinski 221*132db935SJakub KicinskiWhen a transmit error occurs the driver produces a status message such as:: 222*132db935SJakub Kicinski 223*132db935SJakub Kicinski eth0: Transmit error, Tx status register 82 224*132db935SJakub Kicinski 225*132db935SJakub KicinskiThe two values typically seen here are: 226*132db935SJakub Kicinski 227*132db935SJakub Kicinski0x82 228*132db935SJakub Kicinski^^^^ 229*132db935SJakub Kicinski 230*132db935SJakub KicinskiOut of window collision. This typically occurs when some other Ethernet 231*132db935SJakub Kicinskihost is incorrectly set to full duplex on a half duplex network. 232*132db935SJakub Kicinski 233*132db935SJakub Kicinski0x88 234*132db935SJakub Kicinski^^^^ 235*132db935SJakub Kicinski 236*132db935SJakub Kicinski16 collisions. This typically occurs when the network is exceptionally busy 237*132db935SJakub Kicinskior when another host doesn't correctly back off after a collision. If this 238*132db935SJakub Kicinskierror is mixed with 0x82 errors it is the result of a host incorrectly set 239*132db935SJakub Kicinskito full duplex (see above). 240*132db935SJakub Kicinski 241*132db935SJakub KicinskiBoth of these errors are the result of network problems that should be 242*132db935SJakub Kicinskicorrected. They do not represent driver malfunction. 243*132db935SJakub Kicinski 244*132db935SJakub Kicinski 245*132db935SJakub KicinskiRevision history (this file) 246*132db935SJakub Kicinski============================ 247*132db935SJakub Kicinski 248*132db935SJakub Kicinski28Feb02 v1.0 DR New; major portions based on Becker original 3c509 docs 249*132db935SJakub Kicinski 250