Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Mar 2014 21:18:55 -0500
From:      "J.R. Oldroyd" <fbsd@opal.com>
To:        freebsd-net@freebsd.org
Subject:   Link DOWN/UP on RealTek 8169SC/8110SC <-> 8168/8111
Message-ID:  <20140304211855.539990f9@shibato>

next in thread | raw e-mail | index | archive | help
I'm having the "link state changed to DOWN/UP" problem on a GigE link
between two FreeBSD re(4) devices.  Both systems are releng/10.0.

It is flapping a lot... as much as several times a minute.  The link
is down for 3 seconds, when it comes up dhclient takes a bit longer
to re-init the IP.  It is pretty much unusable most of the time!

One end is a 8169SC/8110SC (RL_HWREV_8169_8110SC), the other end
is a 8168/8111 (RL_HWREV_8168D).

dmesg, devinfo and ifconfig for both ends follows.

I've tried adding the RL_FLAG_PHYWAKE_PM flag on the 8169SC/8110SC device
as was suggested before in similar discussions.  No help.  I don't have
the technical docs (they require an NDA to download) so it was a guess
anyway.  

Any suggestions for how to fix?

They work just fine at 100baseTX.

Thanks,
	-jr



# dmesg | grep re1
re1: <RealTek 8169SC/8110SC Single-chip Gigabit Ethernet> port 0xe800-0xe8ff mem 0xfebffc00-0xfebffcff irq 18 at device 4.0 on pci4
re1: Chip rev. 0x18000000
re1: MAC rev. 0x00000000
miibus1: <MII bus> on re1
re1: Ethernet address: 00:30:18:a5:5e:6c
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: watchdog timeout
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP
re1: link state changed to DOWN
re1: link state changed to UP

# devinfo -rv | grep re1
            re1 pnpinfo vendor=0x10ec device=0x8167 subvendor=0x10ec subdevice=0x8167 class=0x020000 at slot=4 function=0

# devinfo -rv | grep rgephy1
                rgephy1 pnpinfo oui=0xe04c model=0x11 rev=0x2 at phyno=1

# ifconfig re1
re1: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 7418
        options=8209b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether 00:30:18:a5:5e:6c
        inet 192.168.1.1 netmask 0xffffff00 broadcast 192.168.1.255 
        inet6 fe80::230:18ff:fea5:5e6c%re1 prefixlen 64 scopeid 0x3 
        inet6 2001:xxx:xxxx:1:230:18ff:fea5:5e6c prefixlen 64 
        inet6 2001:xxx:xxxx:1::1 prefixlen 64 
        nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex,master>)
        status: active




# dmesg | grep re0
re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F/G PCIe Gigabit Ethernet> port 0xe800-0xe8ff mem 0xfdfff000-0xfdffffff,0xfdff8000-0xfdffbfff irq 18 at device 0.0 on pci4
re0: Using 1 MSI-X message
re0: Chip rev. 0x28000000
re0: MAC rev. 0x00300000
miibus0: <MII bus> on re0
re0: Ethernet address: e0:cb:4e:5b:27:b6
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

# devinfo -rv | grep re0
            re0 pnpinfo vendor=0x10ec device=0x8168 subvendor=0x1043 subdevice=0x83a3 class=0x020000 a

# devinfo -rv | grep rgephy0
                rgephy0 pnpinfo oui=0xe04c model=0x11 rev=0x2 at phyno=1

# ifconfig re0
re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 7418
        options=82098<VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE>
        ether e0:cb:4e:5b:27:b6
        inet6 fe80::e2cb:4eff:fe5b:27b6%re0 prefixlen 64 scopeid 0x1 
        inet6 2001:xxx:xxxx:1:e2cb:4eff:fe5b:27b6 prefixlen 64 autoconf 
        inet 192.168.1.2 netmask 0xffffff00 broadcast 192.168.1.255 
        nd6 options=23<PERFORMNUD,ACCEPT_RTADV,AUTO_LINKLOCAL>
        media: Ethernet autoselect (1000baseT <full-duplex>)
        status: active




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