Bug 218187
Summary: | r8169: no carrier with RTL8125 | ||
---|---|---|---|
Product: | Drivers | Reporter: | Alex (alex) |
Component: | Network | Assignee: | Stephen Hemminger (stephen) |
Status: | NEW --- | ||
Severity: | normal | CC: | alex, hkallweit1, thomas |
Priority: | P3 | ||
Hardware: | AMD | ||
OS: | Linux | ||
Kernel Version: | v6.1.63 | Subsystem: | |
Regression: | Yes | Bisected commit-id: | aa0a050c656981521f513fca0a45c8f74141e536 |
Attachments: |
dmesg output from kernel 6.1.13 with aa0a050c656981521f513fca0a45c8f74141e536 reverted
dmesg output from kernel 6.1.13 without modifications |
Description
Alex
2023-11-24 22:22:16 UTC
Could you please test whether the following fixes the issue for you? --- drivers/net/ethernet/realtek/r8169_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/realtek/r8169_main.c b/drivers/net/ethernet/realtek/r8169_main.c index e32cc3279..28149714b 100644 --- a/drivers/net/ethernet/realtek/r8169_main.c +++ b/drivers/net/ethernet/realtek/r8169_main.c @@ -3892,6 +3892,7 @@ static void rtl_reset_work(struct rtl8169_private *tp) napi_enable(&tp->napi); rtl_hw_start(tp); + rtl8169_init_phy(tp); } static void rtl8169_tx_timeout(struct net_device *dev, unsigned int txqueue) @@ -4587,7 +4588,6 @@ static void rtl8169_up(struct rtl8169_private *tp) pci_set_master(tp->pci_dev); phy_init_hw(tp->phydev); phy_resume(tp->phydev); - rtl8169_init_phy(tp); napi_enable(&tp->napi); set_bit(RTL_FLAG_TASK_ENABLED, tp->wk.flags); rtl_reset_work(tp); -- 2.43.0 That patch sadly does not fix it. The symptoms are the same with/without that patch applied to 6.1.63, no carrier. Can you please provide a full dmesg log? Also it would be good to know whether you're using a jumbo mtu. And if yes, whether issue persists if you use the standard mtu instead. Huh, good catch. I am using a jumbo MTU, 9000. With the standard MTU of 1500 it works. Created attachment 305480 [details]
dmesg output from kernel 6.1.13 with aa0a050c656981521f513fca0a45c8f74141e536 reverted
Created attachment 305481 [details]
dmesg output from kernel 6.1.13 without modifications
It seems that I can confirm the same problem on 6.6.2 with a MSI MEG X570 UNIFY board (RTL8125A), 2.5G connection and jumbo frames. I did not bisect, but 6.6.1 still works. With 6.6.2, the interface goes down and a number of tasks such as "ip a" hang. I got some backtrace involving rtnetlink when rebooting, but didn't yet capture it. It's not really PHY- or link-related, seems to be the same issue as described here, including the approach to fix it. Fix is on its way. https://www.spinics.net/lists/netdev/msg952569.html Fixed with 59d395ed606d ("r8169: fix deadlock on RTL8125 in jumbo mtu mode"). It's included in 6.7-rc4 and queued for stable. Thank you for the debug and fix of this issue! |