Problems with r8168 on AMD64



Hello.

I have a new HP Pavilion Intel Core2 Quad machine with the following
onboard Ethernet controller:

02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 02)
Subsystem: Hewlett-Packard Company Device 2a6f
Control: I/O+ Mem+ BusMaster+ SpecCycle- MemWINV- VGASnoop- ParErr- Stepping- SERR- FastB2B- DisINTx+
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- <TAbort- <MAbort- >SERR- <PERR- INTx-
Latency: 0, Cache Line Size: 32 bytes
Interrupt: pin A routed to IRQ 2298
Region 0: I/O ports at e800 [size=256]
Region 2: Memory at febff000 (64-bit, non-prefetchable) [size=4K]
Region 4: Memory at f8ff0000 (64-bit, prefetchable) [size=64K]
Expansion ROM at febc0000 [disabled] [size=128K]
Capabilities: <access denied>
Kernel driver in use: r8168
Kernel modules: r8168

As you can see, I'm using the r8168 driver (the latest one available
from the realtek site). I compiled it and installed it according to
the instructions I found at
http://ubuntuforums.org/showthread.php?p=6441406.

The driver works for a while, but seems to crap out after a little
while -- typically during a large download. ifconfig shows that the
card is still up, but no packets are received. dmesg provides no
information about the failure that I can see. You can see here the
output of dmesg when I've loaded the module. There's nothing in dmesg
about the card going down.

[67522.264022] eth0: no IPv6 routers present
[67988.801622] r8168 0000:02:00.0: PCI INT A disabled
[67988.817782] r8168 Gigabit Ethernet driver 8.010.00-NAPI loaded
[67988.817830] r8168 0000:02:00.0: PCI INT A -> GSI 18 (level, low) -> IRQ 18
[67988.817903] r8168 0000:02:00.0: setting latency timer to 64
[67988.819477] r8168: This product is covered by one or more of the following patents: US5,307,459, US5,434,872, US5,732,094, US6,570,884, US6,115,776, and US6,327,625.
[67988.819482] eth0: Identified chip type is 'RTL8168C/8111C'.
[67988.819485] eth0: RTL8168B/8111B at 0xffffc20000646000, 00:1e:8c:4d:00:a8, IRQ 2298
[67993.042746] r8168: eth0: link up
[67994.040261] r8168: eth0: link up
[68003.988006] eth0: no IPv6 routers present

If I rmmod and modprobe r8168, then the card works normally (for a
while).

I've also tried the r8169 driver (the one selected on a clean install
of AMD64 Ubuntu 8.10), but the behavior is just the same. It works
for a while and then silently fails.

Here's the output of ifconfig while the card is working.

eth0 Link encap:Ethernet HWaddr 00:1e:8c:4d:00:a8
inet addr:192.168.1.3 Bcast:192.168.1.255 Mask:255.255.254.0
inet6 addr: fe80::21e:8cff:fe4d:a8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:116 errors:0 dropped:0 overruns:0 frame:0
TX packets:128 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:14766 (14.7 KB) TX bytes:72354 (72.3 KB)
Interrupt:250 Base address:0x6000

I'm bumfuzzled. It's been a long time since I had any trouble getting
an ethernet card to work on Linux, so I'm a bit disappointed with this
problem. Any help would be greatly appreciated.

Thanks much.

(Pardon me if this is a duplicate. My previous NNTP server has been
flaky.)

--
Jesse F. Hughes

"In theory there is no difference between theory and practice. In
practice there is." -- Yogi Berra
.



Relevant Pages

  • Re: tvtime does not work
    ... I have copyed only a few lines out lsmod; lspci and dmesg. ... bttv: Bt8xx card found. ... Uniform CD-ROM driver Revision: 3.20 ...
    (Fedora)
  • Re: tvtime does not work
    ... see dmesg) ... bt878: Unknown parameter 'card' ... Subject: tvtime does not work ... v4l2 driver version 0.2.14 loaded ...
    (Fedora)
  • Re: RTL8139 Card and forcedeth : Network Card all confused ..Help !
    ... Ethernet card. ... This MAC address is allocated to Asustek, so I guess it belongs to the built-in nVidia ethernet interface on the motherboard. ... When I ckeched on their website, the manufacturer provided only a driver source code for 2.4 kernel. ... I tried to hack the 2.6 kernel 8139too code to adapt it to the non standard PCI ID and PCI I/O and memory regions, ...
    (comp.os.linux.networking)
  • Re: i give up
    ... collecting some of this information. ... "What ethernet cards have people used with FreeBSD 7.0?" ... "I have a Broadcom card, what driver do I need with FreeBSD 7?" ...
    (freebsd-current)
  • Wired LAN Compact Flash on PPC2003
    ... I need help setting a wired 10/100 MB Ethernet card on pocket pc 2003. ... The driver in the Cd ... Out of desperation I even tried to set it up under the Wireless Network ...
    (microsoft.public.pocketpc.developer.networking)