[RTL810xE] No ethernet connection

Bug #1871182 reported by Ryan Amick
116
This bug affects 15 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

ubuntu doesn't show cable plugged-in. Wifi is also intermittent. Errors in log with realtek. long boot up. No problems with live-USB or fresh install, only after update.

sudo lspci -vnvn > lspci-vnvn.log
pcilib: sysfs_read_vpd: read failed: Input/output error

ProblemType: Bug
DistroRelease: Ubuntu 20.04
Package: linux-headers-5.4.0-22-generic 5.4.0-22.26
ProcVersionSignature: Ubuntu 5.4.0-22.26-generic 5.4.29
Uname: Linux 5.4.0-22-generic x86_64
ApportVersion: 2.20.11-0ubuntu24
Architecture: amd64
AudioDevicesInUse:
 USER PID ACCESS COMMAND
 /dev/snd/controlC1: finisdiem 1332 F.... pulseaudio
 /dev/snd/controlC0: finisdiem 1332 F.... pulseaudio
CurrentDesktop: ubuntu:GNOME
Date: Mon Apr 6 10:49:03 2020
InstallationDate: Installed on 2020-04-01 (4 days ago)
InstallationMedia: Ubuntu 20.04 LTS "Focal Fossa" - Beta amd64 (20200331)
MachineType: Hewlett-Packard HP Pavilion g6 Notebook PC
ProcEnviron:
 PATH=(custom, no user)
 XDG_RUNTIME_DIR=<set>
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcFB: 0 radeondrmfb
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-5.4.0-22-generic root=UUID=e2543a6c-bc86-40b3-a4dd-d9e29603fb52 ro quiet splash vt.handoff=7
RelatedPackageVersions:
 linux-restricted-modules-5.4.0-22-generic N/A
 linux-backports-modules-5.4.0-22-generic N/A
 linux-firmware 1.187
RfKill:
 0: phy0: Wireless LAN
  Soft blocked: no
  Hard blocked: no
SourcePackage: linux
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 10/04/2012
dmi.bios.vendor: Insyde
dmi.bios.version: F.15
dmi.board.asset.tag: Base Board Asset Tag
dmi.board.name: 1849
dmi.board.vendor: Hewlett-Packard
dmi.board.version: 57.2F
dmi.chassis.type: 10
dmi.chassis.vendor: Hewlett-Packard
dmi.chassis.version: Chassis Version
dmi.modalias: dmi:bvnInsyde:bvrF.15:bd10/04/2012:svnHewlett-Packard:pnHPPaviliong6NotebookPC:pvr088B110000305910000620100:rvnHewlett-Packard:rn1849:rvr57.2F:cvnHewlett-Packard:ct10:cvrChassisVersion:
dmi.product.family: 103C_5335KV G=N L=CON B=HP S=PAV
dmi.product.name: HP Pavilion g6 Notebook PC
dmi.product.sku: C2N51UA#ABA
dmi.product.version: 088B110000305910000620100
dmi.sys.vendor: Hewlett-Packard

Revision history for this message
Ryan Amick (finisdiem) wrote :
Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Status changed to Confirmed

This change was made by a bot.

Changed in linux (Ubuntu):
status: New → Confirmed
Revision history for this message
Ryan Amick (finisdiem) wrote : Re: No ehternet connection

Still having issues even after update to 5.4.0-24 today. found a work around by downloading latest driver from realtek here https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100m-fast-ethernet-pci-express-software. followed directions from here with latest drivers https://github.com/ghostrider-reborn/realtek-r8101-linux-driver.

Revision history for this message
You-Sheng Yang (vicamo) wrote :

[ 6.706478] libphy: r8169: probed
[ 6.706483] r8169 0000:05:00.0: realtek.ko not loaded, maybe it needs to be added to initramfs?
[ 6.713626] r8169: probe of 0000:05:00.0 failed with error -49

$ modinfo r8169
...
softdep: pre: realtek

So does it work for you if you add realtek to your /etc/modules?

  $ echo realtek | sudo tee -a /etc/modules
  $ sudo update-initramfs -u -k all && sudo reboot

summary: - No ehternet connection
+ [RTL810xE] No ethernet connection
tags: added: hwe-networking-ethernet
Revision history for this message
Ryan Amick (finisdiem) wrote :

Yes, adding realtek to /etc/modules makes the ethernet work. I'm not sure if thats the actual bug.

$ systemd-analyze
Startup finished in 9.434s (firmware) + 4.866s (loader) + 3min 22.039s (kernel) + 56.143s (userspace) = 4min 32.483s
graphical.target reached after 55.830s in userspace

System log still has a lot of errors:
Initramfs unpacking failed: Decoding failed
Buffer I/O error on dev sr0, logical block 524284, async page read
do_IRQ: 1.55 No irq handler for vector

Revision history for this message
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:
http://iso.qa.ubuntu.com/qatracker/reports/bugs/1871182

