Repository navigation
Description
Describe the bug
Just noticed some link stability issues and huge lags today while using SSH to some of my Pi 4.
Turned out dmesg is showing recurrent network link resets:
[...]
[ 9.208361] bcmgenet fd580000.ethernet: configuring instance for external RGMII (RX delay)
[ 9.211047] bcmgenet fd580000.ethernet eth0: Link is Down
[ 13.309882] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 120.829975] bcmgenet fd580000.ethernet eth0: Link is Down
[ 122.878105] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 255.999156] bcmgenet fd580000.ethernet eth0: Link is Down
[ 259.071376] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 283.647776] bcmgenet fd580000.ethernet eth0: Link is Down
[ 286.720047] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[ 301.056130] bcmgenet fd580000.ethernet eth0: Link is Down
[ 304.128371] bcmgenet fd580000.ethernet eth0: Link is Up - 1Gbps/Full - flow control rx/tx
[...]
Not 100% sure if this is due to a recent kernel update, or a recent eeprom update.
It looks like the cmdline.txt option dtparam=eee=off has no effect anymore, and ethtool --show-eee eth0 indicates there is no more ability to report EEE status:
EEE settings for eth0:
EEE status: not supported
Strangely enough however, on Pi 3 B+ the ethtool --show-eee eth0 is still working.
Also, playing ethtool --set-eee eth0 eee off still seems to successfully disable EEE on Pi 4 despite being unable to report EEE status.
Thanks in advance if this can be fixed (at least for the dtparam option)
Steps to reproduce the behaviour
Connect a recently updated Pi 4 to a GigE device (computer or switch) which supports EEE, and during low network activity, link stability issues are likely to occur, despite cmdline.txt containing dtparam=eee=off.
The ethtool --show-eee eth0 and ethtool --set-eee eth0 eee off effect may also be tested.
Device (s)
Raspberry Pi 4 Mod. B
System
raspinfo: https://pastebin.com/LL09cwJS
Output of cat /etc/rpi-issue:
Raspberry Pi reference 2025-10-01
Generated using pi-gen, https://github.com/RPi-Distro/pi-gen, 7dadcf1fc5ce1648ab09409ab978831690c9a955, stage2
Output of vcgencmd version:
May 8 2026 18:13:05
Copyright (c) 2012 Broadcom
version ae9a8ea9f3ca745de6f357bd7fc8307721ad38b7 (clean) (release) (start)
Output of uname -a:
Linux pi4-spycrobe 6.18.29+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.18.29-1+rpt1 (2026-05-12) aarch64 GNU/Linux
Logs
Additional context
No response
Activity
pelwell commentedon May 15, 2026
You've referred to cmdline.txt twice - do you actually mean config.txt?
pelwell commentedon May 15, 2026
Because it works for me.
Out of the box:
With
dtparam=eee=offin config.txt:julienrobin28 commentedon May 15, 2026
Sorry I was meaning
config.txtyou are right, for thedtparam=eee=offoption.However, despite having
ethtool --show-eee eth0sayingEEE status: not supported, it looks like EEE is still enabled untilethtool --set-eee eth0 eee offis playedpelwell commentedon May 15, 2026
OK. There are a number of other issues open about EEE on Pi 4 (#7371, #7365), so this is already under investigation.
pelwell commentedon May 15, 2026
While I think of it:
Everything about the Ethernet on Pi 3B+ is different compared to the 4B, so this is not surprising.
pelwell commentedon May 15, 2026
With a Pi 5 as a link partner, I can confirm that even with
dtparam=eee=offit still sees EEE as being enabled until, as you say, it's turned off at the PHY on the Pi 4.DonPablo1010 commentedon May 15, 2026
Same experience here on Pi 4B Rev 1.5 (8GB RAM) with DietPi Trixie and an unmanaged 1Gb consumer switch (Netgear) that advertises EEE.
Note: I tested
dtparam=eee=offstill on kernel 6.12.75. After adding it to config.txt and rebooting,ethtool --show-eee eth0still showsEEE status: enabled - inactiveinstead ofnot supportedordisabled. So the dtparam option appears to have no effect when the link partner also advertises EEE.However, manually running
ethtool --set-eee eth0 eee offdoes work and shows EEE status: disabled, so the PHY-level command works, but the dtparam boot option does not.I have not yet tested on 6.18.29 with
dtparam=eee=offas I rolled back to 6.12.75 due to the network connectivity loss and put packages on hold.pelwell commentedon May 15, 2026
Thanks for the feedback. I think we now all agree that the problem is with the EEE support, and that the dtparam is not doing a good job of disabling it.
nbuchwitz commentedon May 15, 2026
I will have a look later. Seems that the mark as broken in the dt is not handed down to the mac driver (or it's another permutation of the "great" AutoGreeen...)
nbuchwitz commentedon May 15, 2026
Looks like we found a bug in phylib. Patch for testing: #7373
If feedback is positive, I will send it to the elders of netdev ...
@pelwell or others: Can you please trigger the build in the linked PR? Thanks
julienrobin28 commentedon May 15, 2026
Hi @nbuchwitz
Tested the patch you mentioned on the current
rpi-6.18.ywhich is 6.18.29 as I'm writing, and it works 👍️In details, with the patched kernel:
Adding
dtparam=eee=offtoconfig.txtmakes EEE disabled, andethtool --show-eee eth0saysEEE status: not supported. Despite advertised as "not supported", bothethtool --set-eee eth0 eee offandethtool --set-eee eth0 eee oncommands are working anyway.By double check I also tested without the
dtparam=eee=offand EEE is then enabled by default (which is the expected behavior). In this case theethtool --show-eee eth0commands saysEEE status: enabled - activeand bothethtool --set-eee eth0 eee offandethtool --set-eee eth0 eee oncommands are working.I also checked ping duration and looked at link stability as a triple check.
MacFlurry commentedon May 15, 2026
I can reproduce what looks like the same regression on a Raspberry Pi 4
Environment:
Observed on 6.18.29+rpt-rpi-v8:
Example measurement on 6.18.29:
I then forced boot back to 6.12.75+rpt-rpi-v8 on the same hardware, same cable, same router, same network.
Result on 6.12.75+rpt-rpi-v8:
I also tested dtparam=eee=off on 6.18.29, but it did not resolve the high latency in my case. On 6.12.75, both with EEE disabled and with dtparam=eee=off commented out again, latency remains normal.
The key difference in my test is only the active kernel: 6.18.29 bad
kernel: 6.12.75 good.
MacFlurry commentedon May 15, 2026
I looked at the bcmgenet source changes between rpi-6.12.y and rpi-6.18.y. In my case this does not look like EEE alone.
On my RPi4:
dtparam=eee=offstill showed very high latency.Measurements:
6.18.29+rpt-rpi-v8:
6.12.75+rpt-rpi-v8:
The source change that looks most suspicious to me is the default flow move from DESC_INDEX / ring 16 to ring 0:
This seems consistent with the observed symptom: packets are not necessarily lost, but processing appears massively delayed.
Other possibly relevant changes:
Given that dtparam=eee=off did not fix 6.18.29 in my case, I would suspect the ring0/default-HFB/interrupt path before EEE.
nbuchwitz commentedon May 16, 2026
As Phil noted earlier,
dtparam=eee=offcurrently doesn't behave as expected (see #7373 for a fix). You can test the patch withsudo rpi-update pulls/7373- just make sure you have a backup or recovery plan in case anything goes wrong.pelwell commentedon May 18, 2026
Even though I've so far been unable to reproduce any of the link instability and crashes that have been reported on Pi 4 Ethernet with newer 6.18 kernels, with
dtparam=eee=offin config.txt I've been able to verify that:#7373 has therefore been merged.
spockfish commentedon May 18, 2026
Thanks @pelwell
I can't reproduce it myself either, but I've got a customer that can, so I'll have him test this asap.
popcornmix commentedon Jun 1, 2026
The apt kernel now contains ethernet and eee related fixes - can you test and report if this issue is resolved.
julienrobin28 commentedon Jun 2, 2026
Just tested, after the update to 6.18.33+rpt-rpi-v8
The problem is solved 👍 With
dtparam=eee=offintoconfig.txtEEE is now disabled as expected.Thanks for the great work!
Should we close the issue now?
Best regards
pelwell commentedon Jun 2, 2026
Go ahead.
DonPablo1010 commentedon Jun 2, 2026
I can confirm that the official apt package linux-image-6.18.33+rpt-rpi-v8 resolves the issue completely. Running on Pi 4B Rev 1.5 (8GB RAM) with DietPi Trixie, connected to a Netgear GS305 (EEE-capable switch).
EEE is fully active and stable:
EEE status: enabled - active Tx LPI: 34 (us) Advertised EEE link modes: 100baseT/Full 1000baseT/Full Link partner advertised EEE link modes: 100baseT/Full 1000baseT/FullNo dtparam=eee=off workaround needed.
Thanks to everyone involved!