From owner-freebsd-current Mon Jul 17 10:26:47 2000 Delivered-To: freebsd-current@freebsd.org Received: from gndrsh.dnsmgr.net (GndRsh.dnsmgr.net [198.145.92.4]) by hub.freebsd.org (Postfix) with ESMTP id 7A16F37BA9F for ; Mon, 17 Jul 2000 10:26:43 -0700 (PDT) (envelope-from freebsd@gndrsh.dnsmgr.net) Received: (from freebsd@localhost) by gndrsh.dnsmgr.net (8.9.3/8.9.3) id KAA26568; Mon, 17 Jul 2000 10:25:21 -0700 (PDT) (envelope-from freebsd) From: "Rodney W. Grimes" Message-Id: <200007171725.KAA26568@gndrsh.dnsmgr.net> Subject: Re: dc driver and underruns (was: Strangeness with 4.0-S) In-Reply-To: <200007170214.TAA23537@implode.root.com> from David Greenman at "Jul 16, 2000 07:14:30 pm" To: dg@root.com Date: Mon, 17 Jul 2000 10:25:21 -0700 (PDT) Cc: wollman@khavrinen.lcs.mit.edu (Garrett Wollman), freebsd-current@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL54 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG ... > >As far as I can tell the fxp driver doesn't even use the tx_fifo in the > >825xxx chips :-) > > The 82557-9 have a 2KB internal buffer for transmits. They don't start > transmitting until a programmed threshold is reached - this is to insure > that PCI bus latency doesn't result in the transmitter getting stalled. > The fxp driver starts out with this threshold set at 512 bytes, but will > increase it (512 bytes at a time) when a DMA underrun occurs. Of course > once the threshold reached 1536, then an entire 1500 byte packet is DMA'd > into the buffer before the transmit begins. Can you point me to the part of if_fxp.c that does this, as alls I can find about any form of fifo in the code are these references: Guardian# grep -i fifo *fxp* if_fxp.c: cbp->rx_fifo_limit = 8; /* rx fifo threshold (32 bytes) */ if_fxp.c: cbp->tx_fifo_limit = 0; /* tx fifo threshold (0 bytes) */ if_fxpreg.h: volatile u_int rx_fifo_limit:4, if_fxpreg.h: tx_fifo_limit:3, No place do I find anything that does any adjustments to these values :-(. -- Rod Grimes - KD7CAX @ CN85sl - (RWG25) rgrimes@gndrsh.dnsmgr.net To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message