Realtek R8111E not working in Oneiric

Bug #864750 reported by David Klasinc
74
This bug affects 14 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Invalid
Undecided
Unassigned

Bug Description

Network appears to work until it suddenly stops. Packets are being dropped for no apparent reason. Kernel log is full of this:

Oct 02 09:13:25 machine kernel: r8169 0000:04:00.0: eth0: link up
Oct 02 12:45:17 machine kernel: r8169 0000:04:00.0: eth0: link up
Oct 02 12:45:20 machine kernel: r8169 0000:04:00.0: eth0: link up
Oct 02 13:15:12 machine kernel: r8169 0000:04:00.0: eth0: link up
Oct 02 13:15:13 machine kernel: r8169 0000:04:00.0: eth0: link up
Oct 02 13:22:13 machine kernel: r8169 0000:04:00.0: eth0: link up

Sometimes there are longer pauses between 'link up' messages and during that time network is not working.

Upon investigating a little, I found out that there's an official Realtek driver for 8111E. Stock r8169 driver is faulty for some reason and it doesn't work. Compiling and installing of the official driver wasn't smooth, but in the end the newly compiled r8168 (note the different number) did work. Installation required renaming/removing r8169.ko to prevent it from loading.

Original driver can be obtained here: http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&PNid=13&PFid=5&Level=5&Conn=4&DownTypeID=3&GetDown=false

I've noticed that this problem has been around for quite some time (2009 I believe) and no simple solution is offered. RTL 8111E is quite common and a lot of people will have problems with this. :(

I am running current Oneiric.

bigwhale@thefish:~$ sudo cat /proc/version_signature
Ubuntu 3.0.0-11.18-generic 3.0.4
bigwhale@thefish:~$
---
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 1.23-0ubuntu2
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC3: bigwhale 1854 F.... pulseaudio
 /dev/snd/controlC2: bigwhale 1854 F.... pulseaudio
 /dev/snd/controlC0: bigwhale 1854 F.... pulseaudio
 /dev/snd/controlC1: bigwhale 1854 F.... pulseaudio
CRDA: Error: [Errno 2] No such file or directory
Card0.Amixer.info:
 Card hw:0 'Device'/'C-Media Electronics Inc. USB PnP Sound Device at usb-0000:00:1a.0-1.4.2, full s'
   Mixer name : 'USB Mixer'
   Components : 'USB0d8c:013c'
   Controls : 5
   Simple ctrls : 3
Card1.Amixer.info:
 Card hw:1 'P1330NC'/'Philips Philips SPC 1330NC at usb-0000:00:1a.0-1.6, high speed'
   Mixer name : 'USB Mixer'
   Components : 'USB0471:2037'
   Controls : 2
   Simple ctrls : 1
Card2.Amixer.info:
 Card hw:2 'PCH'/'HDA Intel PCH at 0xfbff8000 irq 44'
   Mixer name : 'Realtek ALC889'
   Components : 'HDA:10ec0889,1458a002,00100004'
   Controls : 41
   Simple ctrls : 23
Card3.Amixer.info:
 Card hw:3 'Generic'/'HD-Audio Generic at 0xfbdfc000 irq 45'
   Mixer name : 'ATI R6xx HDMI'
   Components : 'HDA:1002aa01,00aa0100,00100200'
   Controls : 4
   Simple ctrls : 1
Card3.Amixer.values:
 Simple mixer control 'IEC958',0
   Capabilities: pswitch pswitch-joined penum
   Playback channels: Mono
   Mono: Playback [on]
DistroRelease: Ubuntu 11.10
HibernationDevice: RESUME=UUID=428fe51e-fc39-4181-996d-1059d1c53250
InstallationMedia: Ubuntu 11.10 "Oneiric Ocelot" - Beta amd64 (20110922)
IwConfig:
 lo no wireless extensions.

 eth0 no wireless extensions.
