From owner-freebsd-net@FreeBSD.ORG Tue Nov 18 23:01:38 2008 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3DB6A106564A for ; Tue, 18 Nov 2008 23:01:38 +0000 (UTC) (envelope-from brad@comstyle.com) Received: from mail.comstyle.com (unknown [IPv6:2001:470:1d:8c::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0B8878FC0A for ; Tue, 18 Nov 2008 23:01:38 +0000 (UTC) (envelope-from brad@comstyle.com) Received: from [192.168.3.33] (toronto-hs-216-138-195-228.s-ip.magma.ca [216.138.195.228]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: brad) by mail.comstyle.com (Postfix) with ESMTPSA id 7CACF9840B; Tue, 18 Nov 2008 18:01:14 -0500 (EST) From: Brad To: freebsd-net@freebsd.org, Marius Strobl Date: Tue, 18 Nov 2008 18:01:10 -0500 User-Agent: KMail/1.9.10 References: <200811182250.mAIMo4gb028171@freefall.freebsd.org> In-Reply-To: <200811182250.mAIMo4gb028171@freefall.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811181801.10997.brad@comstyle.com> X-comstyle-MailScanner-Information: Please contact the ISP for more information X-comstyle-MailScanner-ID: 7CACF9840B.6F6DF X-comstyle-MailScanner: Found to be clean X-comstyle-MailScanner-From: brad@comstyle.com X-Spam-Status: No Cc: Subject: Re: kern/128833: [bge] Network packets corrupted when bge card is in 64-bit PCI slot X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 18 Nov 2008 23:01:38 -0000 On Tuesday 18 November 2008 17:50:04 Marius Strobl wrote: > The following reply was made to PR kern/128833; it has been noted by GNATS. > > From: Marius Strobl > To: =?unknown-8bit?Q?Aur=E9lien_M=E9r=E9?= > Cc: bug-followup@FreeBSD.org > Subject: Re: kern/128833: [bge] Network packets corrupted when bge card is > in 64-bit PCI slot Date: Tue, 18 Nov 2008 23:46:21 +0100 > > On Mon, Nov 17, 2008 at 02:37:51AM +0100, Aurlien Mr wrote: > > Hi > > As first check, when device is being attached, here are the values > > reported and the diff : > > > > in 32 bit slot : > > BGE_PCI_PCISTATE = 0x96 (0x86 | BGE_PCISTATE_32BIT_BUS) > > bge_flags = 0x120E (0x100E | BGE_FLAG_PCIX) > > > > in 64 bit slot : > > BGE_PCI_PCISTATE = 0x8E (0x86 | BGE_PCISTATE_PCI_BUSSPEED) > > bge_flags = 0x1A0E (0x100E | BGE_FLAG_PCIX | BGE_FLAG_64BIT) > > > > Seems logical so far, I'll try to look further. > > Apart from the problem described by davidch@ (I'm not sure > you actually have a BCM5701 A3 though, at least bge(4) doesn't > seem to be aware of that revision) the BGE_PCI_PCISTATE and > bge_flags pairs you reported don't match though; according > to BGE_PCI_PCISTATE the card isn't in a PCI-X slot in either > case (BGE_PCISTATE_PCI_BUSMODE is always set, which means > PCI) and AFAICT your motherboard chipset also doesn't > support PCI-X. However, as you noted BGE_FLAG_PCIX is set > for whatever reason in both cases, which leads to some > inappropriate initialization of the controller. As a quick > test could you please check whether replacing the "#if > __FreeBSD_version > 602101" in the driver with an "#if 0" > makes any difference to your problem? The PCI-X check which is used for I'm guessing FreeBSD 7 and newer is wrong. Older versions get it right. -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.