From owner-freebsd-net@FreeBSD.ORG Wed Aug 11 21:29:14 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 230C6106566B for ; Wed, 11 Aug 2010 21:29:14 +0000 (UTC) (envelope-from pyunyh@gmail.com) Received: from mail-pz0-f54.google.com (mail-pz0-f54.google.com [209.85.210.54]) by mx1.freebsd.org (Postfix) with ESMTP id E127E8FC12 for ; Wed, 11 Aug 2010 21:29:13 +0000 (UTC) Received: by pzk7 with SMTP id 7so248408pzk.13 for ; Wed, 11 Aug 2010 14:29:13 -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=QXLPLydE2v123ieJVFZZiNIQhhXsrCCcBZtNGvzKxao=; b=k6cVPIzH7sFHOPHpGjJnp9WfekF4bThy7QvwPwh3lAZ/xFwJldts2+z01Fp78zHSBX N3vmDtOr9rzYzycd/Lg7WfigFehJkPGTkkYlRY19nU4WNN8yXjKg16BU66cJvAH37jIW ZXax0mf9sSkdgTE7ijBvNY1bzWkF/ejxMmMPo= 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=f5rhiM8PAiKCrfd3UvtVSlgNwUHyIlVdplObLiDyR54lW7fJnlfblMqyG8fv1fOQL4 pFDW3FuBU6OFd8DRz3kMMeL2UkI86EsJahf0kQ43+mKCkwHcJXq5pYjGwIp4yHIWSH95 GYlXbV3Wfe+wbuO+O07ce9pEYFUgNnctBISIs= Received: by 10.142.156.16 with SMTP id d16mr16628357wfe.324.1281562153479; Wed, 11 Aug 2010 14:29:13 -0700 (PDT) Received: from pyunyh@gmail.com ([174.35.1.224]) by mx.google.com with ESMTPS id q27sm616969wfc.6.2010.08.11.14.29.11 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 11 Aug 2010 14:29:12 -0700 (PDT) Received: by pyunyh@gmail.com (sSMTP sendmail emulation); Wed, 11 Aug 2010 14:29:11 -0700 From: Pyun YongHyeon Date: Wed, 11 Aug 2010 14:29:11 -0700 To: Zeus V Panchenko Message-ID: <20100811212911.GG15858@michelle.cdnetworks.com> References: <20100811193407.GB80360@ibs.dn.ua> <20100811200914.GE15858@michelle.cdnetworks.com> <20100811202456.GC80360@ibs.dn.ua> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="ikeVEW9yuYc//A+q" Content-Disposition: inline In-Reply-To: <20100811202456.GC80360@ibs.dn.ua> User-Agent: Mutt/1.4.2.3i Cc: 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 21:29:14 -0000 --ikeVEW9yuYc//A+q Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Wed, Aug 11, 2010 at 11:24:56PM +0300, Zeus V Panchenko wrote: > Pyun YongHyeon (pyunyh@gmail.com) [10.08.11 23:09] wrote: > > On Wed, Aug 11, 2010 at 10:34:07PM +0300, Zeus V Panchenko wrote: > > > oh, i forgoten :( > > > > > > dmesg.boot contains: > > > > > > re0: port 0xe800-0xe8ff mem 0xfafff000-0xfaffffff,0xfaff8000-0xfaffbfff irq 17 at device 0.0 on pci2 > > > re0: Using 1 MSI messages > > > re0: Chip rev. 0x28000000 > > > re0: MAC rev. 0x00000000 > > > miibus0: on re0 > > > rgephy0: PHY 1 on miibus0 > > > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > > > re0: Ethernet address: 48:5b:39:d2:1d:89 > > > re0: [FILTER] > > > > > > > >From the output above, I believe you're using slightly old stable. > > Please use 8.1-RELEASE and let me know how it works on 8.1-RELEASE. > > ooops .... sorry, it was another box > here the one i was begining from and where the problem persists too > > > uname -a > FreeBSD egw.ibs.dn.ua 8.1-STABLE FreeBSD 8.1-STABLE #0: Mon Aug 9 10:33:17 EEST 2010 root@egw.ibs.dn.ua:/usr/obj/usr/src/sys/EGW amd64 > > re0: port 0xe800-0xe8ff mem 0xfafff000-0xfaffffff,0xfaff8000-0xfaffbfff irq 17 at device 0.0 on pci2 > re0: Using 1 MSI messages > re0: Chip rev. 0x28000000 > re0: MAC rev. 0x00000000 > miibus0: on re0 > rgephy0: PHY 1 on miibus0 > rgephy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto > re0: Ethernet address: 20:cf:30:89:5e:95 > re0: [FILTER] > > > devinfo -rv > rgephy0 pnpinfo oui=0x732 model=0x11 rev=0x2 at phyno=1 > > i was cvsup-ing a couple of days ago ... now i have killed all tree and cvs-ing again ... > Ok thanks for the info. Would you try attached patch and let me know whether it makes any difference? --ikeVEW9yuYc//A+q Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="re.8168D.patch" Index: sys/dev/re/if_re.c =================================================================== --- sys/dev/re/if_re.c (revision 211176) +++ sys/dev/re/if_re.c (working copy) @@ -1311,6 +1311,8 @@ * RTL8111C/CP : supports up to 9KB jumbo frame. */ sc->rl_flags |= RL_FLAG_NOJUMBO; + if (hw_rev->rl_rev == RL_HWREV_8168D) + sc->rl_flags |= RL_FLAG_PHYWAKE_PM; break; case RL_HWREV_8168E: sc->rl_flags |= RL_FLAG_PHYWAKE | RL_FLAG_PHYWAKE_PM | --ikeVEW9yuYc//A+q--