Skip to content

Fixmap support and MM cleanups

Anup Patel linux-riscv lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 10 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5RISC-V: Move free_initrd_mem() to kernel/setup.carch/riscv/kernel/setup.c arch/riscv/mm/init.c+4 -72 replies
2/5RISC-V: Setup init_mm before parse_early_param()arch/riscv/kernel/setup.c+4 -52 replies
3/5RISC-V: Move setup_bootmem() to mm/init.carch/riscv/include/asm/pgtable.h arch/riscv/kernel/setup.c arch/riscv/mm/init.c+46 -432 replies
4/5RISC-V: Move setup_vm() to mm/init.carch/riscv/kernel/setup.c arch/riscv/mm/init.c+50 -491 reply
5/5RISC-V: Implement compile-time fixed mappingsarch/riscv/Kconfig arch/riscv/include/asm/fixmap.h arch/riscv/mm/init.c+87 -03 replies

Reviews trailers per patch

3 of 5 patches have a Reviewed-by or Acked-by.

PatchChristoph Hellwig
1/5R-b
2/5
3/5R-b
4/5R-b
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] Fixmap support and MM cleanups

This patchset does:
1. Moves MM related code from kernel/setup.c to mm/init.c
2. Implements compile-time fixed mappings

Using fixed mappings available, we can now get earlyprints even without SBI calls. For example, we can use kernel parameter "earlycon=uart8250,mmio,0x10000000" to get early prints on QEMU virt machine without using SBI calls.

The patchset is tested on QEMU virt machine. It is based on Linux-5.0-rc1 and can be found at riscv_fixmap_v1 branch of:
https://github.com/avpatel/linux.git.

Anup Patel (5):
RISC-V: Move free_initrd_mem() to kernel/setup.c
RISC-V: Setup init_mm before parse_early_param()
RISC-V: Move setup_bootmem() to mm/init.c
RISC-V: Move setup_vm() to mm/init.c
RISC-V: Implement compile-time fixed mappings

 arch/riscv/Kconfig               |   3 +
 arch/riscv/include/asm/fixmap.h  |  52 +++++++++++++
 arch/riscv/include/asm/pgtable.h |   1 +
 arch/riscv/kernel/setup.c        | 106 +++-----------------------
 arch/riscv/mm/init.c             | 123 ++++++++++++++++++++++++++++++-
 5 files changed, 186 insertions(+), 99 deletions(-)
 create mode 100644 arch/riscv/include/asm/fixmap.h
Signature · 1 line
2.17.1