MachineType: Gigabyte Technology Co., Ltd. P67A-D3-B3
Package: linux (not installed)
ProcEnviron:
 PATH=(custom, no user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-3.0.0-11-generic root=UUID=b6c09f93-2315-4994-84f3-bb8e45089bbf ro quiet splash vt.handoff=7
ProcVersionSignature: Ubuntu 3.0.0-11.18-generic 3.0.4
PulseSinks: Error: command ['pacmd', 'list-sinks'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
PulseSources: Error: command ['pacmd', 'list-sources'] failed with exit code 1: No PulseAudio daemon running, or not running as session daemon.
RelatedPackageVersions:
 linux-restricted-modules-3.0.0-11-generic N/A
 linux-backports-modules-3.0.0-11-generic N/A
 linux-firmware 1.60
RfKill:

StagingDrivers: mei
Tags: oneiric staging
Uname: Linux 3.0.0-11-generic x86_64
UpgradeStatus: No upgrade log present (probably fresh install)
UserGroups:

dmi.bios.date: 03/03/2011
dmi.bios.vendor: Award Software International, Inc.
dmi.bios.version: F1
dmi.board.name: P67A-D3-B3
dmi.board.vendor: Gigabyte Technology Co., Ltd.
dmi.board.version: x.x
dmi.chassis.type: 3
dmi.chassis.vendor: Gigabyte Technology Co., Ltd.
dmi.modalias: dmi:bvnAwardSoftwareInternational,Inc.:bvrF1:bd03/03/2011:svnGigabyteTechnologyCo.,Ltd.:pnP67A-D3-B3:pvr:rvnGigabyteTechnologyCo.,Ltd.:rnP67A-D3-B3:rvrx.x:cvnGigabyteTechnologyCo.,Ltd.:ct3:cvr:
dmi.product.name: P67A-D3-B3
dmi.sys.vendor: Gigabyte Technology Co., Ltd.

Revision history for this message
David Klasinc (bigwhale) wrote :
Revision history for this message
Brad Figg (brad-figg) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. From a terminal window please run:

apport-collect 864750

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
tags: added: oneiric
Revision history for this message
David Klasinc (bigwhale) wrote : AcpiTables.txt

apport information

tags: added: apport-collected staging
description: updated
Revision history for this message
David Klasinc (bigwhale) wrote : AlsaDevices.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : AplayDevices.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : ArecordDevices.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : BootDmesg.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : Card0.Amixer.values.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : Card1.Amixer.values.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : Card2.Amixer.values.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : Card2.Codecs.codec.2.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : Card3.Codecs.codec.0.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : CurrentDmesg.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : Lspci.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : Lsusb.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : PciMultimedia.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : ProcCpuinfo.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : ProcInterrupts.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : ProcModules.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : UdevDb.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : UdevLog.txt

apport information

Revision history for this message
David Klasinc (bigwhale) wrote : WifiSyslog.txt

apport information

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Brad Figg (brad-figg) wrote : Test with newer development kernel (3.0.0-12.19)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

We have noted that there is a newer version of the development kernel than the one you last tested when this issue was found. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.0.0-12.19
Revision history for this message
David Klasinc (bigwhale) wrote :

Unfortunately the latest kernel doesn't even boot on my computer. It gets stuck after loading initrd. So far the cause is unknown that is why I am still running 3.0.0-11.

But unless r8169 driver was fixed, the issue is still there.

Revision history for this message
David Klasinc (bigwhale) wrote :

[ 2261.995377] r8169 0000:04:00.0: eth0: link up
[ 2263.679006] r8169 0000:04:00.0: eth0: link up
[ 2265.202684] r8169 0000:04:00.0: eth0: link up
[ 2349.000200] r8169 0000:04:00.0: eth0: link up
[ 6058.019378] 6:3:1: cannot get freq at ep 0x84
[ 6058.044500] 6:3:1: cannot get freq at ep 0x84
[ 6058.069652] 6:3:1: cannot get freq at ep 0x84
bigwhale@thefish:~$ uname -a
Linux thefish 3.0.0-12-generic #19-Ubuntu SMP Fri Sep 23 21:23:39 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

It is still happening.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Brad Figg (brad-figg) wrote : Test with newer development kernel (3.0.0-12.20)

Thank you for taking the time to file a bug report on this issue.

However, given the number of bugs that the Kernel Team receives during any development cycle it is impossible for us to review them all. Therefore, we occasionally resort to using automated bots to request further testing. This is such a request.

We have noted that there is a newer version of the development kernel than the one you last tested when this issue was found. Please test again with the newer kernel and indicate in the bug if this issue still exists or not.

If the bug still exists, change the bug status from Incomplete to Confirmed. If the bug no longer exists, change the bug status from Incomplete to Fix Released.

Thank you for your help, we really do appreciate it.

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
tags: added: kernel-request-3.0.0-12.20
Revision history for this message
David Klasinc (bigwhale) wrote :

Same thing. And this is also happening in 11.04.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Joseph Salisbury (jsalisbury) wrote :

Would it be possible for you to test the latest upstream kernel? It will allow additional upstream developers to examine the issue. Refer to https://wiki.ubuntu.com/KernelMainlineBuilds . Once you've tested the upstream kernel, please remove the 'needs-upstream-testing' tag. This can be done by clicking on the yellow pencil icon next to the tag located at the bottom of the bug description and deleting the 'needs-upstream-testing' text. Please let us know your results.

Thanks in advance.

tags: added: needs-upstream-testing
Revision history for this message
Alan Pope 🍺🐧🐱 🦄 (popey) wrote :

I have installed latest mainline kernel from the mainline kernel builds and the wired network is behaving.

Linux wopr 3.1.0-999-generic #201110040905 SMP Tue Oct 4 09:10:44 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

I was previously getting lots of drops and a completely unusable connection as a result. I'll keep this for a while and see if it stays robust. I have been informed via G+ that this issue occurs in other distros and may be mitigated by doing a full hard shutdown / start rather than a warm reboot.

I will do some more tests with rebooting to various kernels when I can, but if there are further suggestions of what else can be tested, do let me know.

tags: added: cherry-pick
removed: needs-upstream-testing
Revision history for this message
germulvey (gerardmulvey) wrote :

same issue
connection to the server is painfull slow so is a showstopper for me (after finding a way around the radeon driver issue too)

Revision history for this message
Torben Leutenantsmeyer (nikioko) wrote :

It works fine with the linux vendor driver from Realtek (currently r8168-8.026.00.tar.bz2) using one of these guides:

http://www.twm-kd.com/linux/realtek-rtl81688111e-and-ubuntu-linux/

http://www.jamesonwilliams.com/hardy-r8168

This will, however, only work until kernel 3.0. For kernels 3.1 and 3.2 I get an error message with modprobe, that the kernel module is invalid. Seems to be a known issue:

https://code.google.com/p/r8168/issues/detail?id=6

So, my question is: has anyone an idea how to get the RTL8111E running on newer kernels?

Revision history for this message
Torben Leutenantsmeyer (nikioko) wrote :

BTW, I am runnung Kernel 3.0.0-13 right now.

Revision history for this message
David Klasinc (bigwhale) wrote :

Just a follow up. In 3.2.0-17-generic #27-Ubuntu (current Precise Pangolin kernel) this isn't an issue. Stock kernel driver works as it should.

Revision history for this message
Zrin Ziborski (zrin+launchpad) wrote :

AFAIS it is a kernel driver problem.

The NIC is detected as
06:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168B PCI Express Gigabit Ethernet controller (rev 03)

The problem was not present with 2.6.35-32-server (r8169 was used) and
appeared on the system (natty) upon switch to 2.6.38-13-server (r8169 again).

Apparently, adding /etc/modprobe.d/blacklist-r8169.conf with
blacklist r8169
is a possible workaround, now r8168 is in use.

After trying to switch the driver forth and back with modprobe the NIC got stuck and could not detect the connection any more. Reboot did not help, so I had to power off the server completely (pull the cable) to reset.

BTW, the current driver from Realtek (v. 8.028.00) has a buggy src/Makefile.

Revision history for this message
penalvch (penalvch) wrote :

David Klasinc, thank you for reporting this and helping make Ubuntu better. As you noted Precise solved this problem, did you need a backport to a prior release? If so, could you please find the commit that solved the problem via https://wiki.ubuntu.com/Kernel/KernelBisection ? If not, please mark this Invalid. Thanks!

Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
David Klasinc (bigwhale) wrote :

Christopher, 12.04 works out of the box, nothing else was needed.

Revision history for this message
penalvch (penalvch) wrote :

David Klasinc, this bug report is being closed due to your last comment regarding this being fixed with an update. For future reference you can manage the status of your own bugs by clicking on the current status in the yellow line and then choosing a new status in the revealed drop down box. You can learn more about bug statuses at https://wiki.ubuntu.com/Bugs/Status. Thank you again for taking the time to report this bug and helping to make Ubuntu better. Please submit any future bugs you may find.

Changed in linux (Ubuntu):
status: Incomplete → Invalid
Revision history for this message
Steeve Cottin (stef-cottin) wrote :

This bugs seems to re-open in trusty (ubuntu 14.04) in april 2014, while tying a new GIGABYTE motherboard (H61N-USB3) with a RTL8111E chip !

The loaded module is the r8169 : /sys/class/net/eth0/device/driver/module -> ../../../../module/r8169

$ lspci -vnvn
...
01:00.0 Ethernet controller [0200]: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller [10ec:8168] (rev 06)
 Subsystem: Gigabyte Technology Co., Ltd Motherboard [1458: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: 4 bytes
 Interrupt: pin A routed to IRQ 45
 Region 0: I/O ports at ee00 [size=256]
 Region 2: Memory at fbdff000 (64-bit, prefetchable) [size=4K]
 Region 4: Memory at fbdf8000 (64-bit, prefetchable) [size=16K]
 Capabilities: <access denied>
 Kernel driver in use: r8169

$ lsmod| grep r81
r8169 67581 0
mii 13934 3 asix,r8169,usbnet

The card LED blinks (green & orange), but "no connexion" to the local network (thru DHCP).

So I connected a NET2USB key in order to access to the network ... on eth1

$ ethtool eth0
Settings for eth0:
 Supported ports: [ TP MII ]
 Supported link modes: 10baseT/Half 10baseT/Full
                         100baseT/Half 100baseT/Full
                         1000baseT/Half 1000baseT/Full
 Supported pause frame use: No
 Supports auto-negotiation: Yes
 Advertised link modes: 10baseT/Half 10baseT/Full
                         100baseT/Half 100baseT/Full
                         1000baseT/Half 1000baseT/Full
 Advertised pause frame use: Symmetric Receive-only
 Advertised auto-negotiation: Yes
 Speed: 10Mb/s
 Duplex: Half
 Port: MII
 PHYAD: 0
 Transceiver: internal
 Auto-negotiation: on
Cannot get wake-on-lan settings: Operation not permitted
 Current message level: 0x00000033 (51)
          drv probe ifdown ifup
 Link detected: no

I 'll retry the "new driver" proposed by REALTEK, but it doesn't seem to work (r8168-8.038.00, builded on 2014/01/08) !

Revision history for this message
penalvch (penalvch) wrote :

Steeve Cottin, thank you for your comment. So your hardware and problem may be tracked, could you please file a new report with Ubuntu by executing the following in a terminal while booted into a Ubuntu repository kernel (not a mainline one) via:
ubuntu-bug linux

For more on this, please read the official Ubuntu documentation:
Ubuntu Bug Control and Ubuntu Bug Squad: https://wiki.ubuntu.com/Bugs/BestPractices#X.2BAC8-Reporting.Focus_on_One_Issue
Ubuntu Kernel Team: https://wiki.ubuntu.com/KernelTeam/KernelTeamBugPolicies#Filing_Kernel_Bug_reports
Ubuntu Community: https://help.ubuntu.com/community/ReportingBugs#Bug_reporting_etiquette

When opening up the new report, please feel free to subscribe me to it.

Thank you for your understanding.

Helpful bug reporting tips:
https://wiki.ubuntu.com/ReportingBugs

Revision history for this message
Steeve Cottin (stef-cottin) wrote :

Done : new bug report created

https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1314816

10ec:8168 [Gigabyte H61N-USB3] Realtek R8111E not connecting to DHCP on Trusty

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.