Skip to content

MIPS memblock: Remove bootmem code and switch to NO_BOOTMEM

Serge Semin linux-devicetree linux-mips lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest21 patches 18 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/21MIPS memblock: Unpin dts memblock sanity check methoddrivers/of/fdt.c include/linux/of_fdt.h+35 -132 replies
2/21MIPS memblock: Add dts mem and reserved-mem callbacksarch/mips/kernel/prom.c+31 -10 replies
3/21MIPS memblock: Alter traditional add_memory_region() methodarch/mips/kernel/setup.c+48 -30 replies
4/21MIPS memblock: Alter user-defined memory parameter parserarch/mips/kernel/setup.c+37 -301 reply
5/21MIPS memblock: Alter initrd memory reservation methodarch/mips/kernel/setup.c+87 -700 replies
6/21MIPS memblock: Alter kexec-crashkernel parameters parserarch/mips/kernel/setup.c+52 -530 replies
7/21MIPS memblock: Alter elfcorehdr parameters parserarch/mips/kernel/setup.c+52 -390 replies
8/21MIPS memblock: Move kernel parameters parser into individual methodarch/mips/kernel/setup.c+48 -390 replies
9/21MIPS memblock: Move kernel memory reservation to individual methodarch/mips/kernel/setup.c+59 -580 replies
10/21MIPS memblock: Discard bootmem allocator initializationarch/mips/kernel/setup.c+21 -1721 reply
11/21MIPS memblock: Add memblock sanity check methodarch/mips/kernel/setup.c+83 -00 replies
12/21MIPS memblock: Add memblock print outs in debugarch/mips/kernel/setup.c+11 -30 replies
13/21MIPS memblock: Add memblock allocator initializationarch/mips/kernel/setup.c+71 -220 replies
14/21MIPS memblock: Alter IO resources initialization methodarch/mips/kernel/setup.c+12 -280 replies
15/21MIPS memblock: Alter weakened MAAR initialization methodarch/mips/mm/init.c+13 -140 replies
16/21MIPS memblock: Alter paging initialization methodarch/mips/mm/init.c+56 -230 replies
17/21MIPS memblock: Alter high memory freeing methodarch/mips/mm/init.c+21 -330 replies
18/21MIPS memblock: Slightly improve buddy allocator init methodarch/mips/mm/init.c+19 -40 replies
19/21MIPS memblock: Add print out method of kernel virtual memory layoutarch/mips/mm/init.c+47 -04 replies
20/21MIPS memblock: Add free low memory test method callarch/mips/mm/init.c+6 -00 replies
21/21MIPS memblock: Deactivate old bootmem allocatorarch/mips/Kconfig+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/21] MIPS memblock: Remove bootmem code and switch to NO_BOOTMEM

Most of the modern platforms supported by linux kernel have already been cleaned up of old bootmem allocator by moving to nobootmem interface wrapping up the memblock. This patchset is the first attempt to do the similar improvement for MIPS for UMA systems only.

Even though the porting was performed as much careful as possible there still might be problem with support of some platforms, especially Loonson3 or SGI IP27, which perform early memory manager initialization by their self.

The patchset is split so individual patch being consistent in functional and buildable ways. But the MIPS early memory manager will work correctly only either with or without the whole set being applied. For the same reason a reviewer should not pay much attention to methods bootmem_init(), arch_mem_init(), paging_init() and mem_init() until they are fully refactored.

The patchset is applied on top of kernel v4.9.

Serge Semin (21):
MIPS memblock: Unpin dts memblock sanity check method MIPS memblock: Add dts mem and reserved-mem callbacks MIPS memblock: Alter traditional add_memory_region() method MIPS memblock: Alter user-defined memory parameter parser MIPS memblock: Alter initrd memory reservation method MIPS memblock: Alter kexec-crashkernel parameters parser MIPS memblock: Alter elfcorehdr parameters parser
MIPS memblock: Move kernel parameters parser into individual method MIPS memblock: Move kernel memory reservation to individual method MIPS memblock: Discard bootmem allocator initialization MIPS memblock: Add memblock sanity check method
MIPS memblock: Add memblock print outs in debug
MIPS memblock: Add memblock allocator initialization MIPS memblock: Alter IO resources initialization method MIPS memblock: Alter weakened MAAR initialization method MIPS memblock: Alter paging initialization method
MIPS memblock: Alter high memory freeing method
MIPS memblock: Slightly improve buddy allocator init method MIPS memblock: Add print out method of kernel virtual memory layout MIPS memblock: Add free low memory test method call
MIPS memblock: Deactivate old bootmem allocator

 arch/mips/Kconfig        |   2 +-
 arch/mips/kernel/prom.c  |  32 +-
 arch/mips/kernel/setup.c | 958 +++++++++++++++--------------
 arch/mips/mm/init.c      | 234 ++++---
 drivers/of/fdt.c         |  47 +-
 include/linux/of_fdt.h   |   1 +
 6 files changed, 739 insertions(+), 535 deletions(-)
Signature · 1 line
2.6.6