From owner-freebsd-net Fri Oct 11 15:25:59 2002 Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50B4537B401 for ; Fri, 11 Oct 2002 15:25:58 -0700 (PDT) Received: from cs.rice.edu (cs.rice.edu [128.42.1.30]) by mx1.FreeBSD.org (Postfix) with ESMTP id E54E743EA3 for ; Fri, 11 Oct 2002 15:25:57 -0700 (PDT) (envelope-from hykim@cs.rice.edu) Received: from localhost (localhost [127.0.0.1]) by cs.rice.edu (Postfix) with ESMTP id 747784AA24; Fri, 11 Oct 2002 17:25:57 -0500 (CDT) Received: from frosty.cs.rice.edu (frosty.cs.rice.edu [128.42.1.20]) by cs.rice.edu (Postfix) with ESMTP id D35354A9D6; Fri, 11 Oct 2002 17:25:56 -0500 (CDT) Received: from localhost (hykim@localhost) by frosty.cs.rice.edu (8.9.3+Sun/8.9.0) with ESMTP id RAA11138; Fri, 11 Oct 2002 17:25:55 -0500 (CDT) X-Authentication-Warning: frosty.cs.rice.edu: hykim owned process doing -bs Date: Fri, 11 Oct 2002 17:25:55 -0500 (CDT) From: Hyong-Youb Kim To: Andrew Gallatin Cc: Subject: Re: Tigon 3 bad checksums on TCP packets In-Reply-To: <15783.17406.914045.132169@grasshopper.cs.duke.edu> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS snapshot-20020300 Sender: owner-freebsd-net@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Thanks. I resolved the issue by forcing BGE_PCI_WRITE_BNDRY_16BYTES in BGE_PCI_DMA_RW_CTL register. The linux driver apparently has a DMA test code and sets this value depending on the test results. I have no clue as to why this configuration messes up TCP receive packets and not UDP packets. John On Fri, 11 Oct 2002, Andrew Gallatin wrote: > > Hyong-Youb Kim writes: > > > > I have been recently testing 3C996B-T board in an Athlon system. > > The system has TigerMP board and a single Athlon 2000+ and runs FreeBSD > > 4.7-RC. With bge driver, every thing works fine except that the NIC piles > > up bad checksums on TCP receive packets. For instance, > > netperf TCP_STREAM from another machine would pile up bad checksums. > > What is most amazing to me is that NIC works fine with UDP receive > > packets. As far as I have experienced, TCP/UDP checksumming in NIC should > > have little or no difference. Too bad that the firmware is under NDA. > > > > Which RC? Try updating to -stable (or 4.7-release) and then > try applying the patch in rev 1.21 (disable memory write invalidate). > > http://www.freebsd.org/cgi/cvsweb.cgi/src/sys/dev/bge/if_bge.c.diff?r1=1.20&r2=1.21 > > > Drew > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-net" in the body of the message