Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794048621; b=oDzdDggfcNDy9zlEI9A5aCGNCnOvEaKiISj5n496ANXfFCb1RNCEMrQrNpW33XTiW7r8 UnZ2MfnL6KH15eC1svG+obaroIQQqLYWFfhcyZ5hR6+BgbyoYpXAltIX63lWPfmqHo6Nd k6Uw0OUTD6mvmR6dERACxcem7gwWhYV8FJm+uzKqmr0JuhtPc5EbNYXaIdQplWriCMie7 FFkYkuv6A89iYkHVppfOhD1oPgG+eYqyLC7jkT7EUA1UiDdI63abdRa3rQlof5dBwJfUs pI/RBrQ24YiQAk/+Wm6El7PKAob1VOCbREO2WuselT48FPmW3hlbC+9vHthq8iwRiWw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794048621; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Type:Content-Transfer-Encoding; bh=Fd5imty73JJqBhHdNdeG4u9e0+qdEJqkWcUAsV/13zo=; b=2vxP4m7GvvzJ7CKLXqC405OCPfw0mpWP/zy5eeqrIBL/HPywXuqISuSUd0Rg3R5+eJtd 2rygJ0iMFHB8Yjcnys0YfA5OTpobutgICT81GkGBiWH4eCfh5DgZ+LUISX9EkScLNEpJx FUo/8xN+fPtXUxiIqbYJB2CexXBqKdBrFrRqIYK5L1MXCKLrJza0acuCzZJBjY4vr0eEU ZYbrjXH5nIm9RVoG2R33qV0Br4qIK8+J8ejgziXUdsgc4bfkUPT9lMn80VyKfbll9Fw1L 9/bDEOLG1Dz9hbfUPbjqfB4PNB/3DB7ocFX1Rg5vBkv/3Futifhg/EFW/rn84CPLedw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=S5wXo649; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2967F606D81A for ; Sat, 7 Nov 2026 10:50:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=S5wXo649 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 85FC31F0089F; Sat, 7 Nov 2026 10:50:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794048621; bh=Fd5imty73JJqBhHdNdeG4u9e0+qdEJqkWcUAsV/13zo=; h=From:To:Cc:Subject:Date; b=S5wXo649Mr2JAfKUfpFpfzOSwBVMbizGIxunS55Dzk6qfPx7ntshU1iNNnc3m6Y9p 1sa+UY4vYnatU4XfpZZ07sKy61R4yhOtAlwHUyfJsOsyb6mhX41NOfGLh7GYC/dEO6 U/vO+5g0wa9hGPYxw4xBDEhiP8q+R8H9gOCBVVLDrQDUHo1N/SMcnn/QKSF1+NG77V a8FCUSLocMaJYrwQJkf6/UZWQWqf0x8h7SByJI3HYSCJF/UZkyV8CMw6YcN8VfteHE GmOj9AqAp+/tZG5bW3CVcFTCxg2fo7DrVCWOXJXj0b22UjVcxiUJcE31S0LBfVYNQi Wk2bItJmn3/Dg== From: Sasha Levin To: rosenp@gmail.com, daniel.machon@microchip.com, kuba@kernel.org Cc: stable@vger.kernel.org Subject: FAILED: patch "[PATCH] net: bgmac: enable interrupts only after NAPI is ready" failed to apply to 6.1-stable tree Date: Sat, 7 Nov 2026 05:50:19 -0500 Message-ID: <20261107055019-failed-6.1-ac1f6e58cb77@kernel.org> X-Mailer: git-send-email 2.53.0 X-Mailing-List: stable@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The patch below does not apply to the 6.1-stable tree. If someone wants it applied there, or to any other stable or longterm tree, then please email the backport, including the original git commit id to . To reproduce the conflict and resubmit, you may use the following commands: git fetch https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/ linux-6.1.y git checkout FETCH_HEAD git cherry-pick -x ac1f6e58cb77bb66b8811f7d98703e0f076a8f65 # git commit -s git send-email --to '' --in-reply-to '20261107055019-failed-6.1-ac1f6e58cb77@kernel.org' --subject-prefix 'PATCH 6.1.y' 'HEAD^..' Thanks, Sasha ------------------ original commit in Linus's tree ------------------ From ac1f6e58cb77bb66b8811f7d98703e0f076a8f65 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 10 Oct 2026 00:00:11 -0700 Subject: [PATCH] net: bgmac: enable interrupts only after NAPI is ready bgmac_open() calls bgmac_chip_init(), which unmasks the interrupts and enables the MAC receiver, before request_irq() and napi_enable(). bgmac_enet_resume() also enables NAPI only after bgmac_chip_init(). When frames arrive in that window, the first RX interrupt masks all interrupts in bgmac_interrupt() and calls napi_schedule() on a NAPI instance that is still disabled, so nothing is scheduled. Nothing unmasks the interrupts again, the RX ring fills up and the interface stays deaf until it is brought down and up without traffic. On an Asus RT-N16 (BCM4716) a single "ip link set eth0 down/up" while a host sends UDP to the router left INT_MASK at 0, INT_STATUS with RX pending and the RX DMA idle on a full ring, with the RX packet and interrupt counters no longer moving. With this change, 10 of 10 such cycles recovered on their own. Request the IRQ and enable NAPI before the chip is initialized. Fixes: dd4544f05469 ("bgmac: driver for GBit MAC core on BCMA bus") Fixes: f3537b3494c0 ("net: ethernet: bgmac: driver power manangement") Cc: stable@vger.kernel.org Signed-off-by: Rosen Penev Reviewed-by: Daniel Machon Link: https://patch.msgid.link/20261010070011.60403-1-rosenp@gmail.com Signed-off-by: Jakub Kicinski --- drivers/net/ethernet/broadcom/bgmac.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bgmac.c b/drivers/net/ethernet/broadcom/bgmac.c index 3e9c57196a397..1835266fdd09f 100644 --- a/drivers/net/ethernet/broadcom/bgmac.c +++ b/drivers/net/ethernet/broadcom/bgmac.c @@ -1183,9 +1183,6 @@ static int bgmac_open(struct net_device *net_dev) if (err) return err; - /* Specs say about reclaiming rings here, but we do that in DMA init */ - bgmac_chip_init(bgmac); - err = request_irq(bgmac->irq, bgmac_interrupt, IRQF_SHARED, net_dev->name, net_dev); if (err < 0) { @@ -1195,6 +1192,9 @@ static int bgmac_open(struct net_device *net_dev) } napi_enable(&bgmac->napi); + /* Specs say about reclaiming rings here, but we do that in DMA init */ + bgmac_chip_init(bgmac); + phy_start(net_dev->phydev); netif_start_queue(net_dev); @@ -1608,10 +1608,10 @@ int bgmac_enet_resume(struct bgmac *bgmac) if (rc) return rc; - bgmac_chip_init(bgmac); - napi_enable(&bgmac->napi); + bgmac_chip_init(bgmac); + netif_tx_lock(bgmac->net_dev); netif_device_attach(bgmac->net_dev); netif_tx_unlock(bgmac->net_dev); -- 2.53.0