A few problems

Michael BlackHeart amdmiek at gmail.com
Mon Mar 18 13:19:18 UTC 2013


2013/3/18 YongHyeon PYUN <pyunyh at gmail.com>:
> On Sat, Mar 16, 2013 at 01:08:06PM +0400, Michael BlackHeart wrote:
>> Hello there. I've got a couple of things I don't get or can't handle.
>>
>
> [...]
>
>> re0 at pci0:4:0:0: class=0x020000 card=0x512c1462 chip=0x816810ec rev=0x02 hdr=0x00
>>     vendor     = 'Realtek Semiconductor Co., Ltd.'
>>     device     = 'RTL8111/8168B PCI Express Gigabit Ethernet controller'
>>     class      = network
>>     subclass   = ethernet
>>     bar   [10] = type I/O Port, range 32, base 0xd800, size 256, enabled
>>     bar   [18] = type Memory, range 64, base 0xfeaff000, size 4096, enabled
>>     bar   [20] = type Prefetchable Memory, range 64, base 0xf8ff0000,
>> size 65536, enabled
>>     cap 01[40] = powerspec 3  supports D0 D1 D2 D3  current D0
>>     cap 05[50] = MSI supports 1 message, 64 bit
>>     cap 10[70] = PCI-Express 1 endpoint IRQ 1 max data 128(256) link x1(x1)
>>                  speed 2.5(2.5)
>>     cap 11[b0] = MSI-X supports 2 messages in map 0x20 enabled
>>     cap 03[d0] = VPD
>> ecap 0001[100] = AER 1 0 fatal 0 non-fatal 2 corrected
>> ecap 0002[140] = VC 1 max VC0
>> ecap 0003[160] = Serial 1 01000000684ce000
>>
>> re0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
>>         description: ToISP
>>         options=8218b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWCSUM,TSO4,WOL_MAGIC,LINKSTATE>
>>         ether 00:21:85:1c:24:fa
>>         media: Ethernet autoselect (100baseTX <full-duplex>)
>>         status: active
>
> [...]
>
>> One is that re0 doesn't neogatiate direct link with a connected PC
>> (using non-crossover UTP), but sk0 does that easy. It seems to me that
>> according to RTL8111 chip specification there shouldn't be any
>> problem, probably it's a driver problem?
>>
>
> What is your link parter for re0? I don't remember whether the PHY
> hardware really supports automatic MDI crossover detection. Even if
> the PHY hardware does not support it, the link partner would be
> able to do that.
>
> And could you show me the output of dmesg(re(4) and rgephy(4) only)
> and "devinfo -rv | grep rgephy"?

Here's info:

re0: <RealTek 8168/8111 B/C/CP/D/DP/E/F PCIe Gigabit Ethernet> port
0xd800-0xd8ff mem 0xfeaff000-0xfeafffff,0xf8ff0000-0xf8ffffff irq 17
at device 0.0 on pci4
re0: Using 1 MSI-X message
re0: Chip rev. 0x3c000000
re0: MAC rev. 0x00400000
miibus0: <MII bus> on re0
rgephy0: <RTL8169S/8110S/8211 1000BASE-T media interface> PHY 1 on miibus0
rgephy0:  none, 10baseT, 10baseT-FDX, 10baseT-FDX-flow, 100baseTX,
100baseTX-FDX, 100baseTX-FDX-flow, 1000baseT, 1000baseT-master,
1000baseT-FDX, 1000baseT-FDX-master, 1000baseT-FDX-flow,
1000baseT-FDX-flow-master, auto, auto-flow
re0: Ethernet address: 00:21:85:1c:24:fa

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

This link connected to Realtek 8111E under Win7.
I'll repeat that when it's connected to sk0, everything works. Of
course when I'm switching links, I change IPs and other configuration
in rc.conf and reboots system.

For example I'll provide info for sk0 (Dlink DGE-530T):

skc0: <D-Link DGE-530T Gigabit Ethernet> port 0xe800-0xe8ff mem
0xfebec000-0xfebeffff irq 17 at device 1.0 on pci5
skc0: DGE-530T Gigabit Ethernet Adapter rev. (0x9)
sk0: <Marvell Semiconductor, Inc. Yukon> on skc0
sk0: Ethernet address: 00:19:5b:86:3b:53
miibus1: <MII bus> on sk0
e1000phy0: <Marvell 88E1011 Gigabit PHY> PHY 0 on miibus1
e1000phy0:  none, 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX,
1000baseT, 1000baseT-master, 1000baseT-FDX, 1000baseT-FDX-master, auto

e1000phy0 pnpinfo oui=0xac2 model=0x2 rev=0x5 at phyno=0


More information about the freebsd-stable mailing list