Netdev List
 help / color / mirror / Atom feed
From: Jakub Kicinski <kuba@kernel.org>
To: Linus Walleij <linusw@kernel.org>
Cc: "Hans Ulli Kroll" <ulli.kroll@googlemail.com>,
	"Andrew Lunn" <andrew+netdev@lunn.ch>,
	"David S. Miller" <davem@davemloft.net>,
	"Eric Dumazet" <edumazet@google.com>,
	"Paolo Abeni" <pabeni@redhat.com>,
	"Michał Mirosław" <mirq-linux@rere.qmqm.pl>,
	"Myeonghun Pak" <mhun512@gmail.com>,
	netdev@vger.kernel.org
Subject: Re: [PATCH net-next 0/3] net: ethernet: cortina: Use page_pool for Gemini RX buffers
Date: Thu, 24 Sep 2026 08:58:09 -0700	[thread overview]
Message-ID: <20260924085809.7baae343@kernel.org> (raw)
In-Reply-To: <CAD++jLn_3CS92uSenowXOk+WidorPQKDHy6qQsG-z9xMOv_-og@mail.gmail.com>

On Thu, 24 Sep 2026 09:40:24 +0200 Linus Walleij wrote:
> > > Move the Gemini RX buffer management to a parent-owned page_pool.  
> >
> > TBH sounds like weird piece of HW. IDK if we want to burden the generic
> > page pool code with weird, 20+ yo drivers+HW :/ Well, I know that
> > I definitely don't, I don't know if others agree :)  
> 
> The current AI reviews actively encourages people to go and fix
> really old bugs,  or code that hasn't seen a lot of love in recent
> years, pre-existing issues you know.
> 
> That's how the patch came about that this patch is a "let's do it
> properly in that case" reply to:
> https://lore.kernel.org/netdev/20260917192835.58126-1-mhun512@gmail.com/
> 
> We have had, for years, a debug print in this driver:
> 
>                 /* Freeq pointers are one page off */
>                 gpage = gmac_get_queue_page(geth, port, mapping + PAGE_SIZE);
>                 if (!gpage) {
>                         dev_err(geth->dev, "could not find page\n");
>                         continue;
> 
> and it seems this patch set actually finally fixes that bug that was
> bugging me (heh) for years and years.
> 
> So there is a bit of incentive to actually fix it.
> 
> (I also have actual users of the code, it's not therapeutic coding.)

Understood, but none of this really necessitate the page pool.
Supporting weird drivers makes it much harder for us to create
reasonable uAPI and protect these things with fine-granularity
locks.

      reply	other threads:[~2026-09-24 15:58 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-09-20 20:48 [PATCH net-next 0/3] net: ethernet: cortina: Use page_pool for Gemini RX buffers Linus Walleij
2026-09-20 20:48 ` [PATCH net-next 1/3] net: ethernet: cortina: Keep shared free queue parent-owned Linus Walleij
2026-09-22 18:51   ` netdev-bot+sashiko
2026-09-20 20:48 ` [PATCH net-next 2/3] net: ethernet: cortina: Manage RX buffers with page_pool Linus Walleij
2026-09-22 18:51   ` netdev-bot+sashiko
2026-09-20 20:48 ` [PATCH net-next 3/3] net: ethernet: cortina: Scale Gemini RX queues to system memory Linus Walleij
2026-09-24  1:28 ` [PATCH net-next 0/3] net: ethernet: cortina: Use page_pool for Gemini RX buffers Jakub Kicinski
2026-09-24  7:40   ` Linus Walleij
2026-09-24 15:58     ` 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=20260924085809.7baae343@kernel.org \
    --to=kuba@kernel.org \
    --cc=andrew+netdev@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --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