🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.kernel.netdev
3 messages
3 total messages Started by "Lorenzo Stoakes (ARM)" Fri, 20 Nov 2026 14:54
Re: [RFC PATCH v3 00/25] PISA: Pre-mapped IOVA Superpage Allocator for DMA and CoCo
#19851
Author: "Lorenzo Stoakes (ARM)"
Date: Fri, 20 Nov 2026 14:54
216 lines
18621 bytes
TL;DR: NAK. All of it. (And yeah, I'm steeling myself for the inevitable 'oh
Lorenzo' :)

Sigh. You know, it's hard being a maintainer, and it's twice as hard lately,
given the endless surge of AI-generated stuff we see every day.

But I am especially frustrated that I have to ask people to do the _absolute
basics_. And from people who are not helping with any of that. Quite the
opposite.

So the basics - you haven't cc'd the right people here and you're sending a
massive new series in-reply-to another. See below for some automatically
generated feedback on that.

In any case, the courteous thing to do would be to familiarise yourself with how
series are sent in mm. And that goes so much more for a series that is so
invasive. And seemingly, AI generated...

And you're sending it when
https://lore.kernel.org/linux-mm/a2f584f6-e382-4876-aa6d-d5a34de6ee59@kernel.org/
is in effect.

Anyway, to the series itself....

This is ludicrous:

>  .../admin-guide/kernel-parameters.txt         |    7 +
>  Documentation/core-api/index.rst              |    1 +
>  Documentation/core-api/pisa.rst               |  485 +++++
>  arch/arm64/include/asm/pgtable.h              |   28 +-
>  block/bio.c                                   |    9 +
>  drivers/base/core.c                           |   78 +
>  drivers/iommu/Makefile                        |    3 +
>  drivers/iommu/dma-iommu.c                     |   49 +-
>  drivers/iommu/iommu.c                         |    7 +-
>  drivers/iommu/pisa-map.c                      |  488 +++++
>  .../ethernet/google/gve/gve_buffer_mgmt_dqo.c |    8 +-
>  drivers/net/ethernet/google/gve/gve_rx.c      |   40 +-
>  include/linux/device.h                        |   32 +
>  include/linux/gfp_types.h                     |   14 +-
>  include/linux/huge_mm.h                       |    7 +
>  include/linux/netdevice.h                     |    4 +
>  include/linux/pisa-iommu.h                    |  141 ++
>  include/linux/pisa-mm.h                       |  205 ++
>  include/linux/pisa.h                          |  356 ++++
>  include/linux/sched.h                         |    4 +
>  include/linux/slab.h                          |   10 +
>  include/linux/swap.h                          |    1 +
>  include/net/libeth/rx.h                       |   11 +-
>  include/net/pisa.h                            |  204 ++
>  include/trace/events/mmflags.h                |   11 +-
>  include/uapi/asm-generic/mman-common.h        |    2 +
>  kernel/dma/direct.c                           |   11 +
>  kernel/exit.c                                 |    2 +
>  kernel/fork.c                                 |    2 +
>  mm/Kconfig                                    |   35 +
>  mm/Makefile                                   |    3 +
>  mm/filemap.c                                  |   12 +-
>  mm/huge_memory.c                              |   36 +-
>  mm/ksm.c                                      |    3 +-
>  mm/madvise.c                                  |   19 +
>  mm/memory.c                                   |    8 +-
>  mm/migrate.c                                  |    3 +-
>  mm/page-writeback.c                           |    9 +
>  mm/page_alloc.c                               |   10 +
>  mm/pisa-alloc.c                               | 1758 +++++++++++++++++
>  mm/pisa-kunit.c                               |  778 ++++++++
>  mm/pisa-meta.c                                |  834 ++++++++
>  mm/pisa-node.c                                |  567 ++++++
>  mm/pisa-priv.h                                |  319 +++
>  mm/pisa-user.c                                |  898 +++++++++
>  mm/readahead.c                                |    3 +-
>  mm/slab.h                                     |    3 +-
>  mm/slab_common.c                              |    2 +-
>  mm/slub.c                                     |   23 +-
>  mm/swapfile.c                                 |    3 +-
>  mm/userfaultfd.c                              |    7 +-
>  net/core/Makefile                             |    1 +
>  net/core/datagram.c                           |   17 +-
>  net/core/page_pool.c                          |    3 +
>  net/core/pisa-net.c                           |  264 +++
>  net/core/skbuff.c                             |   33 +-
>  net/core/sock.c                               |   31 +-
>  net/ipv4/esp4.c                               |    7 +-
>  net/ipv4/ip_output.c                          |   20 +-
>  net/ipv4/raw.c                                |    6 +-
>  net/ipv4/tcp.c                                |   17 +-
>  net/ipv4/tcp_output.c                         |   14 +-
>  net/ipv6/esp6.c                               |    7 +-
>  net/ipv6/ip6_output.c                         |   20 +-
>  net/ipv6/raw.c                                |    6 +-
>  65 files changed, 7907 insertions(+), 92 deletions(-)

I mean ~ +8ksloc. 65 files. These should be clues for you.

>  create mode 100644 Documentation/core-api/pisa.rst
>  create mode 100644 drivers/iommu/pisa-map.c
>  create mode 100644 include/linux/pisa-iommu.h
>  create mode 100644 include/linux/pisa-mm.h
>  create mode 100644 include/linux/pisa.h
>  create mode 100644 include/net/pisa.h
>  create mode 100644 mm/pisa-alloc.c
>  create mode 100644 mm/pisa-kunit.c
>  create mode 100644 mm/pisa-meta.c
>  create mode 100644 mm/pisa-node.c
>  create mode 100644 mm/pisa-priv.h
>  create mode 100644 mm/pisa-user.c

And here is a perfect clue. 'pisa-mm.h'. 'pisa-alloc.c'. You are creating
parallel implementations of core mm mechanics _just for your feature_.

And you didn't even update MAINTAINERS :) though, moving implementation to your
own files and adding hooks elsewhere is its own kind of anti-pattern.

>  create mode 100644 net/core/pisa-net.c

What I'm trying to say, constructively, is that you have gone down the wrong
road here. And it's one we've seen many times before.

You have decided that this feature is exciting and important and really special
and unlike anything else, so it must be implemented through hooks into other
stuff, new special GFP flags, an madvise() hook which amounts to 'I can do what
I want here', your own allocator, your own node code, your own everything.

And I'm sorry but we've seen this before, and it's been a disaster. Hugetlb and
uffd are examples of code like this.

Every feature of this nature imposes a tax. It means that you 'just have to
remember' to consider and deal with feature X when you write code touching Y
because feature X sits outside of the core mm code.

So my constructive suggestion to you (and this is an RFC, so you're asking for
this kind of feedback right? :) is as follows:

Firstly - please rethink using AI to generate massive series like this. You are
not going to get anything like that merged, and it disinclines maintainers from
even looking at your code.

Secondly - think about the problem at an architectural level. Listen to people
like Jason and David who are giving you highly valuable feedback, seriously you
are lucky to get it.

Thirdly - rework it so it _fits in with the existing core mm architecture_.

Finally, please don't send it as an +8 ksloc 65 file monster. Nobody is going to
take a series like that frankly, especially not from a newcomer to the
subsystem who may or may not stick around to maintain it.

IOW - try to find ways to implement it incrementally.

Thanks!

~~

FYI: Issues my scripts picked up:

1. New revisions sent in-reply-to mail

Please always send new revisions of series individually, not in-reply-to
any other email.

The easiest way of accomplishing this is to use b4 [0] (the recommended
way of sending patches to mm), otherwise format patches like this:

For a patch series, e.g. at v2:

$ git format-patch -v2 --cover-letter --thread ...

For an individual patch, e.g. at v2:

$ git format-patch -v2 HEAD~1

[0]: https://b4.docs.kernel.org/en/latest/contributor/send.html

2. Missing cc's

You are missing cc's. Fixing this is easy with b4 [0] (the recommended way
of sending patches to mm):

