#1100659 linux-image-6.12.17-amd64: r8169 gets down after suspend

#1100659#5
Date:
2025-03-16 19:15:16 UTC
From:
To:
When my notebook wakes up after suspend, ethernet interface remains down. Reloading the module doesn't help. And there are lot of errors in the kernel log.

ip link show eth0

2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc fq_codel state DOWN mode DEFAULT group default qlen 1000
    link/ether 74:d4:dd:6c:ed:5d brd ff:ff:ff:ff:ff:ff
    altname enp122s0
    altname enx74d4dd6ced5d

modprobe --remove r8169
modprobe -i r8169

dmesg  | grep r8169

[    1.505126] r8169 0000:7a:00.0 eth0: RTL8168h/8111h, 74:d4:dd:6c:ed:5d, XID 541, IRQ 145
[    1.505703] r8169 0000:7a:00.0 eth0: jumbo features [frames: 9194 bytes, tx checksumming: ko]
[   38.798872] Generic FE-GE Realtek PHY r8169-0-7a00:00: attached PHY driver (mii_bus:phy_addr=r8169-0-7a00:00, irq=MAC)
[   38.987619] r8169 0000:7a:00.0 eth0: Link is Down
[   39.420000] r8169 0000:7a:00.0 eth0: entered allmulticast mode
[   39.420096] r8169 0000:7a:00.0 eth0: entered promiscuous mode
[   41.891456] r8169 0000:7a:00.0 eth0: Link is Up - 100Mbps/Full - flow control rx/tx
[ 7290.495194] r8169 0000:7a:00.0 eth0: left allmulticast mode
[ 7290.495220] r8169 0000:7a:00.0 eth0: left promiscuous mode
[ 9255.737212] r8169 0000:7a:00.0 eth0: Link is Down
[ 9900.280805] r8169 0000:7a:00.0: Unable to change power state from D3hot to D0, device inaccessible
[ 9900.608723] r8169 0000:7a:00.0 eth0: rtl_eriar_cond == 1 (loop: 100, delay: 100).
[ 9900.609626] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9900.644368] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9900.656092] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9900.656973] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9900.657855] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9900.658753] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9900.659634] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9900.660531] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9900.661426] r8169 0000:7a:00.0 eth0: rtl_ocp_gphy_cond == 1 (loop: 10, delay: 25).
[ 9901.308941] Generic FE-GE Realtek PHY r8169-0-7a00:00: r8169_apply_firmware failed: -110
[ 9901.962676] Generic FE-GE Realtek PHY r8169-0-7a00:00: phy_poll_reset failed: -110
[ 9902.367454] r8169 0000:7a:00.0 eth0: Link is Down
[15547.100313] r8169 0000:7a:00.0 eth0: rtl_chipcmd_cond == 1 (loop: 100, delay: 100).
[15555.951182] r8169 0000:7a:00.0: Unable to change power state from D3cold to D0, device inaccessible
[15555.951514] r8169 0000:7a:00.0: Mem-Wr-Inval unavailable
[15555.951587] r8169 0000:7a:00.0: error -EIO: PCI read failed
[15555.951592] r8169 0000:7a:00.0: probe with driver r8169 failed with error -5

ip link show eth0
Device "eth0" does not exist