* FAILED: patch "[PATCH] net: airoha: Fix register index for Tx-fwd counter" failed to apply to 6.12-stable tree
@ 2026-07-21 14:41 gregkh
2026-07-29 20:35 ` [PATCH 6.12.y] net: airoha: Fix register index for Tx-fwd counter configuration Sasha Levin
0 siblings, 1 reply; 4+ messages in thread
From: gregkh @ 2026-07-21 14:41 UTC (permalink / raw)
To: win847, kuba, lorenzo; +Cc: stable
The patch below does not apply to the 6.12-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 <stable@vger.kernel.org>.
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.12.y
git checkout FETCH_HEAD
git cherry-pick -x 1402ecccf5630a0b7fa4749d7d2e72abc3f3d73d
# <resolve conflicts, build, test, etc.>
git commit -s
git send-email --to '<stable@vger.kernel.org>' --in-reply-to '2026072102-stack-mardi-5c7c@gregkh' --subject-prefix 'PATCH 6.12.y' 'HEAD^..'
Possible dependencies:
thanks,
greg k-h
------------------ original commit in Linus's tree ------------------
From 1402ecccf5630a0b7fa4749d7d2e72abc3f3d73d Mon Sep 17 00:00:00 2001
From: "Wayen.Yan" <win847@gmail.com>
Date: Fri, 12 Jun 2026 07:09:13 +0800
Subject: [PATCH] net: airoha: Fix register index for Tx-fwd counter
configuration
In airoha_qdma_init_qos_stats(), the Tx-fwd counter configuration
register uses the same index (i << 1) as the Tx-cpu counter, which
overwrites the Tx-cpu configuration. The Tx-fwd counter value register
correctly uses (i << 1) + 1, so the configuration register should use
the same index.
Fix the REG_CNTR_CFG index from (i << 1) to ((i << 1) + 1) so that
the Tx-fwd counter is properly configured instead of clobbering the
Tx-cpu counter config.
Fixes: 20bf7d07c956 ("net: airoha: Add sched ETS offload support")
Signed-off-by: Wayen.Yan <win847@gmail.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/6a2b40e7.4dd82583.3a5c46.e566@mx.google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
diff --git a/drivers/net/ethernet/airoha/airoha_eth.c b/drivers/net/ethernet/airoha/airoha_eth.c
index 31cdb11cd78d..329988a8400c 100644
--- a/drivers/net/ethernet/airoha/airoha_eth.c
+++ b/drivers/net/ethernet/airoha/airoha_eth.c
@@ -1256,7 +1256,7 @@ static void airoha_qdma_init_qos_stats(struct airoha_qdma *qdma)
FIELD_PREP(CNTR_CHAN_MASK, i));
/* Tx-fwd transferred count */
airoha_qdma_wr(qdma, REG_CNTR_VAL((i << 1) + 1), 0);
- airoha_qdma_wr(qdma, REG_CNTR_CFG(i << 1),
+ airoha_qdma_wr(qdma, REG_CNTR_CFG((i << 1) + 1),
CNTR_EN_MASK | CNTR_ALL_QUEUE_EN_MASK |
CNTR_ALL_DSCP_RING_EN_MASK |
FIELD_PREP(CNTR_SRC_MASK, 1) |
^ permalink raw reply related [flat|nested] 4+ messages in thread* [PATCH 6.12.y] net: airoha: Fix register index for Tx-fwd counter configuration
2026-07-21 14:41 FAILED: patch "[PATCH] net: airoha: Fix register index for Tx-fwd counter" failed to apply to 6.12-stable tree gregkh
@ 2026-07-29 20:35 ` Sasha Levin
2026-07-30 12:46 ` Greg KH
0 siblings, 1 reply; 4+ messages in thread
From: Sasha Levin @ 2026-07-29 20:35 UTC (permalink / raw)
To: stable; +Cc: Wayen.Yan, Lorenzo Bianconi, Jakub Kicinski, Sasha Levin
From: "Wayen.Yan" <win847@gmail.com>
[ Upstream commit 1402ecccf5630a0b7fa4749d7d2e72abc3f3d73d ]
In airoha_qdma_init_qos_stats(), the Tx-fwd counter configuration
register uses the same index (i << 1) as the Tx-cpu counter, which
overwrites the Tx-cpu configuration. The Tx-fwd counter value register
correctly uses (i << 1) + 1, so the configuration register should use
the same index.
Fix the REG_CNTR_CFG index from (i << 1) to ((i << 1) + 1) so that
the Tx-fwd counter is properly configured instead of clobbering the
Tx-cpu counter config.
Fixes: 20bf7d07c956 ("net: airoha: Add sched ETS offload support")
Signed-off-by: Wayen.Yan <win847@gmail.com>
Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/6a2b40e7.4dd82583.3a5c46.e566@mx.google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
---
drivers/net/ethernet/mediatek/airoha_eth.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/mediatek/airoha_eth.c b/drivers/net/ethernet/mediatek/airoha_eth.c
index 07f89e08b5faad..273265b003d75f 100644
--- a/drivers/net/ethernet/mediatek/airoha_eth.c
+++ b/drivers/net/ethernet/mediatek/airoha_eth.c
@@ -2022,7 +2022,7 @@ static void airoha_qdma_init_qos_stats(struct airoha_qdma *qdma)
FIELD_PREP(CNTR_CHAN_MASK, i));
/* Tx-fwd transferred count */
airoha_qdma_wr(qdma, REG_CNTR_VAL((i << 1) + 1), 0);
- airoha_qdma_wr(qdma, REG_CNTR_CFG(i << 1),
+ airoha_qdma_wr(qdma, REG_CNTR_CFG((i << 1) + 1),
CNTR_EN_MASK | CNTR_ALL_QUEUE_EN_MASK |
CNTR_ALL_DSCP_RING_EN_MASK |
FIELD_PREP(CNTR_SRC_MASK, 1) |
--
2.53.0
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH 6.12.y] net: airoha: Fix register index for Tx-fwd counter configuration
2026-07-29 20:35 ` [PATCH 6.12.y] net: airoha: Fix register index for Tx-fwd counter configuration Sasha Levin
@ 2026-07-30 12:46 ` Greg KH
2026-08-01 1:40 ` Sasha Levin
0 siblings, 1 reply; 4+ messages in thread
From: Greg KH @ 2026-07-30 12:46 UTC (permalink / raw)
To: Sasha Levin; +Cc: stable, Wayen.Yan, Lorenzo Bianconi, Jakub Kicinski
On Wed, Jul 29, 2026 at 04:35:36PM -0400, Sasha Levin wrote:
> From: "Wayen.Yan" <win847@gmail.com>
>
> [ Upstream commit 1402ecccf5630a0b7fa4749d7d2e72abc3f3d73d ]
>
> In airoha_qdma_init_qos_stats(), the Tx-fwd counter configuration
> register uses the same index (i << 1) as the Tx-cpu counter, which
> overwrites the Tx-cpu configuration. The Tx-fwd counter value register
> correctly uses (i << 1) + 1, so the configuration register should use
> the same index.
>
> Fix the REG_CNTR_CFG index from (i << 1) to ((i << 1) + 1) so that
> the Tx-fwd counter is properly configured instead of clobbering the
> Tx-cpu counter config.
>
> Fixes: 20bf7d07c956 ("net: airoha: Add sched ETS offload support")
> Signed-off-by: Wayen.Yan <win847@gmail.com>
> Acked-by: Lorenzo Bianconi <lorenzo@kernel.org>
> Link: https://patch.msgid.link/6a2b40e7.4dd82583.3a5c46.e566@mx.google.com
> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
> Signed-off-by: Sasha Levin <sashal@kernel.org>
> ---
> drivers/net/ethernet/mediatek/airoha_eth.c | 2 +-
This file isn't in 6.12.y :(
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH 6.12.y] net: airoha: Fix register index for Tx-fwd counter configuration
2026-07-30 12:46 ` Greg KH
@ 2026-08-01 1:40 ` Sasha Levin
0 siblings, 0 replies; 4+ messages in thread
From: Sasha Levin @ 2026-08-01 1:40 UTC (permalink / raw)
To: Greg KH; +Cc: Sasha Levin, stable, Wayen.Yan, Lorenzo Bianconi, Jakub Kicinski
On Thu, Jul 30, 2026 at 02:46:49PM +0200, Greg KH wrote:
> > drivers/net/ethernet/mediatek/airoha_eth.c | 2 +-
>
> This file isn't in 6.12.y :(
You're right, and that patch was written against the released tree. The 6.12
queue already carries fb3dda82fd38 ("net: airoha: Move airoha_eth driver in a
dedicated folder"), which came along as a dependency of 86e51aa24686 ("net:
airoha: Fix skb->priority underflow in
airoha_dev_select_queue()"), so the driver lives in
drivers/net/ethernet/airoha/ there and the plain upstream cherry-pick of
1402ecccf563 ("net: airoha: Fix register index for Tx-fwd counter
configuration") applies without any adaptation.
Queued for 6.12 that way...
--
Thanks,
Sasha
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2026-08-01 1:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-21 14:41 FAILED: patch "[PATCH] net: airoha: Fix register index for Tx-fwd counter" failed to apply to 6.12-stable tree gregkh
2026-07-29 20:35 ` [PATCH 6.12.y] net: airoha: Fix register index for Tx-fwd counter configuration Sasha Levin
2026-07-30 12:46 ` Greg KH
2026-08-01 1:40 ` Sasha Levin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox