Skip to content

mm, arch: add generic implementation of pfn_valid() for FLATMEM

Mike Rapoport linux-alpha linux-arch linux-arm-kernel linux-csky linux-hexagon linux-ia64 linux-m68k linux-mips linux-mm linux-parisc linux-riscv linux-sh linux-snps-arc linux-um linuxppc-dev lkml loongarch openrisc sparclinux 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest4 patches 17 repliesIn review 2 of 4 applied
  2. v13 patches 6 repliesSuperseded

Changes in v2 from the cover letter

* fix build on ARM and xtensa
* add Acked- and Reviewed-by, thanks everybody

Patches in v2 2 of 4 applied

#Subject and filesSizeRepliesApplied
1/4arm: include asm-generic/memory_model.h from page.h rather than memory.harch/arm/include/asm/memory.h arch/arm/include/asm/page.h+2 -21 reply
2/4m68k: use asm-generic/memory_model.h for both MMU and !MMUarch/m68k/include/asm/page.h arch/m68k/include/asm/page_mm.h arch/m68k/include/asm/page_no.h+1 -84 repliesApplied
3/4mips: drop definition of pfn_valid() for DISCONTIGMEMarch/mips/include/asm/page.h+0 -151 replyApplied
4/4mm, arch: add generic implementation of pfn_valid() for FLATMEMarch/alpha/include/asm/page.h arch/arc/include/asm/page.h arch/csky/include/asm/page.h +19 more+14 -8611 replies

Reviews trailers per patch

All 4 patches have a Reviewed-by or Acked-by.

PatchGeert UytterhoevenArnd BergmannGuo RenHuacai ChenStafford HorneMichael EllermanConor DooleyDavid Hildenbrand
1/4R-b
2/4R-b A-b R-b
3/4R-b
4/4A-b A-b A-b A-b A-b T-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 8 reviewers.

Read the v2 thread

Cover letter [PATCH v2 0/4] mm, arch: add generic implementation of pfn_valid() for FLATMEM

From: "Mike Rapoport (IBM)" <[email protected]>

Hi,

Every architecture that supports FLATMEM memory model defines its own version of pfn_valid() that essentially compares a pfn to max_mapnr.

Use mips/powerpc version implemented as static inline as a generic implementation of pfn_valid() and drop its per-architecture definitions

v2:
* fix build on ARM and xtensa
* add Acked- and Reviewed-by, thanks everybody

v1: https://lore.kernel.org/all/[email protected]

Mike Rapoport (IBM) (4):
arm: include asm-generic/memory_model.h from page.h rather than
memory.h
m68k: use asm-generic/memory_model.h for both MMU and !MMU
mips: drop definition of pfn_valid() for DISCONTIGMEM mm, arch: add generic implementation of pfn_valid() for FLATMEM

 arch/alpha/include/asm/page.h      |  4 ----
 arch/arc/include/asm/page.h        |  1 -
 arch/arm/include/asm/memory.h      |  2 --
 arch/arm/include/asm/page.h        |  2 ++
 arch/csky/include/asm/page.h       |  1 -
 arch/hexagon/include/asm/page.h    |  1 -
 arch/ia64/include/asm/page.h       |  4 ----
 arch/loongarch/include/asm/page.h  | 13 -------------
 arch/m68k/include/asm/page.h       |  6 +-----
 arch/m68k/include/asm/page_mm.h    |  1 -
 arch/m68k/include/asm/page_no.h    |  4 ----
 arch/microblaze/include/asm/page.h |  1 -
 arch/mips/include/asm/page.h       | 28 ----------------------------
 arch/nios2/include/asm/page.h      |  9 ---------
 arch/openrisc/include/asm/page.h   |  2 --
 arch/parisc/include/asm/page.h     |  4 ----
 arch/powerpc/include/asm/page.h    |  9 ---------
 arch/riscv/include/asm/page.h      |  5 -----
 arch/sh/include/asm/page.h         |  3 ---
 arch/sparc/include/asm/page_32.h   |  1 -
 arch/um/include/asm/page.h         |  1 -
 arch/x86/include/asm/page_32.h     |  4 ----
 arch/x86/include/asm/page_64.h     |  4 ----
 arch/xtensa/include/asm/page.h     |  4 ++--
 include/asm-generic/memory_model.h | 12 ++++++++++++
 include/asm-generic/page.h         |  2 --
 26 files changed, 17 insertions(+), 111 deletions(-)

base-commit: 2241ab53cbb5cdb08a6b2d4688feb13971058f65

Signature · 1 line
2.35.1