linux-um.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/4] mm, arch: add generic implementation of pfn_valid() for FLATMEM
@ 2023-01-29 12:42 Mike Rapoport
  2023-01-29 12:42 ` [PATCH v2 1/4] arm: include asm-generic/memory_model.h from page.h rather than memory.h Mike Rapoport
                   ` (3 more replies)
  0 siblings, 4 replies; 22+ messages in thread
From: Mike Rapoport @ 2023-01-29 12:42 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Arnd Bergmann, Brian Cain, David S. Miller, Dinh Nguyen,
	Geert Uytterhoeven, Greg Ungerer, Guo Ren, Helge Deller,
	Huacai Chen, Matt Turner, Max Filippov, Michael Ellerman,
	Michal Simek, Palmer Dabbelt, Rich Felker, Richard Weinberger,
	Russell King, Stafford Horne, Thomas Bogendoerfer, Vineet Gupta,
	WANG Xuerui, Yoshinori Sato, linux-alpha, linux-arch,
	linux-arm-kernel, linux-csky, linux-hexagon, linux-ia64,
	linux-kernel, linux-m68k, linux-mips, linux-mm, linux-parisc,
	linux-riscv, linux-sh, linux-snps-arc, linux-um, linux-xtensa,
	linuxppc-dev, loongarch, openrisc, sparclinux, x86,
	Mike Rapoport (IBM)

From: "Mike Rapoport (IBM)" <rppt@kernel.org>

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/20230125190757.22555-1-rppt@kernel.org

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
-- 
2.35.1


_______________________________________________
linux-um mailing list
linux-um@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-um

^ permalink raw reply	[flat|nested] 22+ messages in thread

end of thread, other threads:[~2023-02-13  7:54 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-29 12:42 [PATCH v2 0/4] mm, arch: add generic implementation of pfn_valid() for FLATMEM Mike Rapoport
2023-01-29 12:42 ` [PATCH v2 1/4] arm: include asm-generic/memory_model.h from page.h rather than memory.h Mike Rapoport
2023-02-03 14:30   ` David Hildenbrand
2023-01-29 12:42 ` [PATCH v2 2/4] m68k: use asm-generic/memory_model.h for both MMU and !MMU Mike Rapoport
2023-02-03 14:31   ` David Hildenbrand
2023-02-12 17:35   ` Guenter Roeck
2023-02-13  1:15     ` Mike Rapoport
2023-02-13  6:25       ` Guenter Roeck
2023-01-29 12:42 ` [PATCH v2 3/4] mips: drop definition of pfn_valid() for DISCONTIGMEM Mike Rapoport
2023-02-03 14:31   ` David Hildenbrand
2023-01-29 12:42 ` [PATCH v2 4/4] mm, arch: add generic implementation of pfn_valid() for FLATMEM Mike Rapoport
2023-01-30  5:06   ` Michael Ellerman
2023-01-31 17:47   ` Conor Dooley
2023-01-31 18:41     ` Mike Rapoport
2023-01-31 18:55       ` Conor Dooley
2023-02-03 14:33   ` David Hildenbrand
2023-02-12 16:13   ` Guenter Roeck
2023-02-12 16:26     ` Mike Rapoport
2023-02-12 17:38       ` Guenter Roeck
2023-02-13  1:26     ` Mike Rapoport
2023-02-13  6:37       ` Guenter Roeck
2023-02-13  7:54         ` Mike Rapoport

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).