xref: /freebsd/share/man/man4/dc.4 (revision 83e76ab9e34bd26f8d71f906d524d350f462b5de)
196f2e892SBill Paul.\" Copyright (c) 1997, 1998, 1999
296f2e892SBill Paul.\"	Bill Paul <wpaul@ee.columbia.edu>. All rights reserved.
396f2e892SBill Paul.\"
496f2e892SBill Paul.\" Redistribution and use in source and binary forms, with or without
596f2e892SBill Paul.\" modification, are permitted provided that the following conditions
696f2e892SBill Paul.\" are met:
796f2e892SBill Paul.\" 1. Redistributions of source code must retain the above copyright
896f2e892SBill Paul.\"    notice, this list of conditions and the following disclaimer.
996f2e892SBill Paul.\" 2. Redistributions in binary form must reproduce the above copyright
1096f2e892SBill Paul.\"    notice, this list of conditions and the following disclaimer in the
1196f2e892SBill Paul.\"    documentation and/or other materials provided with the distribution.
1296f2e892SBill Paul.\" 3. All advertising materials mentioning features or use of this software
1396f2e892SBill Paul.\"    must display the following acknowledgement:
1496f2e892SBill Paul.\"	This product includes software developed by Bill Paul.
1596f2e892SBill Paul.\" 4. Neither the name of the author nor the names of any co-contributors
1696f2e892SBill Paul.\"    may be used to endorse or promote products derived from this software
1796f2e892SBill Paul.\"   without specific prior written permission.
1896f2e892SBill Paul.\"
1996f2e892SBill Paul.\" THIS SOFTWARE IS PROVIDED BY Bill Paul AND CONTRIBUTORS ``AS IS'' AND
2096f2e892SBill Paul.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2196f2e892SBill Paul.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
2296f2e892SBill Paul.\" ARE DISCLAIMED.  IN NO EVENT SHALL Bill Paul OR THE VOICES IN HIS HEAD
2396f2e892SBill Paul.\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2496f2e892SBill Paul.\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2596f2e892SBill Paul.\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2696f2e892SBill Paul.\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2796f2e892SBill Paul.\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2896f2e892SBill Paul.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
2996f2e892SBill Paul.\" THE POSSIBILITY OF SUCH DAMAGE.
3096f2e892SBill Paul.\"
3196f2e892SBill Paul.\" $FreeBSD$
3296f2e892SBill Paul.\"
3383e76ab9SMarius Strobl.Dd August 14, 2004
344c574bfdSRuslan Ermilov.Dt DC 4
353d45e180SRuslan Ermilov.Os
3696f2e892SBill Paul.Sh NAME
3796f2e892SBill Paul.Nm dc
3883e76ab9SMarius Strobl.Nd "DEC/Intel 21143 and clone 10/100 Ethernet driver"
3996f2e892SBill Paul.Sh SYNOPSIS
406b713d58SJeroen Ruigrok van der Werven.Cd "device miibus"
416b713d58SJeroen Ruigrok van der Werven.Cd "device dc"
4296f2e892SBill Paul.Sh DESCRIPTION
4396f2e892SBill PaulThe
4496f2e892SBill Paul.Nm
4583e76ab9SMarius Strobldriver provides support for several PCI Fast Ethernet adapters and
4696f2e892SBill Paulembedded controllers based on the following chipsets:
4796f2e892SBill Paul.Pp
4896f2e892SBill Paul.Bl -bullet -compact -offset indent
4996f2e892SBill Paul.It
5096f2e892SBill PaulDEC/Intel 21143
5196f2e892SBill Paul.It
5298277d17SSimon L. B. NielsenADMtek AL981 Comet, AN985 Centaur, ADM9511 Centaur II and ADM9513
5398277d17SSimon L. B. NielsenCentaur II
5496f2e892SBill Paul.It
5596f2e892SBill PaulASIX Electronics AX88140A and AX88141
5696f2e892SBill Paul.It
578f7c50a2SSimon L. B. NielsenConexant LANfinity RS7112 (miniPCI)
588f7c50a2SSimon L. B. Nielsen.It
5998277d17SSimon L. B. NielsenDavicom DM9009, DM9100, DM9102 and DM9102A
6096f2e892SBill Paul.It
6196f2e892SBill PaulLite-On 82c168 and 82c169 PNIC
6296f2e892SBill Paul.It
6396f2e892SBill PaulLite-On/Macronix 82c115 PNIC II
64b1b636d1SBill Paul.It
6598277d17SSimon L. B. NielsenMacronix 98713, 98713A, 98715, 98715A, 98715AEC-C, 98725, 98727 and 98732
66b1b636d1SBill Paul.It
678f7c50a2SSimon L. B. NielsenXircom X3201 (cardbus only)
6896f2e892SBill Paul.El
6996f2e892SBill Paul.Pp
7096f2e892SBill PaulAll of these chips have the same general register layout, DMA
716d249eeeSSheldon Hearndescriptor format and method of operation.
726d249eeeSSheldon HearnAll of the clone chips
736d249eeeSSheldon Hearnare based on the 21143 design with various modifications.
746d249eeeSSheldon HearnThe
7596f2e892SBill Paul21143 itself has support for 10baseT, BNC, AUI, MII and symbol
7696f2e892SBill Paulmedia attachments, 10 and 100Mbps speeds in full or half duplex,
776d249eeeSSheldon Hearnbuilt in NWAY autonegotiation and wake on LAN.
786d249eeeSSheldon HearnThe 21143 also
7996f2e892SBill Pauloffers several receive filter programming options including
8096f2e892SBill Paulperfect filtering, inverse perfect filtering and hash table
8196f2e892SBill Paulfiltering.
8296f2e892SBill Paul.Pp
8396f2e892SBill PaulSome clone chips duplicate the 21143 fairly closely while others
84f444a4c5SDima Dorfmanonly maintain superficial similarities.
856d249eeeSSheldon HearnSome support only MII
866d249eeeSSheldon Hearnmedia attachments.
876d249eeeSSheldon HearnOthers use different receiver filter programming
886d249eeeSSheldon Hearnmechanisms.
896d249eeeSSheldon HearnAt least one supports only chained DMA descriptors
9096f2e892SBill Paul(most support both chained descriptors and contiguously allocated
915203edcdSRuslan Ermilovfixed size rings).
925203edcdSRuslan ErmilovSome chips (especially the PNIC) also have
936d249eeeSSheldon Hearnpeculiar bugs.
946d249eeeSSheldon HearnThe
9596f2e892SBill Paul.Nm
9696f2e892SBill Pauldriver does its best to provide generalized support for all
97f87717faSMike Pritchardof these chipsets in order to keep special case code to a minimum.
9896f2e892SBill Paul.Pp
9996f2e892SBill PaulThese chips are used by many vendors which makes it
100f444a4c5SDima Dorfmandifficult to provide a complete list of all supported cards.
1016d249eeeSSheldon HearnThe
10296f2e892SBill Paulfollowing NICs are known to work with the
10396f2e892SBill Paul.Nm
10496f2e892SBill Pauldriver at this time:
10596f2e892SBill Paul.Pp
10696f2e892SBill Paul.Bl -bullet -compact -offset indent
10796f2e892SBill Paul.It
1088f7c50a2SSimon L. B. Nielsen3Com OfficeConnect 10/100B (ADMtek AN985 Centaur-P)
10996f2e892SBill Paul.It
11098277d17SSimon L. B. NielsenAbocom FE2500
11198277d17SSimon L. B. Nielsen.It
11298277d17SSimon L. B. NielsenAccton EN1217 (98715A)
11398277d17SSimon L. B. Nielsen.It
11498277d17SSimon L. B. NielsenAccton EN2242 MiniPCI
11598277d17SSimon L. B. Nielsen.It
11698277d17SSimon L. B. NielsenAdico AE310TX (98715A)
11798277d17SSimon L. B. Nielsen.It
1188f7c50a2SSimon L. B. NielsenAlfa Inc GFC2204 (ASIX AX88140A)
11996f2e892SBill Paul.It
12083e76ab9SMarius StroblBuilt in 10Mbps only Ethernet on Compaq Presario 7900 series
1214c42afccSBill Pauldesktops (21143, non-MII)
1224c42afccSBill Paul.It
1238f7c50a2SSimon L. B. NielsenBuilt in DE500-BA on DEC Alpha workstations (21143, non-MII)
1248f7c50a2SSimon L. B. Nielsen.It
12583e76ab9SMarius StroblBuilt in Sun DMFE 10/100 Mbps Ethernet on Sun Netra X1 and Sun Fire V100
12683e76ab9SMarius Strobl(DM9102A, MII, see the
12783e76ab9SMarius Strobl.Sx NOTES
12883e76ab9SMarius Stroblsection below)
12983e76ab9SMarius Strobl.It
13083e76ab9SMarius StroblBuilt in Ethernet on LinkSys EtherFast 10/100 Instant GigaDrive (DM9102, MII)
1314c42afccSBill Paul.It
1328f7c50a2SSimon L. B. NielsenCNet Pro110B (ASIX AX88140A)
13396f2e892SBill Paul.It
1344c42afccSBill PaulCNet Pro120A (98715A or 98713A) and CNet Pro120B (98715)
13596f2e892SBill Paul.It
13696f2e892SBill PaulCompex RL100-TX (98713 or 98713A)
13796f2e892SBill Paul.It
1388f7c50a2SSimon L. B. NielsenD-Link DFE-570TX (21143, MII, quad port)
13996f2e892SBill Paul.It
1408f7c50a2SSimon L. B. NielsenDigital DE500-BA 10/100 (21143, non-MII)
14196f2e892SBill Paul.It
142773c505fSMIHIRA Sanpei YoshiroELECOM Laneed LD-CBL/TXA (ADMtek AN985)
143773c505fSMIHIRA Sanpei Yoshiro.It
14498277d17SSimon L. B. NielsenHawking CB102 CardBus
14598277d17SSimon L. B. Nielsen.It
1469e151be8SSimon L. B. NielsenIBM EtherJet Cardbus Adapter
1479e151be8SSimon L. B. Nielsen.It
1489e151be8SSimon L. B. NielsenIntel PRO/100 Mobile Cardbus (versions that use the X3201 chipset)
1499e151be8SSimon L. B. Nielsen.It
15096f2e892SBill PaulJaton XpressNet (Davicom DM9102)
15196f2e892SBill Paul.It
1528f7c50a2SSimon L. B. NielsenKingston KNE100TX (21143, MII)
15396f2e892SBill Paul.It
1548f7c50a2SSimon L. B. NielsenKingston KNE110TX (PNIC 82c169)
1558f7c50a2SSimon L. B. Nielsen.It
1568f7c50a2SSimon L. B. NielsenLinkSys LNE100TX (PNIC 82c168, 82c169)
1578f7c50a2SSimon L. B. Nielsen.It
1588f7c50a2SSimon L. B. NielsenLinkSys LNE100TX v2.0 (PNIC II 82c115)
159c1e6727aSBill Paul.It
160c1e6727aSBill PaulLinkSys LNE100TX v4.0/4.1 (ADMtek AN985 Centaur-P)
1617eac366bSMartin Blapp.It
1628f7c50a2SSimon L. B. NielsenMatrox FastNIC 10/100 (PNIC 82c168, 82c169)
163e7b9ab3aSBill Paul.It
1649e151be8SSimon L. B. NielsenMelco LGY-PCI-TXL
1659e151be8SSimon L. B. Nielsen.It
166e7b9ab3aSBill PaulMicrosoft MN-120 10/100 CardBus (ADMTek Centaur-C)
167e7b9ab3aSBill Paul.It
168e7b9ab3aSBill PaulMicrosoft MN-130 10/100 PCI (ADMTek Centaur-P)
1698f7c50a2SSimon L. B. Nielsen.It
1708f7c50a2SSimon L. B. NielsenNDC SOHOware SFA110A (98713A)
1718f7c50a2SSimon L. B. Nielsen.It
1728f7c50a2SSimon L. B. NielsenNDC SOHOware SFA110A Rev B4 (98715AEC-C)
1738f7c50a2SSimon L. B. Nielsen.It
1745203edcdSRuslan ErmilovNetGear FA310-TX Rev.\& D1, D2 or D3 (PNIC 82c169)
1758f7c50a2SSimon L. B. Nielsen.It
17698277d17SSimon L. B. NielsenNetgear FA511
17798277d17SSimon L. B. Nielsen.It
17898277d17SSimon L. B. NielsenPlaneX FNW-3602-T (ADMtek AN985)
17998277d17SSimon L. B. Nielsen.It
1808f7c50a2SSimon L. B. NielsenSVEC PN102-TX (98713)
1819e151be8SSimon L. B. Nielsen.It
1829e151be8SSimon L. B. NielsenXircom Cardbus Realport
1839e151be8SSimon L. B. Nielsen.It
1849e151be8SSimon L. B. NielsenXircom Cardbus Ethernet 10/100
1859e151be8SSimon L. B. Nielsen.It
1869e151be8SSimon L. B. NielsenXircom Cardbus Ethernet II 10/100
18796f2e892SBill Paul.El
18896f2e892SBill Paul.Pp
18996f2e892SBill PaulThe
19096f2e892SBill Paul.Nm
19196f2e892SBill Pauldriver supports the following media types:
19296f2e892SBill Paul.Pp
19396f2e892SBill Paul.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
19496f2e892SBill Paul.It autoselect
19596f2e892SBill PaulEnable autoselection of the media type and options.
19696f2e892SBill PaulThe user can manually override
19796f2e892SBill Paulthe autoselected mode by adding media options to the
19896f2e892SBill Paul.Pa /etc/rc.conf
19996f2e892SBill Paulfile.
20096f2e892SBill Paul.Pp
20196f2e892SBill PaulNote: the built-in NWAY autonegotiation on the original PNIC 82c168
20296f2e892SBill Paulchip is horribly broken and is not supported by the
20396f2e892SBill Paul.Nm
204f444a4c5SDima Dorfmandriver at this time (see the
205f444a4c5SDima Dorfman.Sx BUGS
206f444a4c5SDima Dorfmansection for details).
2076d249eeeSSheldon HearnThe original 82c168 appears
20896f2e892SBill Paulon very early revisions of the LinkSys LNE100TX and Matrox FastNIC.
20996f2e892SBill Paul.It 10baseT/UTP
2106d249eeeSSheldon HearnSet 10Mbps operation.
2116d249eeeSSheldon HearnThe
21296f2e892SBill Paul.Ar mediaopt
21396f2e892SBill Pauloption can also be used to enable
21496f2e892SBill Paul.Ar full-duplex
2156d249eeeSSheldon Hearnoperation.
2166d249eeeSSheldon HearnNot specifying
21796f2e892SBill Paul.Ar full duplex
21896f2e892SBill Paulimplies
21996f2e892SBill Paul.Ar half-duplex
22096f2e892SBill Paulmode.
22196f2e892SBill Paul.It 100baseTX
22283e76ab9SMarius StroblSet 100Mbps (Fast Ethernet) operation.
2236d249eeeSSheldon HearnThe
22496f2e892SBill Paul.Ar mediaopt
22596f2e892SBill Pauloption can also be used to enable
22696f2e892SBill Paul.Ar full-duplex
2276d249eeeSSheldon Hearnoperation.
2286d249eeeSSheldon HearnNot specifying
22996f2e892SBill Paul.Ar full duplex
23096f2e892SBill Paulimplies
23196f2e892SBill Paul.Ar half-duplex
23296f2e892SBill Paulmode.
23396f2e892SBill Paul.El
23496f2e892SBill Paul.Pp
23596f2e892SBill PaulThe
23696f2e892SBill Paul.Nm
23796f2e892SBill Pauldriver supports the following media options:
23896f2e892SBill Paul.Pp
23996f2e892SBill Paul.Bl -tag -width xxxxxxxxxxxxxxxxxxxx
24096f2e892SBill Paul.It full-duplex
2416d249eeeSSheldon HearnForce full duplex operation.
2426d249eeeSSheldon HearnThe interface will operate in
24396f2e892SBill Paulhalf duplex mode if this media option is not specified.
24496f2e892SBill Paul.El
24596f2e892SBill Paul.Pp
24696f2e892SBill PaulNote that the 100baseTX media type may not be available on certain
2471d705c5cSColin PercivalIntel 21143 adapters which support 10Mbps media attachments only.
24896f2e892SBill PaulFor more information on configuring this device, see
24996f2e892SBill Paul.Xr ifconfig 8 .
25083e76ab9SMarius Strobl.Sh NOTES
25183e76ab9SMarius StroblOn sparc64 the
25283e76ab9SMarius Strobl.Nm
25383e76ab9SMarius Strobldriver respects the
25483e76ab9SMarius Strobl.Va local-mac-address?
25583e76ab9SMarius Stroblsystem configuration variable for the built in Sun DMFE 10/100 Mbps Ethernet
25683e76ab9SMarius Stroblinterfaces on Sun Netra X1 and Sun Fire V100.
25783e76ab9SMarius StroblThis system configuration variable can be set in the Open Firmware boot
25883e76ab9SMarius Stroblmonitor using the
25983e76ab9SMarius Strobl.Ic setenv
26083e76ab9SMarius Stroblcommand or by
26183e76ab9SMarius Strobl.Xr eeprom 8 .
26283e76ab9SMarius StroblIf set to
26383e76ab9SMarius Strobl.Dq Li false
26483e76ab9SMarius Strobl(the default), the
26583e76ab9SMarius Strobl.Nm
26683e76ab9SMarius Strobldriver will use the system's default MAC address for both of the built in
26783e76ab9SMarius Strobldevices.
26883e76ab9SMarius StroblIf set to
26983e76ab9SMarius Strobl.Dq Li true ,
27083e76ab9SMarius Stroblthe unique MAC address of each interface is used rather than the system's
27183e76ab9SMarius Strobldefault MAC address.
27296f2e892SBill Paul.Sh DIAGNOSTICS
27396f2e892SBill Paul.Bl -diag
27496f2e892SBill Paul.It "dc%d: couldn't map ports/memory"
27596f2e892SBill PaulA fatal initialization error has occurred.
27696f2e892SBill Paul.It "dc%d: couldn't map interrupt"
27796f2e892SBill PaulA fatal initialization error has occurred.
27896f2e892SBill Paul.It "dc%d: watchdog timeout"
27996f2e892SBill PaulA packet was queued for transmission and a transmit command was
280f444a4c5SDima Dorfmanissued, but the device failed to acknowledge the transmission
2816d249eeeSSheldon Hearnbefore a timeout expired.
2826d249eeeSSheldon HearnThis can happen if the device is unable
28396f2e892SBill Paulto deliver interrupts for some reason, of if there is a problem with
284f444a4c5SDima Dorfmanthe network connection (cable or network equipment) that results in a loss
285f444a4c5SDima Dorfmanof link.
28696f2e892SBill Paul.It "dc%d: no memory for rx list"
28796f2e892SBill PaulThe driver failed to allocate an mbuf for the receiver ring.
28896f2e892SBill Paul.It "dc%d: TX underrun -- increasing TX threshold"
28996f2e892SBill PaulThe device generated a transmit underrun error while attempting to
2906d249eeeSSheldon HearnDMA and transmit a packet.
2916d249eeeSSheldon HearnThis happens if the host is not able to
2926d249eeeSSheldon HearnDMA the packet data into the NIC's FIFO fast enough.
2936d249eeeSSheldon HearnThe driver
29496f2e892SBill Paulwill dynamically increase the transmit start threshold so that
29596f2e892SBill Paulmore data must be DMAed into the FIFO before the NIC will start
29696f2e892SBill Paultransmitting it onto the wire.
29796f2e892SBill Paul.It "dc%d: TX underrun -- using store and forward mode"
29896f2e892SBill PaulThe device continued to generate transmit underruns even after all
29996f2e892SBill Paulpossible transmit start threshold settings had been tried, so the
3006d249eeeSSheldon Hearndriver programmed the chip for store and forward mode.
3016d249eeeSSheldon HearnIn this mode,
30296f2e892SBill Paulthe NIC will not begin transmission until the entire packet has been
30396f2e892SBill Paultransfered into its FIFO memory.
30496f2e892SBill Paul.It "dc%d: chip is in D3 power state -- setting to D0"
30596f2e892SBill PaulThis message applies only to adapters which support power
3066d249eeeSSheldon Hearnmanagement.
3076d249eeeSSheldon HearnSome operating systems place the controller in low power
30896f2e892SBill Paulmode when shutting down, and some PCI BIOSes fail to bring the chip
3096d249eeeSSheldon Hearnout of this state before configuring it.
3106d249eeeSSheldon HearnThe controller loses all of
31196f2e892SBill Paulits PCI configuration in the D3 state, so if the BIOS does not set
31296f2e892SBill Paulit back to full power mode in time, it won't be able to configure it
3136d249eeeSSheldon Hearncorrectly.
3146d249eeeSSheldon HearnThe driver tries to detect this condition and bring
31596f2e892SBill Paulthe adapter back to the D0 (full power) state, but this may not be
3166d249eeeSSheldon Hearnenough to return the driver to a fully operational condition.
3176d249eeeSSheldon HearnIf
31896f2e892SBill Paulyou see this message at boot time and the driver fails to attach
319db6ccea6SStephen McKaythe device as a network interface, you will have to perform a second
32096f2e892SBill Paulwarm boot to have the device properly configured.
32196f2e892SBill Paul.Pp
32296f2e892SBill PaulNote that this condition only occurs when warm booting from another
3236d249eeeSSheldon Hearnoperating system.
3246d249eeeSSheldon HearnIf you power down your system prior to booting
32596f2e892SBill Paul.Fx ,
32696f2e892SBill Paulthe card should be configured correctly.
32796f2e892SBill Paul.El
32896f2e892SBill Paul.Sh SEE ALSO
32996f2e892SBill Paul.Xr arp 4 ,
330071d726dSTom Rhodes.Xr miibus 4 ,
33196f2e892SBill Paul.Xr netintro 4 ,
33295d7878cSArchie Cobbs.Xr ng_ether 4 ,
33383e76ab9SMarius Strobl.Xr eeprom 8 ,
33495d7878cSArchie Cobbs.Xr ifconfig 8
33596f2e892SBill Paul.Rs
33696f2e892SBill Paul.%T ADMtek AL981, AL983 and AL985 data sheets
33796f2e892SBill Paul.%O http://www.admtek.com.tw
33896f2e892SBill Paul.Re
33996f2e892SBill Paul.Rs
34096f2e892SBill Paul.%T ASIX Electronics AX88140A and AX88141 data sheets
34196f2e892SBill Paul.%O http://www.asix.com.tw
34296f2e892SBill Paul.Re
34396f2e892SBill Paul.Rs
34496f2e892SBill Paul.%T Davicom DM9102 data sheet
34596f2e892SBill Paul.%O http://www.davicom8.com
34696f2e892SBill Paul.Re
34796f2e892SBill Paul.Rs
34896f2e892SBill Paul.%T Intel 21143 Hardware Reference Manual
34996f2e892SBill Paul.%O http://developer.intel.com
35096f2e892SBill Paul.Re
35196f2e892SBill Paul.Rs
35296f2e892SBill Paul.%T Macronix 98713/A, 98715/A and 98725 data sheets
35396f2e892SBill Paul.%O http://www.macronix.com
35496f2e892SBill Paul.Re
35596f2e892SBill Paul.Rs
35696f2e892SBill Paul.%T Macronix 98713/A and 98715/A app notes
35796f2e892SBill Paul.%O http://www.macronix.com
35896f2e892SBill Paul.Re
35996f2e892SBill Paul.Sh HISTORY
36096f2e892SBill PaulThe
36196f2e892SBill Paul.Nm
36296f2e892SBill Pauldevice driver first appeared in
36396f2e892SBill Paul.Fx 4.0 .
36496f2e892SBill Paul.Sh AUTHORS
36596f2e892SBill PaulThe
36696f2e892SBill Paul.Nm
36796f2e892SBill Pauldriver was written by
36896f2e892SBill Paul.An Bill Paul Aq wpaul@ee.columbia.edu .
36996f2e892SBill Paul.Sh BUGS
37096f2e892SBill PaulThe Macronix application notes claim that in order to put the
371db6ccea6SStephen McKaychips in normal operation, the driver must write a certain magic
3726d249eeeSSheldon Hearnnumber into the CSR16 register.
3736d249eeeSSheldon HearnThe numbers are documented in
37496f2e892SBill Paulthe app notes, but the exact meaning of the bits is not.
37596f2e892SBill Paul.Pp
37696f2e892SBill PaulThe 98713A seems to have a problem with 10Mbps full duplex mode.
37796f2e892SBill PaulThe transmitter works but the receiver tends to produce many
3786d249eeeSSheldon Hearnunexplained errors leading to very poor overall performance.
3796d249eeeSSheldon HearnThe
3806d249eeeSSheldon Hearn98715A does not exhibit this problem.
3816d249eeeSSheldon HearnAll other modes on the
38296f2e892SBill Paul98713A seem to work correctly.
38396f2e892SBill Paul.Pp
38496f2e892SBill PaulThe original 82c168 PNIC chip has built in NWAY support which is
38596f2e892SBill Paulused on certain early LinkSys LNE100TX and Matrox FastNIC cards,
38696f2e892SBill Paulhowever it is horribly broken and difficult to use reliably.
38796f2e892SBill PaulConsequently, autonegotiation is not currently supported for this
38896f2e892SBill Paulchipset: the driver defaults the NIC to 10baseT half duplex, and it's
38996f2e892SBill Paulup to the operator to manually select a different mode if necessary.
39096f2e892SBill Paul(Later cards use an external MII transceiver to implement NWAY
39196f2e892SBill Paulautonegotiation and work correctly.)
39296f2e892SBill Paul.Pp
39396f2e892SBill PaulThe
39496f2e892SBill Paul.Nm
39596f2e892SBill Pauldriver programs 82c168 and 82c169 PNIC chips to use the store and
3966d249eeeSSheldon Hearnforward setting for the transmit start threshold by default.
3976d249eeeSSheldon HearnThis
39896f2e892SBill Paulis to work around problems with some NIC/PCI bus combinations where
39996f2e892SBill Paulthe PNIC can transmit corrupt frames when operating at 100Mbps,
40096f2e892SBill Paulprobably due to PCI DMA burst transfer errors.
40196f2e892SBill Paul.Pp
4024c42afccSBill PaulThe 82c168 and 82c169 PNIC chips also have a receiver bug that
40396f2e892SBill Paulsometimes manifests during periods of heavy receive and transmit
40496f2e892SBill Paulactivity, where the chip will improperly DMA received frames to
4056d249eeeSSheldon Hearnthe host.
4066d249eeeSSheldon HearnThe chips appear to upload several kilobytes of garbage
40796f2e892SBill Pauldata along with the received frame data, dirtying several RX buffers
4086d249eeeSSheldon Hearninstead of just the expected one.
4096d249eeeSSheldon HearnThe
41096f2e892SBill Paul.Nm
411f444a4c5SDima Dorfmandriver detects this condition and will salvage the frame; however,
41296f2e892SBill Paulit incurs a serious performance penalty in the process.
41396f2e892SBill Paul.Pp
41496f2e892SBill PaulThe PNIC chips also sometimes generate a transmit underrun error when
41596f2e892SBill Paulthe driver attempts to download the receiver filter setup frame, which
4166d249eeeSSheldon Hearncan result in the receive filter being incorrectly programmed.
4176d249eeeSSheldon HearnThe
41896f2e892SBill Paul.Nm
41996f2e892SBill Pauldriver will watch for this condition and requeue the setup frame until
42096f2e892SBill Paulit is transfered successfully.
42196f2e892SBill Paul.Pp
42296f2e892SBill PaulThe ADMtek AL981 chip (and possibly the AN985 as well) has been observed
42396f2e892SBill Paulto sometimes wedge on transmit: this appears to happen when the driver
42496f2e892SBill Paulqueues a sequence of frames which cause it to wrap from the end of the
425f444a4c5SDima Dorfmantransmit descriptor ring back to the beginning.
4266d249eeeSSheldon HearnThe
42796f2e892SBill Paul.Nm
428f87717faSMike Pritcharddriver attempts to avoid this condition by not queuing any frames past
42996f2e892SBill Paulthe end of the transmit ring during a single invocation of the
43096f2e892SBill Paul.Fn dc_start
4316d249eeeSSheldon Hearnroutine.
4326d249eeeSSheldon HearnThis workaround has a negligible impact on transmit performance.
433