tags: added: iso-testing
Changed in linux (Ubuntu):
status: Confirmed → Incomplete
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in initramfs-tools (Ubuntu):
status: New → Confirmed
Revision history for this message
You-Sheng Yang (vicamo) wrote :

@Ryan, those error messages are irrelevant here.

Could you try to:
1. remove 'realtek' from your /etc/modules temporarily
2. run `sudo update-initramfs -v -u` and attach the output messages
3. run `unmkinitramfs /boot/initrd.img-$(uname -r) some_temp_folder && find some_temp_folder -name realtek.ko` and check if realtek.ko is packed.
4. if it doesn't appear in the extracted folder, you may want to redo comment #4 to add it back after these experiments.

The result from my side is positive, but maybe for some reason realtek.ko was not included automatically for you.

Revision history for this message
Tom Reynolds (tomreyn) wrote :
Revision history for this message
alex (alexion4) wrote :

After doing some research I'm quite sure that this bug was introduced by [1] in the 5.4.29 mainline kernel and the 5.4.0-22.26 ubuntu kernel.
The bug was already fixed by [2] in the 5.4.32 mainline kernel. At least that's the case on my machine [3] and Heiner Kallweit also pointed in this direction [4].
The only thing that doesn't fit in this picture is that adding realtek to /etc/modules fixed the problem for Ryan. But it didn't fix the problem for me.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.4.32&id=791c420f42289fe9afed9e325c6b21eb6a5a329e

[2] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v5.4.32&id=3fcd53b1d859799686a08785afb8990566c31cfa

[3] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1873552

[4] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1873512/comments/20

Revision history for this message
Paolo Pisati (p-pisati) wrote :

Here is a test kernel, could you test it and tell us if it fixes your problem?

https://people.canonical.com/~ppisati/lp1871182/

linux-image-unsigned-5.4.0-25-generic_5.4.0-25.29~lp1871182_amd64.deb
linux-modules-5.4.0-25-generic_5.4.0-25.29~lp1871182_amd64.deb
linux-modules-extra-5.4.0-25-generic_5.4.0-25.29~lp1871182_amd64.deb

tags: added: regression-release
Revision history for this message
alex (alexion4) wrote :

@Paolo, the test kernel does fix the problem for me.

Revision history for this message
Ryan Amick (finisdiem) wrote :
Download full text (125.7 KiB)

Ethernet stopped working again after update today.
@vicamo here are the results for would you suggested in #8. It does appear that realtek.ko was included automatically for me but still not working.

finisdiem@finisdiem-HP-Pavilion-g6-Notebook-PC:~$ sudo modprobe -r realtek
[sudo] password for finisdiem:
finisdiem@finisdiem-HP-Pavilion-g6-Notebook-PC:~$ sudo update-initramfs -v -u
Available versions: 5.4.0-25-generic
5.4.0-24-generic
5.4.0-23-generic
5.4.0-22-generic
5.4.0-21-generic
Keeping /boot/initrd.img-5.4.0-25-generic.dpkg-bak
update-initramfs: Generating /boot/initrd.img-5.4.0-25-generic
Copying module directory kernel/drivers/usb/host
(excluding hwa-hc.ko sl811_cs.ko sl811-hcd.ko u132-hcd.ko whci-hcd.ko)
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/ehci-fsl.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/isp116x-hcd.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/ssb/ssb.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/ssb-hcd.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/fotg210-hcd.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/max3421-hcd.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/r8a66597-hcd.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/oxu210hp-hcd.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/bcma/bcma.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/bcma-hcd.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/xhci-plat-hcd.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/host/fsl-mph-dr-of.ko
Copying module directory kernel/drivers/usb/c67x00
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/c67x00/c67x00.ko
Copying module directory kernel/drivers/usb/chipidea
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/gadget/udc/udc-core.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/common/ulpi.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/roles/roles.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/phy/phy-generic.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/chipidea/ci_hdrc.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/chipidea/ci_hdrc_pci.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/chipidea/ci_hdrc_msm.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/chipidea/ci_hdrc_usb2.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/chipidea/ci_hdrc_zevio.ko
Copying module directory kernel/drivers/usb/dwc2
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/dwc2/dwc2_pci.ko
Copying module directory kernel/drivers/usb/dwc3
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/dwc3/dwc3-haps.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/dwc3/dwc3.ko
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/dwc3/dwc3-pci.ko
Copying module directory kernel/drivers/usb/isp1760
Adding module /lib/modules/5.4.0-25-generic/kernel/drivers/usb/isp1760/isp1760.ko
Copying module di...

Revision history for this message
Ryan Amick (finisdiem) wrote :

@Paolo, test kernel didn't work for me. I had to reinstall official Realtek driver again like i did in #3.

Revision history for this message
Carl Karsten (carlfk) wrote :

@Paolo,

I have this too:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1873526

your -25 test kernel did work for me.

