[Bug 347711] Re: Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller Unstable on Jaunty

amspilot amspilot01 at yahoo.com
Sun Sep 13 22:18:02 UTC 2009


update : NETDEV WATCHDOG gone after driver update form 2009/8/31 Realtek
, but still Disconnects occur and the interface is now flapping up/down.
in kernel 2.6.28-15-server

the system: Gigabyte GA-EX58-UD5 , CPU: Core i7 - 950, RAM: 6x2GB Corsair TR3X6G1600C8D
 Onboard two Ethernet controller: Realtek 8111D ,  4x1TB in raid10 configuration 

So the rumors persisted that the realtek driver could solve the problem:
( Sorry it's better but the disconnections are still there )

This is what I did and the results :

: I download the new realtek  linux driver from the webside :
from: : http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false#2 
name  / version / Update time / file size
LINUX driver for kernel 2.6.x and 2.4.x (Support x86 and x64) /  8.014.00  /  2009/8/31 / 40KB

I installed the build-essential and the linux-headres-2.6.28-15-server 
# apt-get install build-essential 
# apt-get install linux-headers 

I flowed the instructions that came whit the driver now to the letter,
see 'realtek driver instructions'

Begin the transfer testing of small and large files about 24.000 small files and about 1.000 lage files. Just for loading the system.
I used three systems to load the server, two with samba smb and one ssh session, but still the local io restrictions of the workstations prevent me form max loading the server. 
(I want to use real systems and io and not iperf to load the system for now)     

The system performed well for about 30Min during heavy load of about 330Mbit/sec on average. Then a disconnect occurred for about 4 minutes after that the system recovered for a wile.
 
It's better but the system is still not stable !!!.  / system is not production ready until this problem is solved or a work around is found .!!

the “NETDEV WATCHDOG” messages are gone but “r8168: eth0 : link up”  and
“r8168: eth0: link down” messages have appeared.


Additional information
lspci -vvv
ethtool eth0
The following messages were included after the installation
ifconfig eth0
realtek driver update procedure

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-

lspci -vvv

08:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)
        Subsystem: Giga-byte Technology Device e000
        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: 64 bytes
        Interrupt: pin A routed to IRQ 2293
        Region 0: I/O ports at ae00 [size=256]
        Region 2: Memory at fbaff000 (64-bit, prefetchable) [size=4K]
        Region 4: Memory at fbaf8000 (64-bit, prefetchable) [size=16K]
        [virtual] Expansion ROM at fba00000 [disabled] [size=128K]
        Capabilities: [40] Power Management version 3
                Flags: PMEClk- DSI- D1+ D2+ AuxCurrent=375mA PME(D0+,D1+,D2+,D3hot+,D3cold+)
                Status: D0 PME-Enable- DSel=0 DScale=0 PME-
        Capabilities: [50] Message Signalled Interrupts: Mask- 64bit+ Queue=0/0 Enable+
                Address: 00000000feeff00c  Data: 41e1
        Capabilities: [70] Express (v2) Endpoint, MSI 01
                DevCap: MaxPayload 256 bytes, PhantFunc 0, Latency L0s <512ns, L1 <64us
                        ExtTag- AttnBtn- AttnInd- PwrInd- RBE+ FLReset-
                DevCtl: Report errors: Correctable- Non-Fatal- Fatal- Unsupported-
                        RlxdOrd+ ExtTag- PhantFunc- AuxPwr- NoSnoop-
                        MaxPayload 128 bytes, MaxReadReq 4096 bytes
                DevSta: CorrErr- UncorrErr- FatalErr- UnsuppReq- AuxPwr+ TransPend-
                LnkCap: Port #0, Speed 2.5GT/s, Width x1, ASPM L0s L1, Latency L0 <512ns, L1 <64us
                        ClockPM+ Suprise- LLActRep- BwNot-
                LnkCtl: ASPM Disabled; RCB 64 bytes Disabled- Retrain- CommClk-
                        ExtSynch- ClockPM- AutWidDis- BWInt- AutBWInt-
                LnkSta: Speed 2.5GT/s, Width x1, TrErr- Train- SlotClk+ DLActive- BWMgmt- ABWMgmt-
        Capabilities: [ac] MSI-X: Enable- Mask- TabSize=4
                Vector table: BAR=4 offset=00000000
                PBA: BAR=4 offset=00000800
        Capabilities: [cc] Vital Product Data <?>
        Capabilities: [100] Advanced Error Reporting <?>
        Capabilities: [140] Virtual Channel <?>
        Capabilities: [160] Device Serial Number 00-e0-4c-68-00-00-00-03
        Kernel driver in use: r8168
        Kernel modules: r8168, r8169

