From owner-freebsd-questions@FreeBSD.ORG Wed Nov 24 21:02:50 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A110110657AB for ; Wed, 24 Nov 2010 21:02:50 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id 6CCAD8FC14 for ; Wed, 24 Nov 2010 21:02:50 +0000 (UTC) Received: by pxi1 with SMTP id 1so66455pxi.13 for ; Wed, 24 Nov 2010 13:02:49 -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=QdO8NCVR5j+Phb9xcDgdazpWRwY5jAdPUwHe/r45+vs=; b=UIZDnCK7KYgsiFs67o43KPhi21h4X1vlHcJ7ty6r6Q7Fxmmox2pV1+zc/RdJvBzm2u UQnswK8hu231l/xR/i0zqMS4t+heydWSWiRRou/SNDThYCGIV57innzGo2672EsYYLiZ naiGTDveMYlDZ9zVN05cv7czVsX0XH//ulYi8= 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=wNIyA2nF5O9e7pm/r3eSPRDKG+RnMAH0XihVgGpQk8lJLfAZ8AUpEcqS3hcPekIwJC cG5doSuHD4a5VprHPMN++EHdE3vGT6DnnuAu1lTgBOqGWbf6WK9EtVZ4y+YAkpIZa1l+ Ug7iUPjpBZUEavIBgdSpF+VB0+H/aNMPwdaIY= Received: by 10.142.83.10 with SMTP id g10mr4784538wfb.179.1290630975622; Wed, 24 Nov 2010 12:36:15 -0800 (PST) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id f5sm6544584wfg.2.2010.11.24.12.36.12 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 24 Nov 2010 12:36:13 -0800 (PST) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 24 Nov 2010 12:35:08 -0800 From: Pyun YongHyeon Date: Wed, 24 Nov 2010 12:35:08 -0800 To: Garrett Cooper Message-ID: <20101124203508.GB14165@michelle.cdnetworks.com> References: <7EA93980-478A-418A-8FB1-3249097A7011@forsythia.net> 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: FreeBSD Stable , Andrew Moran , freebsd-questions@FreeBSD.org, Pyun YongHyeon Subject: Re: msk0 interface stops working when downloading X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Nov 2010 21:02:50 -0000 On Tue, Nov 23, 2010 at 04:10:03PM -0800, Garrett Cooper wrote: > On Tue, Nov 23, 2010 at 3:25 PM, Andrew Moran wrote: > > > > Hey guys, > > > > After banging my head against this for a few hours, I've decided to ask for help. ? ? ?I installed FreeBSD 8.1 amd64 on a Shuttle J1 4100 system (tech specs here http://us.shuttle.com/J1_4100.aspx). ? I installed from DVD and the install went fine. > > > > I notice when I pkg_add -r anything, ?the network stops responding. > > > > Some details: > > > > 1) I can reproduce it 100% by downloading a large file. ? ? low traffic like the SSH connection does not trigger it. ? I think it's being triggered by traffic above a certain rate. > > 2) I can recover by restarting the network interfaces (/etc/rc.d/netif stop; ?/etc/rc.d/netif start) > > 3) I see no errors in dmesg or /var/log/messages. ?Nothing at all. > > 4) I've tried the following in /etc/sysctl.conf: > > net.inet.tcp.tso=0 > > net.inet.tcp.inflight.enable=0 > > > > and in /boot/loader.conf: > > hw.pci.enable_msix="0" > > hw.pci.enable_msi="0" > > hw.bce.tso_enable="0" > > > > But the problem persists. > > > > The interface is identified as: > > > > mskc0: port 0xe800-0xe8ff mem 0xfebfc000-0xfebfffff irq 17 at device 0.0 on pci2 > > msk0: on mskc0 > > msk0: Ethernet address: 80:ee:73:01:60:7d > > miibus0: on msk0 > > e1000phy0: PHY 0 on miibus0 > > e1000phy0: ?10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > > mskc0: [ITHREAD] > > > > Does anyone know what could be causing this or how I can resolve it? ? Any help is appreciated, thanks. > > 1. freebsd-stable is the proper list, not freebsd-current. > 2. I have a similar chipset (not the same though) that hasn't had > any issues for a while: > > $ pciconf -lv | grep -A 3 msk > mskc0@pci0:2:0:0: class=0x020000 card=0x81f81043 chip=0x436411ab > rev=0x12 hdr=0x00 > vendor = 'Marvell Semiconductor (Was: Galileo Technology Ltd)' > device = 'Yukon PCI-E Gigabit Ethernet Controller (88E8056)' > class = network > $ devinfo -v | grep -A 3 mskc0 > mskc0 pnpinfo vendor=0x11ab device=0x4364 subvendor=0x1043 > subdevice=0x81f8 class=0x020000 at slot=0 function=0 > msk0 > miibus0 > e1000phy0 pnpinfo oui=0x5043 model=0xb rev=0x1 at phyno=0 > $ uname -a > FreeBSD orangebox.local 9.0-CURRENT FreeBSD 9.0-CURRENT #0 r215607M: > Sat Nov 20 21:22:34 UTC 2010 > gcooper@orangebox.local:/usr/obj/usr/src/sys/ORANGEBOX amd64 > > Sorry for not grabbing the full dmesg output, but unfortunately I > have BUS_DEBUG turned on for this test box, which blows out my syslog > buffer at boot :). > I've CCed yongari@ for comment. It seems there are a couple of msk(4) issues on Yukon Ultra and Ultra II controllers. Some revisions appear to work without problems but others didn't work well. You may have noticed there are a couple of msk(4) related PRs. Perhaps I have to sit down and verify every register access patterns and check controller status. For long time, one of the problem was lack of hardware access. There is no standalone PCIe Yukon Ultra/Ultra II controllers in market so it looks hard to get it in near future. :-( > Thanks, > -Garrett