Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 918892 - sys-kernel/gentoo-sources-6.6.3: r8169 driver failure
Summary: sys-kernel/gentoo-sources-6.6.3: r8169 driver failure
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo Kernel Bug Wranglers and Kernel Maintainers
Depends on:
Reported: 2023-11-30 10:10 UTC by ZetaCorvi
Modified: 2023-12-04 21:35 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---

dhcpcd and dmesg logs, addressing the problem (bug_log.txt,1.81 KB, text/plain)
2023-11-30 10:11 UTC, ZetaCorvi

Note You need to log in before you can comment on or make changes to this bug.
Description ZetaCorvi 2023-11-30 10:10:01 UTC
After building kernel 6.6.3, r8169 driver started acting funny
First, it printed out error:

[    4.991530] r8169 0000:02:00.0 eth0: rtl_ep_ocp_read_cond == 0 (loop: 10, delay: 10000).

Then my laptop just froze dead

I managed to rebuild 6.6.3 image with r8169 as module, and tried to boot again. Thankfully, this time it did not crash the system, though internet still was not reachable with wired connection. Surprisingly, dhcpcd successfully ran and I got IP address, and LAN leds were active. It also printed out strange message 3 times:

ipv6nd_sendrsprobe: No buffer space available

And some strange things were happening with interface renaming (I would attach this as file)

Reproducible: Always

Steps to Reproduce:
1. Build kernel 6.6.3, having realtek ethernet controller managed by r8169 driver
2. Boot and try to establish internet connection
Actual Results:  
System froze with built in driver and had no internet connection with driver as module

Expected Results:  
No freezing and properly working ethernet interface

I also have to mention, that I have two ethernet interfaces on my laptop (Thinkpad P14s Gen 2)
Comment 1 ZetaCorvi 2023-11-30 10:11:11 UTC
Created attachment 875952 [details]
dhcpcd and dmesg logs, addressing the problem
Comment 2 Holger Hoffstätte 2023-11-30 13:57:26 UTC
If your kernel has any of the CONFIG_RANDSTRUCT_ options set (other than NONE) try rebuilding & booting without.
Comment 3 ZetaCorvi 2023-11-30 14:05:03 UTC
(In reply to Holger Hoffstätte from comment #2)
> If your kernel has any of the CONFIG_RANDSTRUCT_ options set (other than
> NONE) try rebuilding & booting without.

Thanks, I'll try. Any clue why it may interfere with eth driver?
Comment 4 Holger Hoffstätte 2023-11-30 14:19:15 UTC
See also:
Comment 5 Mike Pagano gentoo-dev 2023-12-01 23:09:08 UTC
Can you test with gentoo-sources-6.6.3-r1, please?
Comment 6 ZetaCorvi 2023-12-03 11:38:19 UTC
(In reply to Mike Pagano from comment #5)
> Can you test with gentoo-sources-6.6.3-r1, please?

I was waiting for this revision, thanks, will try it out now
Comment 7 ZetaCorvi 2023-12-03 12:06:13 UTC
Just built and booted into 6.6.3-r1, seems to work fine. No failures for the moment
If all runs good for day or two, I would close the bug as fixed