Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Aug 2010 14:29:11 -0700
From:      Pyun YongHyeon <pyunyh@gmail.com>
To:        Zeus V Panchenko <zeus@ibs.dn.ua>
Cc:        FreeBSD Net <freebsd-net@freebsd.org>
Subject:   Re: re0 link UP/DOWN on 8.1-STABLE amd64
Message-ID:  <20100811212911.GG15858@michelle.cdnetworks.com>
In-Reply-To: <20100811202456.GC80360@ibs.dn.ua>
References:  <20100811193407.GB80360@ibs.dn.ua> <20100811200914.GE15858@michelle.cdnetworks.com> <20100811202456.GC80360@ibs.dn.ua>

next in thread | previous in thread | raw e-mail | index | archive | help

--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: <RealTek 8168/8168B/8168C/8168CP/8168D/8111B/8111C/8111CP PCIe Gigabit Ethernet> 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: <MII bus> on re0
> > > rgephy0: <RTL8169S/8110S/8211B media interface> 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: <RealTek 8168/8111 B/C/CP/D/DP/E PCIe Gigabit Ethernet> 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: <MII bus> on re0
> rgephy0: <RTL8169S/8110S/8211B media interface> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20100811212911.GG15858>