$ b4 prep --auto-to-cc

Alternatively, you can use scripts/get_maintainer.pl:

$ scripts/get_maintainer.pl --nogit-fallback <files-or-patches>

[0]: https://b4.docs.kernel.org/en/latest/contributor/send.html

Specifically, the following appear to be missing:

  chrisl@kernel.org
  kasong@tencent.com
  apopple@nvidia.com
  baohua@kernel.org
  baolin.wang@linux.alibaba.com
  baoquan.he@linux.dev
  byungchul@sk.com
  chengming.zhou@linux.dev
  dev.jain@arm.com
  gourry@gourry.net
  joshua.hahnjy@gmail.com
  kas@kernel.org
  lance.yang@linux.dev
  matthew.brost@intel.com
  nico.pache@linux.dev
  nphamcs@gmail.com
  peterx@redhat.com
  ryan.roberts@arm.com
  shikemeng@huaweicloud.com
  usama.arif@linux.dev
  xu.xin@linux.dev
  ying.huang@linux.alibaba.com
  youngjun.park@lge.com

--
Cheers, Lorenzo
Re: [RFC PATCH v3 00/25] PISA: Pre-mapped IOVA Superpage Allocator for DMA and CoCo
#19871
Author: "David Hildenbrand (Arm)"
Date: Fri, 20 Nov 2026 16:12
11 lines
13124 bytes
On 11/20/26 15:54, Lorenzo Stoakes (ARM) wrote:
> TL;DR: NAK. All of it. (And yeah, I'm steeling myself for the inevitable 'oh
> Lorenzo' :)

Oh Lorenzo ... you are absolutely right.

-- 
Cheers,

David
Re: [RFC PATCH v3 00/25] PISA: Pre-mapped IOVA Superpage Allocator for DMA and CoCo
#19916
Author: "Lorenzo Stoakes (ARM)"
Date: Fri, 20 Nov 2026 18:16
12 lines
9946 bytes
On Fri, Nov 20, 2026 at 05:12:25PM +0100, David Hildenbrand (Arm) wrote:
> On 11/20/26 15:54, Lorenzo Stoakes (ARM) wrote:
> > TL;DR: NAK. All of it. (And yeah, I'm steeling myself for the inevitable 'oh
> > Lorenzo' :)
>
> Oh Lorenzo ... you are absolutely right.

:)))

--
Cheers, Lorenzo
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads