From owner-freebsd-net@FreeBSD.ORG Wed Aug 11 20:10:57 2010 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 75F341065674 for ; Wed, 11 Aug 2010 20:10:57 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pw0-f54.google.com (mail-pw0-f54.google.com [209.85.160.54]) by mx1.freebsd.org (Postfix) with ESMTP id 4377B8FC1E for ; Wed, 11 Aug 2010 20:10:57 +0000 (UTC) Received: by pwj4 with SMTP id 4so220156pwj.13 for ; Wed, 11 Aug 2010 13:10:56 -0700 (PDT) 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=UZ5Je5JexZ248Hx+JI67BTmVgEGQ62FIt3copj+9r9k=; b=eYmqTEr5PBzQMI3yAjZJWDMV9AyQcWqZIqOULFn2ZWKIewFOFJbfVUbj9GXR2iWs+E G9EkilCN3gg0mmVQrpi2fyD26D8jOiRh9ThmH7WFyOs1QHQ5WYbEs+Nk5A5p9lERXciG 2hFBW9BP96WJdUVC9O71hF4AfheGFBHEuCU9s= 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=Gk21z2J49ELxO2tJQCwaOJ4Y4PWDVrALs8CAXG3wmO/8MRi6XYPGtdWg/B6b0LiFwM C5YS2fasYd94RpqlCLLMxzl7ZgewAJpoT2Pdwp+/MecVsOFIRpQ15GbLhh/X5s52h0M8 ojkIeWoIhaPCBNuoZjYTJycTQT4Mjmpg+9d9E= Received: by 10.114.39.2 with SMTP id m2mr11240490wam.45.1281557456689; Wed, 11 Aug 2010 13:10:56 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id 33sm790928wad.18.2010.08.11.13.10.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Aug 2010 13:10:55 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 11 Aug 2010 13:10:54 -0700 From: Pyun YongHyeon Date: Wed, 11 Aug 2010 13:10:54 -0700 To: Tom Pusateri Message-ID: <20100811201054.GF15858@michelle.cdnetworks.com> References: <20100811125014.GA98316@ibs.dn.ua> <20100811163136.GA15858@michelle.cdnetworks.com> <20100811191118.GA80360@ibs.dn.ua> <80C5318F-9B83-4342-93DC-36C48470EAE5@bangj.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <80C5318F-9B83-4342-93DC-36C48470EAE5@bangj.com> User-Agent: Mutt/1.4.2.3i Cc: zeus.panchenko@gmail.com, FreeBSD Net Subject: Re: re0 link UP/DOWN on 8.1-STABLE amd64 X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: pyunyh@gmail.com List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 11 Aug 2010 20:10:57 -0000 On Wed, Aug 11, 2010 at 03:27:48PM -0400, Tom Pusateri wrote: > > On Aug 11, 2010, at 3:11 PM, Zeus V Panchenko wrote: > > > Pyun YongHyeon (pyunyh@gmail.com) [10.08.11 19:31] wrote: > >> On Wed, Aug 11, 2010 at 03:50:14PM +0300, Zeus V Panchenko wrote: > >>> Hi All, > >>> > >>> can enybody help with the subj, please? > >>> > >>> problem: onboard interface re0 link state UP/DOWN flapping > >>> > >>> > >>> i have: > >>> # uname -a > >>> FreeBSD 8.1-STABLE #0: Mon Aug 9 10:33:17 EEST 2010 amd64 > >>> > >>> # dmidecode > >>> ... > >>> Base Board Information > >>> Manufacturer: ASUSTeK Computer INC. > >>> Product Name: AT5NM10-I > >>> ... > >>> > >>> # pciconf -lcv > >>> re0@pci0:2:0:0: class=0x020000 card=0x83a31043 chip=0x816810ec rev=0x03 hdr=0x00 > >>> vendor = 'Realtek Semiconductor' > >>> device = 'Gigabit Ethernet NIC(NDIS 6.0) (RTL8168/8111/8111c)' > >>> class = network > >>> subclass = ethernet > >>> cap 01[40] = powerspec 3 supports D0 D1 D2 D3 current D0 > >>> cap 05[50] = MSI supports 1 message, 64 bit enabled with 1 message > >>> cap 10[70] = PCI-Express 2 endpoint IRQ 2 max data 128(256) link x1(x1) > >>> cap 11[ac] = MSI-X supports 4 messages in map 0x20 > >>> cap 03[cc] = VPD > >>> > >>> > >>> # ifconfig re0 > >>> re0: flags=8843 metric 0 mtu 1500 > >>> options=389b > >>> ether 20:cf:30:89:5e:95 > >>> inet 10.10.0.111 netmask 0xffff0000 broadcast 10.10.255.255 > >>> media: Ethernet 1000baseT > >>> status: active > >>> > >>> > >>> > >>> > >>> sporadically interface begins to flap and dmesg shows: > >>> ... > >>> Aug 11 14:29:44 kernel: re0: link state changed to DOWN > >>> Aug 11 14:29:47 kernel: re0: link state changed to UP > >>> Aug 11 14:29:58 kernel: re0: link state changed to DOWN > >>> Aug 11 14:30:01 kernel: re0: link state changed to UP > >>> ... > >>> > >>> > >>> systat doesn't show high interrupts on the card > >>> # systat -v > >>> 1 users Load 0.06 0.02 0.00 Aug 11 15:45 > >>> > >>> Mem:KB REAL VIRTUAL VN PAGER SWAP PAGER > >>> Tot Share Tot Share Free in out in out > >>> Act 1069020 177580 2968312 209660 455852 count > >>> All 1149408 184236 1076855k 251780 pages > >>> Proc: Interrupts > >>> r p d s w Csw Trp Sys Int Sof Flt 278 cow 8057 total > >>> 1 74 885 842 1181 57 268 736 278 zfod atkbd0 1 > >>> ozfod 22 rl0 irq17 > >>> 0.4%Sys 0.1%Intr 0.2%User 0.0%Nice 99.3%Idle %ozfod 2000 cpu0: time > >>> | | | | | | | | | | | daefr 33 re0 irq256 > >>> 379 prcfr 2 ahci0 257 > >>> 29 dtbuf 704 totfr 2000 cpu1: time > >>> Namei Name-cache Dir-cache 100000 desvn react 2000 cpu3: time > >>> Calls hits % hits % 87484 numvn pdwak 2000 cpu2: time > >>> 921 921 100 24183 frevn pdpgs > >>> 3 intrn > >>> Disks ada0 ada1 pass0 pass1 576392 wire > >>> KB/t 21.40 0.00 0.00 0.00 1040084 act > >>> tps 2 0 0 0 1948900 inact > >>> MB/s 0.04 0.00 0.00 0.00 cache > >>> %busy 0 0 0 0 455852 free > >>> 427520 buf > >>> > >>> > >>> i have changed motherboards ... the same effect. after some time the > >>> problem appears again > >>> > >>> > >>> is there any info i can provide? > >>> > >> > >> Show me the output of dmesg and "devinfo -rv | rgephy". > > > > dmesg contains lines as above: > > ... > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > re0: link state changed to DOWN > > re0: link state changed to UP > > ... > > > > # dmesg|wc -l > > 1917 > > > > as for the devinfo, here it is: > > > > # devinfo -rv | grep rgephy > > rgephy0 pnpinfo oui=0x732 model=0x11 rev=0x2 at phyno=1 > > > > now all of the boxes which were trasfered to that motherboard shows the same simptoms :( ... > > > > and what i have to add is that external card doesn't show this behaviour! :( > > > > on the ather box with the same hardware but additional nic: > > > > # devinfo -rv | grep rgephy > > rgephy0 pnpinfo oui=0x732 model=0x11 rev=0x2 at phyno=1 > > rgephy1 pnpinfo oui=0x732 model=0x11 rev=0x3 at phyno=1 > > > > # pciconf -lcv > > re1@pci0:1:0:0: class=0x020000 card=0x43001186 chip=0x43001186 rev=0x10 hdr=0x00 > > vendor = 'D-Link System Inc' > > device = 'dlg10028 Used on DGE-528T Gigabit adaptor' > > class = network > > subclass = ethernet > > cap 01[dc] = powerspec 2 supports D0 D1 D2 D3 current D0 > > > > > > -- > > Zeus V. Panchenko > > > > This has been happening to me as well on a 7.1 system with a built-in ethernet on an ASUS motherboard: > There were a lot of re(4) changes since 7.1-RELEASE. Please try 8.1-RELEASE and see whether you still sees the issue or not. > pusateri [jj:1001] devinfo -rv | grep rgephy > rgephy0 pnpinfo oui=0x732 model=0x11 rev=0x2 at phyno=1 > pusateri [jj:1002] uname -a > FreeBSD jj.bangj.com 7.1-RELEASE-p8 FreeBSD 7.1-RELEASE-p8 #0: Fri Oct 2 04:45:57 UTC 2009 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64 > > from dmesg.boot: > > re0: rnet> port 0xd800-0xd8ff mem 0xfbaff000-0xfbafffff,0xfaff0000-0xfaffffff irq 18 > at device 0.0 on pci2 > re0: Chip rev. 0x3c000000 > re0: MAC rev. 0x00400000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-F > DX, auto > re0: Ethernet address: 00:22:15:73:3e:61 > re0: [FILTER] > > From dmesg: > > re0: watchdog timeout > re0: link state changed to DOWN > re0: link state changed to UP > >