A311D ethernet `cannot attach to PHY` error since 6.18.9 update

Hi there!

Since Kernel 6.18.9 (and now 6.18.10) kernel, I can’t use ethernet to connect to network.

So I try to restart reform-hw-setup manually with:

doas systemctl restart reform-hw-setup.service

And check kernel messages:

[ 3868.156925] meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
[ 3868.157901] meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
[ 3868.164093] meson8b-dwmac ff3f0000.ethernet: IRQ sfty not found
[ 3868.173313] meson8b-dwmac ff3f0000.ethernet: PTP uses main clock
[ 3868.177302] meson8b-dwmac ff3f0000.ethernet: User ID: 0x11, Synopsys ID: 0x37
[ 3868.183475] meson8b-dwmac ff3f0000.ethernet: 	DWMAC1000
[ 3868.188275] meson8b-dwmac ff3f0000.ethernet: DMA HW capability register supported
[ 3868.195839] meson8b-dwmac ff3f0000.ethernet: RX Checksum Offload Engine supported
[ 3868.203352] meson8b-dwmac ff3f0000.ethernet: COE Type 2
[ 3868.208367] meson8b-dwmac ff3f0000.ethernet: TX Checksum insertion supported
[ 3868.215449] meson8b-dwmac ff3f0000.ethernet: Wake-Up On Lan supported
[ 3868.221844] meson8b-dwmac ff3f0000.ethernet: Normal descriptors
[ 3868.227677] meson8b-dwmac ff3f0000.ethernet: Ring mode enabled
[ 3868.233488] meson8b-dwmac ff3f0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
[ 3871.435604] meson8b-dwmac ff3f0000.ethernet end0: renamed from eth0

All seems to work there but network adapter is marke as DOWN with ip a. So I try to set it up then I have this error on dmesg:

[ 4029.204842] meson8b-dwmac ff3f0000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
[ 4029.211867] meson8b-dwmac ff3f0000.ethernet end0: cannot attach to PHY (error: -ENODEV)

From there I don’t know how to deep dive into debugging.

Regards,

1 Like

Thank you, I can confirm this issue. It looks like this when it’s working (on 6.17):

meson8b-dwmac ff3f0000.ethernet: IRQ eth_wake_irq not found
meson8b-dwmac ff3f0000.ethernet: IRQ eth_lpi not found
meson8b-dwmac ff3f0000.ethernet: IRQ sfty not found
meson8b-dwmac ff3f0000.ethernet: PTP uses main clock
meson8b-dwmac ff3f0000.ethernet: User ID: 0x11, Synopsys ID: 0x37
meson8b-dwmac ff3f0000.ethernet: 	DWMAC1000
meson8b-dwmac ff3f0000.ethernet: DMA HW capability register supported
meson8b-dwmac ff3f0000.ethernet: RX Checksum Offload Engine supported
meson8b-dwmac ff3f0000.ethernet: COE Type 2
meson8b-dwmac ff3f0000.ethernet: TX Checksum insertion supported
meson8b-dwmac ff3f0000.ethernet: Wake-Up On Lan supported
meson8b-dwmac ff3f0000.ethernet: Normal descriptors
meson8b-dwmac ff3f0000.ethernet: Ring mode enabled
meson8b-dwmac ff3f0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
meson8b-dwmac ff3f0000.ethernet end0: renamed from eth0
meson8b-dwmac ff3f0000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
meson8b-dwmac ff3f0000.ethernet end0: PHY [mdio_mux-0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=52)
meson8b-dwmac ff3f0000.ethernet end0: No Safety Features support found
meson8b-dwmac ff3f0000.ethernet end0: PTP not supported by HW
meson8b-dwmac ff3f0000.ethernet end0: configuring for phy/rgmii-txid link mode

When it’s not working we get a dmesg which differs from the above like this:

 meson8b-dwmac ff3f0000.ethernet: Enable RX Mitigation via HW Watchdog Timer
 meson8b-dwmac ff3f0000.ethernet end0: renamed from eth0
 meson8b-dwmac ff3f0000.ethernet end0: Register MEM_TYPE_PAGE_POOL RxQ-0
-meson8b-dwmac ff3f0000.ethernet end0: PHY [mdio_mux-0.0:00] driver [RTL8211F Gigabit Ethernet] (irq=52)
-meson8b-dwmac ff3f0000.ethernet end0: No Safety Features support found
-meson8b-dwmac ff3f0000.ethernet end0: PTP not supported by HW
-meson8b-dwmac ff3f0000.ethernet end0: configuring for phy/rgmii-txid link mode
+meson8b-dwmac ff3f0000.ethernet end0: cannot attach to PHY (error: -ENODEV)

Hi @josch thanks for replying so quickly! So waiting for a fix :slight_smile: .