# ethtool eth0
Settings for eth0:
        Supported ports: [ TP ]
        Supported link modes:   10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Supports auto-negotiation: Yes
        Advertised link modes:  10baseT/Half 10baseT/Full
                                100baseT/Half 100baseT/Full
                                1000baseT/Full
        Advertised auto-negotiation: Yes
        Speed: 1000Mb/s
        Duplex: Full
        Port: Twisted Pair
        PHYAD: 0
        Transceiver: internal
        Auto-negotiation: on
        Supports Wake-on: pumbg
        Wake-on: g
        Current message level: 0x00000033 (51)
        Link detected: yes
----

The following messages were included after the installation :

Sep 13 21:04:55 btrbl kernel: [   18.289945] r8169: eth0: link up
Sep 13 21:04:55 btrbl kernel: [   18.289951] r8169: eth0: link up
Sep 13 21:11:59 btrbl kernel: [  442.422552] r8169 0000:09:00.0: PCI INT A disabled
Sep 13 21:11:59 btrbl kernel: [  442.542552] r8169 0000:08:00.0: PCI INT A disabled
Sep 13 21:14:15 btrbl kernel: [  578.863563] r8168 Gigabit Ethernet driver 8.014.00-NAPI loaded
Sep 13 21:14:15 btrbl kernel: [  578.863580] r8168 0000:08:00.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16
Sep 13 21:14:15 btrbl kernel: [  578.864429] 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.
Sep 13 21:14:15 btrbl kernel: [  578.864436] eth0: RTL8168B/8111B at 0xffffc2000007a000, 00:24:1d:79:04:35, IRQ 2293
Sep 13 21:14:15 btrbl kernel: [  578.890709] r8168: eth0: link up
Sep 13 21:14:15 btrbl kernel: [  578.907807] r8168: eth0: link down
Sep 13 21:14:15 btrbl kernel: [  578.907813] r8168  Copyright (C) 2009  Realtek NIC software team <nicfae at realtek.com>
Sep 13 21:14:15 btrbl kernel: [  578.907815]  This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu
.org/licenses/>.
Sep 13 21:14:15 btrbl kernel: [  578.907816]  This is free software, and you are welcome to redistribute it under certain conditions;
 see <http://www.gnu.org/licenses/>.
Sep 13 21:14:15 btrbl kernel: [  578.907827] r8168 Gigabit Ethernet driver 8.014.00-NAPI loaded
Sep 13 21:14:15 btrbl kernel: [  578.907842] r8168 0000:09:00.0: PCI INT A -> GSI 17 (level, low) -> IRQ 17
Sep 13 21:14:15 btrbl kernel: [  578.909442] 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.
Sep 13 21:14:15 btrbl kernel: [  578.909449] eth1: RTL8168B/8111B at 0xffffc20000050000, 00:24:1d:79:04:45, IRQ 2292
Sep 13 21:14:15 btrbl kernel: [  578.952619] r8168  Copyright (C) 2009  Realtek NIC software team <nicfae at realtek.com>
Sep 13 21:14:15 btrbl kernel: [  578.952621]  This program comes with ABSOLUTELY NO WARRANTY; for details, please see <http://www.gnu
.org/licenses/>.
Sep 13 21:14:15 btrbl kernel: [  578.952622]  This is free software, and you are welcome to redistribute it under certain conditions; see <http://www.gnu.org/licenses/>.

---

tail /var/log/messages

