From: Johan Alvarado <contact@c127.dev>
To: Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Eric Dumazet <edumazet@kernel.org>,
"David S . Miller" <davem@davemloft.net>,
Andrew Lunn <andrew+netdev@lunn.ch>,
Maxime Chevallier <maxime.chevallier@bootlin.com>,
Yao Zi <me@ziyao.cc>
Cc: Maxime Coquelin <mcoquelin.stm32@gmail.com>,
Alexandre Torgue <alexandre.torgue@foss.st.com>,
netdev@vger.kernel.org, linux-stm32@st-md-mailman.stormreply.com,
linux-arm-kernel@lists.infradead.org,
Johan Alvarado <contact@c127.dev>,
Pengfei Zhang <zhangfeionline@gmail.com>
Subject: [PATCH net-next 1/3] net: stmmac: dwmac4: do not treat TBU as a TX event
Date: Fri, 4 Dec 2026 15:31:28 -0500 [thread overview]
Message-ID: <20261204203130.287919-2-contact@c127.dev> (raw)
In-Reply-To: <20261204203130.287919-1-contact@c127.dev>
Commit 1103d3a5531c ("net: stmmac: dwmac4: Also use TBU interrupt to
clean TX path") made dwmac4_dma_interrupt() report TBU as TX work.
TBUE is not in the default DMA interrupt mask and only enabled bits
are cleared, so TBU stays set on every idle TX channel.
With a shared interrupt, stmmac_dma_interrupt() checks all channels.
Every interrupt then schedules TX NAPI on every idle TX channel.
Only use TI to trigger TX processing, as commit 305deb54c6c2 ("net:
stmmac: xgmac: do not treat TBU as a TX event") did for xgmac. The
author of that commit pointed out that dwmac4 has the same problem [1].
On a YT6801 forced to a single MSI, throughput, ping and interrupt rate
did not change (5 runs each).
Link: https://lore.kernel.org/netdev/20261014045607.3421104-1-zhangfeionline@gmail.com/ [1]
Signed-off-by: Johan Alvarado <contact@c127.dev>
---
drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
index 02aa1a3dd1e2..55ca17233234 100644
--- a/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
+++ b/drivers/net/ethernet/stmicro/stmmac/dwmac4_lib.c
@@ -188,8 +188,6 @@ int dwmac4_dma_interrupt(struct stmmac_priv *priv, void __iomem *ioaddr,
ret |= handle_tx;
}
- if (unlikely(intr_status & DMA_CHAN_STATUS_TBU))
- ret |= handle_tx;
if (unlikely(intr_status & DMA_CHAN_STATUS_ERI))
x->rx_early_irq++;
--
2.56.1
next prev parent reply other threads:[~2026-12-04 20:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-04 20:31 [PATCH net-next 0/3] net: stmmac: reduce DMA interrupt latency on YT6801 Johan Alvarado
2026-12-04 20:31 ` Johan Alvarado [this message]
2026-12-04 20:31 ` [PATCH net-next 2/3] net: stmmac: add an opt-in MSI vector mask for NAPI Johan Alvarado
2026-12-04 20:31 ` [PATCH net-next 3/3] net: stmmac: motorcomm: mask the MSI vector during NAPI Johan Alvarado
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261204203130.287919-2-contact@c127.dev \
--to=contact@c127.dev \
--cc=alexandre.torgue@foss.st.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-stm32@st-md-mailman.stormreply.com \
--cc=maxime.chevallier@bootlin.com \
--cc=mcoquelin.stm32@gmail.com \
--cc=me@ziyao.cc \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=zhangfeionline@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox