From owner-freebsd-mobile Tue Feb 13 10:12:33 2001 Delivered-To: freebsd-mobile@freebsd.org Received: from harmony.village.org (rover.village.org [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id B03A537B65D; Tue, 13 Feb 2001 10:12:27 -0800 (PST) Received: from harmony.village.org (localhost.village.org [127.0.0.1]) by harmony.village.org (8.11.1/8.11.1) with ESMTP id f1DIBsW40108; Tue, 13 Feb 2001 11:11:54 -0700 (MST) (envelope-from imp@harmony.village.org) Message-Id: <200102131811.f1DIBsW40108@harmony.village.org> To: Dag-Erling Smorgrav Subject: Re: dc0 problems Cc: mobile@FreeBSD.ORG, wpaul@FreeBSD.ORG In-reply-to: Your message of "12 Feb 2001 21:30:20 +0100." References: Date: Tue, 13 Feb 2001 11:11:54 -0700 From: Warner Losh Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message 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