Sep 13 23:04:23 btrbl kernel: [ 7186.970880] r8168: eth0: link up
Sep 13 23:04:23 btrbl kernel: [ 7187.090209] r8168: eth0: link up
Sep 13 23:04:26 btrbl kernel: [ 7190.190286] r8168: eth0: link down
Sep 13 23:04:27 btrbl kernel: [ 7191.090208] r8168: eth0: link down
Sep 13 23:04:32 btrbl kernel: [ 7195.644053] r8168: eth0: link up
Sep 13 23:04:32 btrbl kernel: [ 7196.090208] r8168: eth0: link up
Sep 13 23:04:35 btrbl kernel: [ 7198.882711] r8168: eth0: link down
Sep 13 23:04:35 btrbl kernel: [ 7199.090209] r8168: eth0: link down
Sep 13 23:04:43 btrbl kernel: [ 7207.155289] r8168: eth0: link up
Sep 13 23:04:44 btrbl kernel: [ 7208.090209] r8168: eth0: link up

Sep 13 22:20:39 btrbl kernel: [ 4562.470797] r8168: eth0: link up
Sep 13 22:20:39 btrbl kernel: [ 4563.030209] r8168: eth0: link up
Sep 13 22:21:01 btrbl kernel: [ 4584.769174] r8168: eth0: link down
Sep 13 22:21:01 btrbl kernel: [ 4585.030210] r8168: eth0: link down
Sep 13 22:21:04 btrbl kernel: [ 4587.221420] r8168: eth0: link up
Sep 13 22:21:04 btrbl kernel: [ 4587.574027] r8168: eth0: link down
Sep 13 22:21:15 btrbl kernel: [ 4598.907134] r8168: eth0: link up
Sep 13 22:21:15 btrbl kernel: [ 4599.030209] r8168: eth0: link up
Sep 13 22:21:16 btrbl kernel: [ 4599.341307] r8168: eth0: link down
Sep 13 22:21:16 btrbl kernel: [ 4600.030209] r8168: eth0: link down
Sep 13 22:21:57 btrbl kernel: [ 4640.777848] r8168: eth0: link up
Sep 13 22:21:57 btrbl kernel: [ 4641.030209] r8168: eth0: link up
Sep 13 22:21:58 btrbl kernel: [ 4641.343333] r8168: eth0: link down
Sep 13 22:21:58 btrbl kernel: [ 4642.030210] r8168: eth0: link down
Sep 13 22:22:00 btrbl kernel: [ 4643.513756] r8168: eth0: link up
Sep 13 22:22:00 btrbl kernel: [ 4644.030209] r8168: eth0: link up

-
ifconfig eth0
eth0      Link encap:Ethernet  HWaddr xx:xx:xx:xx:xx:xx
          inet addr:10.100.100.26  Bcast:10.100.100.255  Mask:255.255.255.0
          inet6 addr: fe80::224:1dff:fe79:435/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:229933273 errors:0 dropped:0 overruns:0 frame:0
          TX packets:93721073 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:332014345353 (332.0 GB)  TX bytes:14491924665 (14.4 GB)
          Interrupt:245 Base address:0xa000

-.-.-.-.-.-.-.-.

realtek driver update procedure :
	This is the Linux device driver released for RealTek RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP, RTL8168D/8111D Gigabit Ethernet controllers with PCI-Express interface.

<Requirements>

	- Kernel source tree (supported Linux kernel 2.6.x and 2.4.x)
	- For linux kernel 2.4.x, this driver supports 2.4.20 and latter.
	- Compiler/binutils for kernel compilation

<Quick install with proper kernel settings>
	Check whether the built-in driver, r8169.ko (or r8169.o for kernel 2.4.x), is installed. 
		# lsmod | grep r8169

	If it is installed, please remove it.
		# rmmod r8169
	note: If the built-in driver cannot removed by rmmod, please edit /etc/modprobe.conf and comment 'alias eth0 r8169'. Then, remmove it again or reboot your computer.

	Unpack the tarball :
		# tar vjxf r8168-8.aaa.bb.tar.bz2

	Change to the directory:
		# cd r8168-8.aaa.bb

        If you are running the target kernel, then you should be able to
do :

		# make clean modules	(as root or with sudo)
		# make install
		# depmod -a
		# modprobe r8168

        You can check whether the driver is loaded by using following
commands.

		# lsmod | grep r8168
		# ifconfig -a

-- 
Realtek RTL8111/8168B PCI Express Gigabit Ethernet controller Unstable on Jaunty
https://bugs.launchpad.net/bugs/347711
You received this bug notification because you are a member of Kernel
Bugs, which is subscribed to Linux.




More information about the kernel-bugs mailing list