[PATCH -v2 00/10] Rewrite Motorola MMU page-table layout

From: Peter Zijlstra
Date: Fri Jan 31 2020 - 07:56:33 EST


Hi!

In order to faciliate Will's READ_ONCE() patches:

https://lkml.kernel.org/r/20200123153341.19947-1-will@xxxxxxxxxx

we need to fix m68k/motorola to not have a giant pmd_t. These patches do so and
are tested using ARAnyM/68040.

Michael tested the previous version on his Atari Falcon/68030.

Build tested for sun3/coldfire.

Please consider!

Changes since -v1:
- fixed sun3/coldfire build issues
- unified motorola mmu page setup
- added enum to table allocator
- moved pointer table allocator to motorola.c
- converted coldfire pgtable_t
- fixed coldfire pgd_alloc
- fixed coldfire nocache

---
arch/m68k/include/asm/mcf_pgalloc.h | 31 ++---
arch/m68k/include/asm/motorola_pgalloc.h | 74 ++++------
arch/m68k/include/asm/motorola_pgtable.h | 36 +++--
arch/m68k/include/asm/page.h | 16 ++-
arch/m68k/include/asm/pgtable_mm.h | 10 +-
arch/m68k/mm/init.c | 34 +++--
arch/m68k/mm/kmap.c | 36 +++--
arch/m68k/mm/memory.c | 103 --------------
arch/m68k/mm/motorola.c | 228 +++++++++++++++++++++++++------
9 files changed, 302 insertions(+), 266 deletions(-)