[ 0.930604] r8169 0000:01:00.0: can't disable ASPM; OS doesn't have ASPM control
[ 0.930615] ahci 0000:00:17.0: version 3.0
[ 0.937784] libphy: r8169: probed
[ 0.938205] r8169 0000:01:00.0 eth0: RTL8106e, a0:8c:fd:7e:9a:37, XID 449, IRQ 125

Revision history for this message
fvizinti (fabrizio-vizintin) wrote :

Test kernel from comment #11 worked!

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package linux - 5.4.0-26.30

---------------
linux (5.4.0-26.30) focal; urgency=medium

  * focal/linux: 5.4.0-26.30 -proposed tracker (LP: #1873882)

  * Packaging resync (LP: #1786013)
    - update dkms package versions

  * swap storms kills interactive use (LP: #1861359)
    - SAUCE: drm/i915: prevent direct writeback from the shrinker

  * 5.4.0-24.28 does not seem to apply rtprio, whereas -21 does. (LP: #1873315)
    - [Config] lowlatency: turn off RT_GROUP_SCHED

  * [RTL810xE] No ethernet connection (LP: #1871182)
    - net: phy: realtek: fix handling of RTL8105e-integrated PHY

 -- Andrea Righi <email address hidden> Mon, 20 Apr 2020 18:33:49 +0200

Changed in linux (Ubuntu):
status: Incomplete → Fix Released
Revision history for this message
corrado venturini (corradoventu) wrote :

confirm: kernel 5.4.0-26 solved the problem

Revision history for this message
Leó Kolbeinsson (leok) wrote :

I can also confirm that kernel 5.4.0-26 solved the problem. Retested and all as should be.

Revision history for this message
Jeroenst (h-maik-m) wrote :

Today I pulled the latest updates on Ubuntu 20.04 and now the wired connection on RTL810xE adapter works!

You-Sheng Yang (vicamo)
no longer affects: initramfs-tools (Ubuntu)
Revision history for this message
Michael Born (michael-cs9mx) wrote :

For me the problem is not fixed.
See my report here: https://ubuntuforums.org/showthread.php?t=2441385

It seems the PHY for my Realtek ethernet chip is not activated in the boot up process.
I have to locally log in and enter "dhclient enp2s0" to get the interface running. Only then the "PHY" shows up in the log:

[CODE]
Apr 24 09:06:27 fileserver kernel: RTL8211B Gigabit Ethernet r8169-200:00: attached PHY driver [RTL8211B Gigabit Ethernet] (mii_bus:>
Apr 24 09:06:28 fileserver systemd-networkd[443]: enp2s0: Link UP
Apr 24 09:06:28 fileserver kernel: r8169 0000:02:00.0 enp2s0: Link is Down
Apr 24 09:06:28 fileserver dhclient[1504]: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 3 (xid=0xf0b4ed2b)
Apr 24 09:06:29 fileserver systemd-networkd[443]: enp2s0: Gained carrier
Apr 24 09:06:29 fileserver kernel: r8169 0000:02:00.0 enp2s0: Link is Up - 1Gbps/Full - flow control rx/tx
Apr 24 09:06:29 fileserver kernel: IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
Apr 24 09:06:31 fileserver dhclient[1504]: DHCPDISCOVER on enp2s0 to 255.255.255.255 port 67 interval 4 (xid=0xf0b4ed2b)
Apr 24 09:06:31 fileserver dhclient[1504]: DHCPOFFER of 192.168.0.103 from 192.168.0.1
Apr 24 09:06:31 fileserver dhclient[1504]: DHCPREQUEST for 192.168.0.103 on enp2s0 to 255.255.255.255 port 67 (xid=0x2bedb4f0)
Apr 24 09:06:31 fileserver dhclient[1504]: DHCPACK of 192.168.0.103 from 192.168.0.1 (xid=0xf0b4ed2b)
[/CODE]

Revision history for this message
You-Sheng Yang (vicamo) wrote :

@Michael, if 5.4.0-26.30 doesn't work for you, please file a new bug instead as this one has been marked FIXRELEASED.

Revision history for this message
Ryan Amick (finisdiem) wrote : Re: [Bug 1871182] Re: [RTL810xE] No ethernet connection

It doesn’t work for me either. I downloaded latest image and booted live. It didn’t work there either.
I’m not sure why it was marked fix when it never worked for me. I was the one who first reported the bug.

Sent from my iPhone

> On Apr 24, 2020, at 1:21 AM, You-Sheng Yang <email address hidden> wrote:
>
> @Michael, if 5.4.0-26.30 doesn't work for you, please file a new bug
> instead as this one has been marked FIXRELEASED.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1871182
>
> Title:
> [RTL810xE] No ethernet connection
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1871182/+subscriptions

Revision history for this message
Michael Born (michael-cs9mx) wrote :

I could figure out "my" problem: https://ubuntuforums.org/showthread.php?t=2441385
somehow the network device name seems to have changed form enp3s0 as written in the /etc/netplan/00-installer-config.yaml config file to enp2s0. Then, my network was not activated at boot-up any more.

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.