Skip to content

[Regression] commit f5c055c28415688bde0d8cc100803e8d4d3f3a04 in the rpi-6.12.y branch introduced a regression in the bmac driver #7200

Closed

Description

@puchu

Describe the bug

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"

Logs

No response

Additional context

No response

Activity

  1. 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
  2. pelwell commented on Jan 19, 2026

    @pelwell
    Contributor

    If you are correct, you should be able to just revert a single commit - f5c055c.

  3. pelwell commented on Jan 19, 2026

    @pelwell
    Contributor
  4. puchu commented on Jan 19, 2026

    @puchu
    Author

    correct, reverting f5c055c fixes the regression

  5. 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
  6. xiaoleiwang123456 commented on Jan 20, 2026

    @xiaoleiwang123456
    Contributor
  7. pelwell commented on Jan 28, 2026

    @pelwell
    Contributor

    @xiaoleiwang123456 Is there any progress on a fix for this? We'd be happy to take a candidate patch for wider testing.

  8. xiaoleiwang123456 commented on Jan 28, 2026

    @xiaoleiwang123456
    Contributor
  9. pelwell commented on Jan 28, 2026

    @pelwell
    Contributor

    Thanks for the update.

  10. wangxiaolei12 commented on Feb 4, 2026

    @wangxiaolei12

    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

  11. puchu commented on Feb 4, 2026

    @puchu
    Author

    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

    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.

  12. pelwell commented on Feb 4, 2026

    @pelwell
    Contributor

    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).

  13. 1 remaining item

  14. wangxiaolei12 commented on Feb 10, 2026

    @wangxiaolei12

    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

  15. puchu commented on Feb 11, 2026

    @puchu
    Author

    hi,

    reverting the previous patch and applying this patch, fixes the regression here too

    thanks

    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

  16. puchu commented on Feb 11, 2026

    @puchu
    Author
  17. pelwell commented on Feb 12, 2026

    @pelwell
    Contributor

    See #7237.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions