From: netdev-bot+sashiko@kernel.org
To: linusw@kernel.org
Cc: ulli.kroll@googlemail.com, andrew+netdev@lunn.ch,
davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com,
mirq-linux@rere.qmqm.pl, mhun512@gmail.com, edumazet@kernel.org,
netdev@vger.kernel.org
Subject: Re: [PATCH net-next v9 05/14] net: ethernet: cortina: Correct free queue DMA mappings
Date: Tue, 24 Nov 2026 18:29:52 +0000 [thread overview]
Message-ID: <179554499289.3135.9641556337267478791@kernel.org> (raw)
In-Reply-To: <20261120-gemini-ethernet-fixes-3-v9-5-298671d799d5@kernel.org>
Thank you for your contribution! Sashiko AI review found more severe
issue(s) in other patches of this series. This mail is only an FYI, in case
you want to address the nit picks below when you respin.
Low priority / nit picks for your consideration:
- [Low] Commit "net: ethernet: cortina: Correct free queue DMA mappings"
fixes a user-visible RX bug but has no Fixes: tag and no Cc: stable.
--
net: ethernet: cortina: Correct free queue DMA mappings
This patch keeps each free queue page's DMA base separate from the
fragment iterator in geth_freeq_alloc_map_page(). It also removes the
replacement unmap, which hit the wrong buffer. The page lookup is
reworked to derive fragment offsets from the saved DMA base under
freeq_lock, and mappings that do not fit in the 32-bit hardware
descriptors are now rejected.
> The locked linear scan is temporary: the following "Index free queue
> fragments with XArray" patch removes it. Backport this change together
> with that patch, "Preserve in-flight free queue pages" and "Recycle
> claimed free queue pages", which complete the mapping lifetime and DMA
> synchronization fixes.
>
> Signed-off-by: Linus Walleij <linusw@kernel.org>
[Severity: Low]
Should this patch carry a Fixes: tag and Cc: stable?
The commit message describes a user-visible RX regression: frames dropped
with "could not find mapping", or the wrong page attached to the skb and
the wrong page reference dropped.
Blame on the baseline puts the whole block in the original driver
submission:
- the dma_map_single() result being advanced by the fragment loop
- the replacement dma_unmap_single() reading back the new buf_adr
- the "gpage->mapping = mapping" assignment
That submission is:
4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")
The backport request is only in the prose above. Stable and AUTOSEL
tooling relies on Fixes: and Cc: stable trailers to pick up patches. As
things stand, this fix and the three follow-up patches it depends on might
not get picked up at all, or only some of them might.
Would it make sense to add this?
Fixes: 4d5ae32f5e1e ("net: ethernet: Add a driver for Gemini gigabit ethernet")
It could also help to state the dependency on the follow-up patches in a
form stable tooling can use. Another option is to give the related
patches in the series matching tags.
--
Sashiko AI review · https://netdev-ai.bots.linux.dev/sashiko/#/patchset/20261120-gemini-ethernet-fixes-3-v9-0-298671d799d5%40kernel.org
next prev parent reply other threads:[~2026-11-24 18:29 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-20 17:29 [PATCH net-next v9 00/14] net: ethernet: cortina: Fix Gemini RX buffer management Linus Walleij
2026-11-20 17:29 ` [PATCH net-next v9 01/14] net: ethernet: cortina: Keep shared free queue parent-owned Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko
2026-11-20 17:29 ` [PATCH net-next v9 02/14] net: ethernet: cortina: Keep ports bound for shared IRQ Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko
2026-11-20 17:29 ` [PATCH net-next v9 03/14] net: ethernet: cortina: Drain free queue IRQ before resize Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko
2026-11-20 17:29 ` [PATCH net-next v9 04/14] net: ethernet: cortina: Normalize free queue pointers on rebuild Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko
2026-11-20 17:29 ` [PATCH net-next v9 05/14] net: ethernet: cortina: Correct free queue DMA mappings Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko [this message]
2026-11-20 17:29 ` [PATCH net-next v9 06/14] net: ethernet: cortina: Index free queue fragments with XArray Linus Walleij
2026-11-20 17:29 ` [PATCH net-next v9 07/14] net: ethernet: cortina: Preserve in-flight free queue pages Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko
2026-11-20 17:29 ` [PATCH net-next v9 08/14] net: ethernet: cortina: Rotate free queue page allocation Linus Walleij
2026-11-20 17:29 ` [PATCH net-next v9 09/14] net: ethernet: cortina: Recycle claimed free queue pages Linus Walleij
2026-11-20 17:29 ` [PATCH net-next v9 10/14] net: ethernet: cortina: Separate RX buffer capacity from free queue size Linus Walleij
2026-11-20 17:29 ` [PATCH net-next v9 11/14] net: ethernet: cortina: Validate RX fragment lengths Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko
2026-11-20 17:29 ` [PATCH net-next v9 12/14] net: ethernet: cortina: Account RX buffer size in truesize Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko
2026-11-20 17:29 ` [PATCH net-next v9 13/14] net: ethernet: cortina: Release partial RX frames on stop Linus Walleij
2026-11-24 18:29 ` netdev-bot+sashiko
2026-11-20 17:29 ` [PATCH net-next v9 14/14] net: ethernet: cortina: Scale Gemini RX queues to system memory Linus Walleij
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=179554499289.3135.9641556337267478791@kernel.org \
--to=netdev-bot+sashiko@kernel.org \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=kuba@kernel.org \
--cc=linusw@kernel.org \
--cc=mhun512@gmail.com \
--cc=mirq-linux@rere.qmqm.pl \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=ulli.kroll@googlemail.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