Re: [PATCH v2 00/13] arch, mm: reduce code duplication in mem_init()

2025-03-13 Thread Mark Brown
On Thu, Mar 13, 2025 at 03:49:50PM +0200, Mike Rapoport wrote: > v2 changes: > * don't use generic version for setting high_memory on architectures > that use that varialble earlier than free_area_init() > * use memblock_alloc_or_panig() to allocate zero pages on MIPS and s390 > * fix alignment

[PATCH v2 00/13] arch, mm: reduce code duplication in mem_init()

2025-03-13 Thread Mike Rapoport
From: "Mike Rapoport (Microsoft)" Hi, Every architecture has implementation of mem_init() function and some even more than one. All these release free memory to the buddy allocator, most of them set high_memory to the end of directly addressable memory and many of them set max_mapnr for FLATMEM