From owner-freebsd-stable@FreeBSD.ORG Fri Feb 26 22:31:47 2010 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5A9681065670 for ; Fri, 26 Feb 2010 22:31:47 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-gy0-f182.google.com (mail-gy0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id 0C5638FC12 for ; Fri, 26 Feb 2010 22:31:46 +0000 (UTC) Received: by gya1 with SMTP id 1so335645gya.13 for ; Fri, 26 Feb 2010 14:31:43 -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=LQ0o/DsCYFUtvW6f+VrDYZeCagKgf/VMd6FvtsQcU9U=; b=HumD9LhrYz65Ndh9R68hm3vOWb9leZwG4eL3RJaqCF1/xPpxvLabo4ivTKktGd85Xj SUduYp0ZKlfmmiwr1pP7ssFvcM73+575ms/3RUnjkfPYaAjdqG+W45e6QG1fUC/FszMS uGqIeMT4rYwX4nEHm3PvYs+eW9PJRMc9jxx/M= 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=T7lvdTbMRQnPWGjiQwM7bRmbjkCGR6Jw0VOdsetgXKxHA24Dry1kmiS6zB3HDxyUYj pt1NiCVQZ6me9PvVUfSMWbq5n9DfOhl/St6gJzzzMWsG1U0Zte98AXCzdnud672WuXET tbM9rZknJ6If5ghcGC//cni/JdKdlhfufp9qk= Received: by 10.101.206.22 with SMTP id i22mr1775002anq.36.1267223503770; Fri, 26 Feb 2010 14:31:43 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 14sm409781gxk.3.2010.02.26.14.31.40 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 26 Feb 2010 14:31:41 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Fri, 26 Feb 2010 14:31:06 -0800 From: Pyun YongHyeon Date: Fri, 26 Feb 2010 14:31:06 -0800 To: Jonathan Chen Message-ID: <20100226223106.GN13807@michelle.cdnetworks.com> References: <20100202193616.GA16953@osiris.chen.org.nz> <20100202212029.GA5295@asgard.cs.uoi.gr> <20100203225255.GB14315@osiris.chen.org.nz> <20100204012503.GK5901@michelle.cdnetworks.com> <20100204020015.GA17301@osiris.chen.org.nz> <20100204192315.GN5901@michelle.cdnetworks.com> <20100204213137.GA9431@osiris.chen.org.nz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100204213137.GA9431@osiris.chen.org.nz> User-Agent: Mutt/1.4.2.3i Cc: freebsd-stable@freebsd.org Subject: Re: if_bge upload stalls repeatedly (Was: 8-STABLE outgoing scp stalling frequently) X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 26 Feb 2010 22:31:47 -0000 On Fri, Feb 05, 2010 at 10:31:37AM +1300, Jonathan Chen wrote: > On Thu, Feb 04, 2010 at 11:23:15AM -0800, Pyun YongHyeon wrote: > > On Thu, Feb 04, 2010 at 03:00:15PM +1300, Jonathan Chen wrote: > > > On Wed, Feb 03, 2010 at 05:25:03PM -0800, Pyun YongHyeon wrote: > [...] > > > > I'm not sure but recently added code to support TSO may cause the > > > > issue. Would you show me verbose boot output(only bge(4) related > > > > one)? > > > > > > bge0: mem 0xf1bf0000-0xf1bfffff irq 17 at device 0.0 on pci9 > > > bge0: Reserved 0x10000 bytes for rid 0x10 type 3 at 0xf1bf0000 > > > bge0: adjust device control 0x2000 -> 0x5000 > > > bge0: attempting to allocate 1 MSI vectors (1 supported) > > > bge0: using IRQ 258 for MSI > > > bge0: CHIP ID 0x0000a002; ASIC REV 0x0a; CHIP REV 0xa0; PCI-E > > > bge0: Disabling fastboot > > > bge0: Disabling fastboot > > > miibus0: on bge0 > > > bge0: bpf attached > > > bge0: Ethernet address: 00:1d:09:d2:d1:9e > > > bge0: [MPSAFE] > > > bge0: [FILTER] > > > bge0: Disabling fastboot > > > bge0: Disabling fastboot > > > bge0: link UP > > > > > > >To rule out possible TSO issue, disable TSO and try it > > > > again(#ifconfig bge0 -tso). Does it make any difference? > > > > > > Yup, it sure does! With a TSO disabled, my upload and download speeds > > > are pretty much symmetrical at a decent 10MB/s. > > > > > > > Hmm, that means TSO was broken on your controller. Because BCM5755 > > or newer controllers have no known TSO issues I don't know why the > > controller fails on TSO. Very recent controllers use new TSO format > > but I don't think your controller is one of them and FreeBSD has no > > support for these controllers anyway. > > Would you show me the output of "pciconf -lcv" of your bge(4) > > controller? > > bge0@pci0:9:0:0: class=0x020000 card=0x01fe1028 chip=0x167314e4 rev=0x02 hdr=0x00 > vendor = 'Broadcom Corporation' > device = 'NetXtreme BCM5755M Gigabit Ethernet PCIe' > class = network > subclass = ethernet > cap 01[48] = powerspec 3 supports D0 D3 current D0 > cap 03[50] = VPD > cap 09[58] = vendor (length 120) > cap 05[e8] = MSI supports 1 message, 64 bit enabled with 1 message > cap 10[d0] = PCI-Express 1 endpoint max data 128(128) link x1(x1) > > This is on a Dell Latitude D830 Laptop. > I committed a fix which disables TSO on BCM5755M. Still have no idea why it fails though. Thanks for reporting!