From: Jakub Kicinski <kuba@kernel.org>
To: Zxyan Zhu <zxyan0222@gmail.com>
Cc: Maxime Chevallier <maxime.chevallier@bootlin.com>,
Andrew Lunn <andrew+netdev@lunn.ch>,
"David S . Miller" <davem@davemloft.net>,
Eric Dumazet <edumazet@google.com>,
Paolo Abeni <pabeni@redhat.com>,
netdev@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH net-next] net: stmmac: dwxgmac2: configure INTM for per-channel interrupt routing
Date: Tue, 28 Jul 2026 15:19:01 -0700 [thread overview]
Message-ID: <20260728151901.637b8a11@kernel.org> (raw)
In-Reply-To: <20260728034303.1432292-1-zxyan0222@gmail.com>
On Tue, 28 Jul 2026 11:43:03 +0800 Zxyan Zhu wrote:
> The commit message does a poor job of explaining the actual impact,
> so let me clarify.
>
> I've verified on hardware with XGMAC and multi-MSI enabled. The
> results are definitive:
>
> INTM=00 (default):
> - 5.4 million interrupts on the common IRQ line in 3 seconds
> - ~1.8 million IRQ_NONE returns per second
>
> INTM=01:
> - 0 interrupts on the common IRQ line
> - Per-channel IRQs work normally
> - 10G line rate works correctly
>
> The behavior is that with INTM=00, sbd_intr_o is also asserted for
> each DMA completion event. The common IRQ handler
> stmmac_mac_interrupt() only processes MAC-layer events (LPI, PMT,
> timestamps) and returns IRQ_NONE for DMA completion events, causing
> the interrupt storm. With INTM=01, sbd_intr_o is not asserted for
> DMA transfer completion events, which is the correct mode for
> per-channel interrupt routing.
Got it, could you respin with this clarification in the commit message?
> Regarding net vs net-next: XGMAC multi-MSI has never worked correctly
> since it was introduced, so this is not a regression. The same
> INTM=1 configuration for GMAC4 was merged via net-next (6ccf12ae111e
> "net: stmmac: use interrupt mode INTM=1 for multi-MSI"). I'm leaning
> toward net-next for consistency, but since this makes multi-MSI
> completely non-functional without it, I'd appreciate your opinion on
> whether net is more appropriate.
Makes sense, we can stick to net-next. Please also add a note to the
commit msg that "XGMAC multi-MSI has never worked correctly."
It will help backporting. Thanks!
prev parent reply other threads:[~2026-07-28 22:19 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-23 13:24 [PATCH net-next] net: stmmac: dwxgmac2: configure INTM for per-channel interrupt routing Zxyan Zhu
2026-07-23 13:50 ` Maxime Chevallier
2026-07-28 1:16 ` Jakub Kicinski
2026-07-28 3:43 ` Zxyan Zhu
2026-07-28 22:19 ` Jakub Kicinski [this message]
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=20260728151901.637b8a11@kernel.org \
--to=kuba@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=maxime.chevallier@bootlin.com \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=zxyan0222@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