From: "Matthew Wilcox (Oracle)" <willy@infradead.org>
To: linux-mm@kvack.org, linux-arch@vger.kernel.org
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>,
linux-s390@vger.kernel.org, linux-um@lists.infradead.org,
x86@kernel.org
Subject: [PATCH 0/5] Provide a single definition of mk_pte()
Date: Wed, 14 Aug 2024 16:44:20 +0100 [thread overview]
Message-ID: <20240814154427.162475-1-willy@infradead.org> (raw)
Each architecturee must provide a definition of mk_pte() today. They must
also provide pfn_pte(). Usually the former is defined in terms of the
latter, but not on some architectures. I was trying to decide what we
should do for creating PTEs in a folio world, and it struck me that we
should have architectures only provide pfn_pte() and then I don't need
to trouble the arch maintainers with whatever MM API I come up with.
The architectures not on the cc list I considered trivial. The
architectures who have named patches are less trivial, and I did my
best to write a decent commit message explaining why I did what I did
to each architecture.
I have some followup patches which remove folio->page conversions, but
if this set of patches are wrong on any architecture, then they'll also
be wrong, so I'm not sending them right now.
Matthew Wilcox (Oracle) (5):
mm: Introduce a common definition of mk_pte()
x86: Remove custom definition of mk_pte()
um: Remove custom definition of mk_pte()
s390: Remove custom definition of mk_pte()
mm: Make mk_pte() definition unconditional
arch/alpha/include/asm/pgtable.h | 7 -------
arch/arc/include/asm/pgtable-levels.h | 1 -
arch/arm/include/asm/pgtable.h | 1 -
arch/arm64/include/asm/pgtable.h | 6 ------
arch/csky/include/asm/pgtable.h | 5 -----
arch/hexagon/include/asm/pgtable.h | 3 ---
arch/loongarch/include/asm/pgtable.h | 6 ------
arch/m68k/include/asm/mcf_pgtable.h | 6 ------
arch/m68k/include/asm/motorola_pgtable.h | 6 ------
arch/m68k/include/asm/sun3_pgtable.h | 6 ------
arch/microblaze/include/asm/pgtable.h | 8 --------
arch/mips/include/asm/pgtable.h | 6 ------
arch/nios2/include/asm/pgtable.h | 6 ------
arch/openrisc/include/asm/pgtable.h | 2 --
arch/parisc/include/asm/pgtable.h | 2 --
arch/powerpc/include/asm/pgtable.h | 1 -
arch/riscv/include/asm/pgtable.h | 2 --
arch/s390/include/asm/pgtable.h | 10 ----------
arch/sh/include/asm/pgtable_32.h | 8 --------
arch/sparc/include/asm/pgtable_32.h | 9 ++-------
arch/sparc/include/asm/pgtable_64.h | 1 -
arch/um/include/asm/pgtable-2level.h | 1 -
arch/um/include/asm/pgtable-3level.h | 9 ---------
arch/um/include/asm/pgtable.h | 17 ++++++++++-------
arch/x86/include/asm/pgtable.h | 19 +++----------------
arch/xtensa/include/asm/pgtable.h | 1 -
include/linux/pgtable.h | 5 +++++
27 files changed, 20 insertions(+), 134 deletions(-)
--
2.43.0
next reply other threads:[~2024-08-14 16:09 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-08-14 15:44 Matthew Wilcox (Oracle) [this message]
2024-08-14 15:44 ` [PATCH 1/5] mm: Introduce a common " Matthew Wilcox (Oracle)
2024-08-15 2:45 ` kernel test robot
2024-08-15 2:45 ` kernel test robot
2024-08-14 15:44 ` [PATCH 2/5] x86: Remove custom " Matthew Wilcox (Oracle)
2024-08-15 4:08 ` kernel test robot
2024-08-14 15:44 ` [PATCH 3/5] um: " Matthew Wilcox (Oracle)
2024-08-14 15:44 ` [PATCH 4/5] s390: " Matthew Wilcox (Oracle)
2024-08-15 12:12 ` Alexander Gordeev
2024-08-22 14:06 ` Alexander Gordeev
2024-08-14 15:44 ` [PATCH 5/5] mm: Make mk_pte() definition unconditional Matthew Wilcox (Oracle)
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=20240814154427.162475-1-willy@infradead.org \
--to=willy@infradead.org \
--cc=linux-arch@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=linux-s390@vger.kernel.org \
--cc=linux-um@lists.infradead.org \
--cc=x86@kernel.org \
/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