RTL8111/8168/8411 ethernet controller has stopped working after upgrading from Fedora 36 to Fedora 37, since the upgrading I cannot access internet via ethernet cable anymore.
I tried to upgrade to Fedora 38 hoping that the problem would be solved in a later release but it was not.
Currently I have Fedora 38 as working release.
Some useful outputs with comments.
lspci -v
(partial output) :
02:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 10)
Subsystem: ASUSTeK Computer Inc. Device 205f
!!! Unknown header type 7f
I/O ports at 4000 [size=256]
Memory at b2104000 (64-bit, non-prefetchable) [size=4K]
Memory at b2100000 (64-bit, non-prefetchable) [size=16K]
Kernel driver in use: r8169
Kernel modules: r8169, r8168
Something I would like to note is the line: !!! Unknown header type 7f
, what does it mean?
Secondly, r8168
was not there originally (not in F36, not in F37 nor in F38), I “installed” it because I read that r8169 was faulty and r8168 was more stable. I took it from here: Make Linux load specific driver for given device (Realtek NIC) - Unix & Linux Stack Exchange
It did not work.
lsmod | grep r8
:
r8168 667648 0
r8169 114688 0
ip a
(partial output) :
2: enp2s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
link/ether 38:d5:47:90:f9:7b brd ff:ff:ff:ff:ff:ff
inet 192.168.1.74/24 brd 192.168.1.255 scope global dynamic noprefixroute enp2s0
valid_lft 21137sec preferred_lft 21137sec
lshw -C NETWORK
(partial output) :
*-generic
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller
vendor: Realtek Semiconductor Co., Ltd.
physical id: 0
bus info: pci@0000:02:00.0
logical name: enp2s0
version: ff
serial: 38:d5:47:90:f9:7b
width: 32 bits
clock: 66MHz
capabilities: bus_master vga_palette cap_list ethernet physical
configuration: broadcast=yes driver=r8169 ip=192.168.1.74 latency=255 maxlatency=255 mingnt=255 multicast=yes
resources: irq:18 ioport:4000(size=256) memory:b2104000-b2104fff memory:b2100000-b2103ff
ethtool enp2s0
:
netlink error: No such device
netlink error: No such device
netlink error: No such device
netlink error: No such device
netlink error: No such device
netlink error: No such device
No data available
This last output seems particularly weird.
dmesg | grep 'enp2s0'
:
[ 3.936871] r8169 0000:02:00.0 enp2s0: renamed from eth0
[ 73.394165] r8169 0000:02:00.0 enp2s0: Link is Down
[ 76.266079] r8169 0000:02:00.0 enp2s0: Link is Up - 1Gbps/Full - flow control off
[ 76.266123] IPv6: ADDRCONF(NETDEV_CHANGE): enp2s0: link becomes ready
[ 76.276504] r8169 0000:02:00.0 enp2s0: Link is Up - 1Gbps/Full - flow control off
[ 164.730399] NETDEV WATCHDOG: enp2s0 (r8169): transmit queue 0 timed out 6367 ms
[ 234.363375] r8169 0000:02:00.0 enp2s0: Can't reset secondary PCI bus, detach NIC
[ 303.995376] r8169 0000:02:00.0 enp2s0: Can't reset secondary PCI bus, detach NIC
[ 583.293456] r8169 0000:02:00.0 enp2s0: Link is Down
[ 583.321617] r8169 0000:02:00.0 enp2s0: rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
[ 585.865808] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[ 590.299699] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.321666] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.344432] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.349182] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.349788] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.350657] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.351315] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.351895] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.352462] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 590.353067] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 592.011606] r8169 0000:02:00.0 enp2s0: Link is Down
[ 601.997980] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[ 602.025175] r8169 0000:02:00.0 enp2s0: rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
[ 1275.868101] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[ 1275.868896] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1275.891179] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1275.895142] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1275.895799] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1275.896593] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1275.897391] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1275.897969] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1275.898524] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1275.899081] r8169 0000:02:00.0 enp2s0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 1277.501879] r8169 0000:02:00.0 enp2s0: Link is Down
[ 1287.522521] r8169 0000:02:00.0 enp2s0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[ 1287.556524] r8169 0000:02:00.0 enp2s0: rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
A weird behavior that I noticed is that when I boot the computer it is able to to use the cable connection in order to, at least, ping www.google.com
but as soon as I try to open a browser and browse to, let’s say, wikipedia.org the connection crashes and I am unable to make it work again.
If more details are needed I will provide them.
Thank you.