You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Regression] commit f5c055c28415688bde0d8cc100803e8d4d3f3a04 in the rpi-6.12.y branch introduced a regression in the bmac driver #7200
after commit 5c5e74a on branch rpi-6.12.y the network interface refuses to work, when a static ip is assigned to it and the network cable is disconnected and reconnected again or when the network device the rasp5 is connected, goes down and comes up again
restarting the network interface on rasp5 and reassigning the ip address make the it work again, as a work around
reverting commit 5c5e74a on the file drivers/net/ethernet/cadence/macb_main.c fixes the bug
the actual patch that reverts the commit:
--- a/drivers/net/ethernet/cadence/macb_main.c
+++ b/drivers/net/ethernet/cadence/macb_main.c
@@ -775,6 +775,7 @@ static void macb_mac_link_up(struct phylink_config *config,
/* Initialize rings & buffers as clearing MACB_BIT(TE) in link down
* cleared the pipeline and control registers.
*/
+ bp->macbgem_ops.mog_init_rings(bp);
macb_init_buffers(bp);
for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue)
@@ -3048,8 +3049,6 @@ static int macb_open(struct net_device *dev)
goto pm_exit;
}
- bp->macbgem_ops.mog_init_rings(bp);
-
for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue) {
napi_enable(&queue->napi_rx);
napi_enable(&queue->napi_tx);
Steps to reproduce the behaviour
compile the 6.12.x branch with commit 5c5e74a applied
assign a static ip to the network card,
diconnect the network cable
reconnected the network cable again
although the network card still has it's assigned ip address, network access doesnt work anymore
Device (s)
Raspberry Pi 5
System
Linux rasp5 6.12.66-v8-16k+ #193 SMP Mon Jan 19 20:18:55 CET 2026 aarch64 GNU/Linux
Revision : d04170
Model : Raspberry Pi 5 Model B Rev 1.0
Throttled flag : throttled=0x0
Camera : vc_gencmd_read_response returned -1 error=1 error_msg="Command not registered"
changed the title [-][Regression] commit 5c5e74aee29894555f4eb38046e44994351606cc in the rpi-6.12.y branch intruduced a regression in the bmac driver[/-][+][Regression] commit 5c5e74aee29894555f4eb38046e44994351606cc in the rpi-6.12.y branch introduced a regression in the bmac driver[/+]on Jan 19, 2026
changed the title [-][Regression] commit 5c5e74aee29894555f4eb38046e44994351606cc in the rpi-6.12.y branch introduced a regression in the bmac driver[/-][+][Regression] commit f5c055c28415688bde0d8cc100803e8d4d3f3a04 in the rpi-6.12.y branch introduced a regression in the bmac driver[/+]on Jan 19, 2026
Hi
I've found that this might be due to disabling RX and TX during link down.
The TX and RX queues, and their init_rings, also need to be reset;
otherwise,
some entries might not be populated in time. Currently, gem_rx_refill
can only
fill empty entries between rx_prepared_head and rx_tail.
I've created a patch, and it's in internal review. I'll release it as
soon as possible.
thanks
xiaolei
This is a patch I've put together. I've tested it and it works fine after unplugging and plugging in the network cable. Since there's also this issue upstream, I'm still looking for a better solution and have sought advice from the upstream maintainer, but haven't received a response yet. I'd be happy to accept any suggestions you may have regarding this problem.
This is a patch I've put together. I've tested it and it works fine after unplugging and plugging in the network cable. Since there's also this issue upstream, I'm still looking for a better solution and have sought advice from the upstream maintainer, but haven't received a response yet. I'd be happy to accept any suggestions you may have regarding this problem.
Thanks Xiaolei
with the patch applied, i couldn't reproduce the regression anymore.
i will keep using it, to see if other problems pop up while using it.
Thank you. This patch is now available as #7222. In 30 minutes there should be a trial build available to install using sudo rpi-update pulls/7222 (after reading the caveats).
Activity
[-][Regression] commit 5c5e74aee29894555f4eb38046e44994351606cc in the rpi-6.12.y branch intruduced a regression in the bmac driver[/-][+][Regression] commit 5c5e74aee29894555f4eb38046e44994351606cc in the rpi-6.12.y branch introduced a regression in the bmac driver[/+]pelwell commentedon Jan 19, 2026
If you are correct, you should be able to just revert a single commit - f5c055c.
pelwell commentedon Jan 19, 2026
FYI, @xiaoleiwang123456.
puchu commentedon Jan 19, 2026
correct, reverting f5c055c fixes the regression
[-][Regression] commit 5c5e74aee29894555f4eb38046e44994351606cc in the rpi-6.12.y branch introduced a regression in the bmac driver[/-][+][Regression] commit f5c055c28415688bde0d8cc100803e8d4d3f3a04 in the rpi-6.12.y branch introduced a regression in the bmac driver[/+]xiaoleiwang123456 commentedon Jan 20, 2026
pelwell commentedon Jan 28, 2026
@xiaoleiwang123456 Is there any progress on a fix for this? We'd be happy to take a candidate patch for wider testing.
xiaoleiwang123456 commentedon Jan 28, 2026
pelwell commentedon Jan 28, 2026
Thanks for the update.
wangxiaolei12 commentedon Feb 4, 2026
0001-net-macb-Fix-RX-ring-refill-issue-after-link-up.patch
Hi
This is a patch I've put together. I've tested it and it works fine after unplugging and plugging in the network cable. Since there's also this issue upstream, I'm still looking for a better solution and have sought advice from the upstream maintainer, but haven't received a response yet. I'd be happy to accept any suggestions you may have regarding this problem.
Thanks
Xiaolei
puchu commentedon Feb 4, 2026
with the patch applied, i couldn't reproduce the regression anymore.
i will keep using it, to see if other problems pop up while using it.
thanks for your help.
net: macb: Fix RX ring refill issue after link up
pelwell commentedon Feb 4, 2026
Thank you. This patch is now available as #7222. In 30 minutes there should be a trial build available to install using
sudo rpi-update pulls/7222(after reading the caveats).1 remaining item
net: macb: Fix RX ring refill issue after link up
net: macb: Fix RX ring refill issue after link up
net: macb: Fix RX ring refill issue after link up
net: macb: Fix RX ring refill issue after link up
wangxiaolei12 commentedon Feb 10, 2026
Hi
There is a better solution to this problem;
I think we can revert the previous patch and apply the current patch.
thanks
xiaolei
0001-net-macb-Fix-tx-rx-malfunction-after-phy-link-down-a.patch
net: macb: Fix RX ring refill issue after link up
puchu commentedon Feb 11, 2026
hi,
reverting the previous patch and applying this patch, fixes the regression here too
thanks
puchu commentedon Feb 11, 2026
ping @pelwell
net: macb: Fix RX ring refill issue after link up
pelwell commentedon Feb 12, 2026
See #7237.
net: macb: Fix RX ring refill issue after link up
net: macb: Fix RX ring refill issue after link up
net: macb: Fix RX ring refill issue after link up
net: macb: Fix RX ring refill issue after link up
net: macb: Fix RX ring refill issue after link up