Date: Tue, 13 Feb 2001 11:11:54 -0700 From: Warner Losh <imp@harmony.village.org> To: Dag-Erling Smorgrav <des@ofug.org> Cc: mobile@FreeBSD.ORG, wpaul@FreeBSD.ORG Subject: Re: dc0 problems Message-ID: <200102131811.f1DIBsW40108@harmony.village.org> In-Reply-To: Your message of "12 Feb 2001 21:30:20 %2B0100." <xzplmrbprtv.fsf@flood.ping.uio.no> References: <xzplmrbprtv.fsf@flood.ping.uio.no>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <xzplmrbprtv.fsf@flood.ping.uio.no> Dag-Erling Smorgrav writes: : The one with the external dongle works fine. The one with the built-in : jack generates lots of "TX underrun" messages (up to several hundred a : minute): That's odd. : Bill Paul suggested on IRC to set the DC_TX_STORENFWD flag for X3201 : chips, but I haven't tried that yet (I'll post the results when I get : the chance) and it doesn't seem entirely fair since the other card : works fine without it (including autonegotiation; I've used it on both : 10 and 100 Mbps networks). Here's the patch (watch for whitespace : conflicts due to cut'n'paste): : : des@aes /sys/pci% lcvs diff if_dc.c : Index: if_dc.c : =================================================================== : RCS file: /home/ncvs/src/sys/pci/if_dc.c,v : retrieving revision 1.44 : diff -u -r1.44 if_dc.c : --- if_dc.c 2001/01/20 00:07:49 1.44 : +++ if_dc.c 2001/02/12 20:00:07 : @@ -1927,6 +1927,7 @@ : case DC_DEVICEID_X3201: : sc->dc_type = DC_TYPE_XIRCOM; : sc->dc_flags |= DC_TX_INTR_ALWAYS | DC_TX_COALESCE; : + sc->dc_flags |= DC_TX_STORENFWD; : /* : * We don't actually need to coalesce, but we're doing : * it to obtain a double word aligned buffer. I'm not sure that I like this. My EtherJet works great, as does my Xicrom card. : If I get the dongle for the other card back (I inadvertantly left it : at a customer's after a meeting) I may be able to send the dongle-less : card to someone capable of looking into this problem (provided my : employer approves, as the card is not mine). I can send you a dongle, but I suspect that Bill Paul would be better at finding the actual problem and fixing it than I. He wrote the dc driver. If bill needs one, I should be able to send him one of my dc cards. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200102131811.f1DIBsW40108>