From owner-freebsd-current@FreeBSD.ORG Fri Mar 5 21:05:07 2010 Return-Path: Delivered-To: current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4D903106564A for ; Fri, 5 Mar 2010 21:05:07 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-ew0-f228.google.com (mail-ew0-f228.google.com [209.85.219.228]) by mx1.freebsd.org (Postfix) with ESMTP id CE90A8FC20 for ; Fri, 5 Mar 2010 21:05:06 +0000 (UTC) Received: by ewy28 with SMTP id 28so669098ewy.13 for ; Fri, 05 Mar 2010 13:04:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:from:date:to:cc :subject:message-id:reply-to:references:mime-version:content-type :content-disposition:in-reply-to:user-agent; bh=KPBh1o5A5XLh8w2bIX2AdEnYG+LnNGBY/CVprSf6bWI=; b=eQg4dlqlD2gW/jC46kmRWczqaAgfFiSKrZAIojRy8xHcUppxEFTMpHVR9XwNi5uCc1 BxWRcewa6Okxo00HgMHR0+Qo2WZu9VNvaHEokjK6r5Y14nWXGkZY+wxSEzwPbxNCLIj9 oYQNHZ9rWf46NynP7lYRa9/XvhuepHnHJMss0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:date:to:cc:subject:message-id:reply-to:references:mime-version :content-type:content-disposition:in-reply-to:user-agent; b=u8IwjDOZLlodT7zf+UhM7+AG8SZMrdYDMZLVv4BYB+1+fxAvrJNRT00U8p/RxuP4h8 XR4pSiD8jbklTYkProqbuEI3Qn8BOi1zGX09o+Hlo/5GkNlimZqc+1CupL6UxD2cHoCP SG1nKJ7F3+likL3u7+B2Kh2WL9ltwPw4chA/A= Received: by 10.213.100.226 with SMTP id z34mr790431ebn.74.1267823096547; Fri, 05 Mar 2010 13:04:56 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 16sm1258016ewy.15.2010.03.05.13.04.53 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 05 Mar 2010 13:04:54 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 5 Mar 2010 13:04:35 -0800 From: Pyun YongHyeon Date: Fri, 5 Mar 2010 13:04:35 -0800 To: Ian FREISLICH Message-ID: <20100305210435.GF14818@michelle.cdnetworks.com> References: <20100305184046.GD14818@michelle.cdnetworks.com> <20100305175639.GB14818@michelle.cdnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: current@freebsd.org Subject: Re: dev.bce.X.com_no_buffers increasing and packet loss X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Mar 2010 21:05:07 -0000 On Fri, Mar 05, 2010 at 10:20:18PM +0200, Ian FREISLICH wrote: > Pyun YongHyeon wrote: > > > > Would you show me the output of dmesg(bce(4)/brgphy(4) only) and > > the output of "pciconf -lcbv" for the controller? > > [firewall1.jnb1] ~ # egrep "bce|brgphy" /var/run/dmesg.boot > bce0: mem 0xe6000000-0xe7ffffff irq 72 at device 0.0 on pci4 > miibus0: on bce0 > brgphy0: PHY 1 on miibus0 > brgphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > bce0: Ethernet address: 00:1e:c9:4a:33:b9 > bce0: [ITHREAD] > bce0: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); B/C (4.0.3); Flags (MSI|MFW); MFW (ipms 1.6.0) > bce1: mem 0xe8000000-0xe9ffffff irq 75 at device 0.0 on pci6 > miibus1: on bce1 > brgphy1: PHY 1 on miibus1 > brgphy1: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > bce1: Ethernet address: 00:1e:c9:4a:33:bb > bce1: [ITHREAD] > bce1: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); B/C (4.0.3); Flags (MSI|MFW); MFW (ipms 1.6.0) > bce2: mem 0xea000000-0xebffffff irq 33 at device 0.0 on pci8 > miibus2: on bce2 > brgphy2: PHY 1 on miibus2 > brgphy2: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > bce2: Ethernet address: 00:1e:4f:fb:cf:c5 > bce2: [ITHREAD] > bce2: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); B/C (4.0.3); Flags (MSI|MFW); MFW (ipms 1.6.0) > bce3: mem 0xec000000-0xedffffff irq 37 at device 0.0 on pci10 > miibus3: on bce3 > brgphy3: PHY 1 on miibus3 > brgphy3: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > bce3: Ethernet address: 00:1e:4f:fb:cf:c7 > bce3: [ITHREAD] > bce3: ASIC (0x57081020); Rev (B2); Bus (PCI-X, 64-bit, 133MHz); B/C (4.0.3); Flags (MSI|MFW); MFW (ipms 1.6.0) > > bce0@pci0:4:0:0: class=0x020000 card=0x02231028 chip=0x164c14e4 rev=0x12 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' > class = network > subclass = ethernet > bar [10] = type Memory, range 64, base 0xe6000000, size 33554432, enabled > cap 07[40] = PCI-X 64-bit supports 133MHz, 512 burst read, 8 split transactions > cap 01[48] = powerspec 2 supports D0 D3 current D0 > cap 03[50] = VPD > cap 05[58] = MSI supports 1 message, 64 bit enabled with 1 message > bce1@pci0:6:0:0: class=0x020000 card=0x02231028 chip=0x164c14e4 rev=0x12 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' > class = network > subclass = ethernet > bar [10] = type Memory, range 64, base 0xe8000000, size 33554432, enabled > cap 07[40] = PCI-X 64-bit supports 133MHz, 512 burst read, 8 split transactions > cap 01[48] = powerspec 2 supports D0 D3 current D0 > cap 03[50] = VPD > cap 05[58] = MSI supports 1 message, 64 bit enabled with 1 message > bce2@pci0:8:0:0: class=0x020000 card=0x1f121028 chip=0x164c14e4 rev=0x12 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' > class = network > subclass = ethernet > bar [10] = type Memory, range 64, base 0xea000000, size 33554432, enabled > cap 07[40] = PCI-X 64-bit supports 133MHz, 512 burst read, 8 split transactions > cap 01[48] = powerspec 2 supports D0 D3 current D0 > cap 03[50] = VPD > cap 05[58] = MSI supports 1 message, 64 bit enabled with 1 message > bce3@pci0:10:0:0: class=0x020000 card=0x1f121028 chip=0x164c14e4 rev=0x12 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'Broadcom NetXtreme II Gigabit Ethernet Adapter (BCM5708)' > class = network > subclass = ethernet > bar [10] = type Memory, range 64, base 0xec000000, size 33554432, enabled > cap 07[40] = PCI-X 64-bit supports 133MHz, 512 burst read, 8 split transactions > cap 01[48] = powerspec 2 supports D0 D3 current D0 > cap 03[50] = VPD > cap 05[58] = MSI supports 1 message, 64 bit enabled with 1 message > Thanks for the info. Frankly, I have no idea how to explain the issue given that you have no heavy load. I have a bce(4) patch which fixes a couple of bus_dma(9) issues as well as fixing some minor bugs. However I don't know whether the patch can fix the RX issue you're suffering from. Anyway, would you give it try the patch at the following URL? http://people.freebsd.org/~yongari/bce/bce.20100305.diff The patch was generated against CURRENT and you may see a message like "Disabling COAL_NOW timedout!" during interface up. You can ignore that message.