Re: [PATCH 0/5] sparc32: replace sp_banks with memblock
From: Sam Ravnborg
Date: Sat Aug 29 2026 - 02:29:58 EST
Hi Magnus.
On Thu, Aug 27, 2026 at 08:24:12PM +0200, Magnus Lindholm wrote:
> Replace the sparc32-private sp_banks memory description with memblock.
>
> The first two patches convert the SRMMU consumers that already run after
> bootmem_init() has populated memblock. The third patch moves memblock
> population to prom_meminit() and applies the mem= limit there, keeping that
> intermediate state correct. The fourth patch moves the early memory setup
> into setup_32.c and the final patch removes the now-unused sp_banks array.
>
> This work is based on an earlier eight-patch series by Sam Ravnborg.
> Patch 2 directly carries over Sam's memblock sizing conversion. The series
> has otherwise been substantially reorganized and reworked for the current
> kernel. Compared with Sam's series, this version is ported to the current
> generic MM setup, keeps the sparc32 mem= command-line option by using
> memblock_enforce_memory_limit(), and uses memblock's exclusive range-end
> semantics throughout.
Thanks for picking this up!
Patches 1,2,3,5 are:
Reviewed-by: Sam Ravnborg <sam@xxxxxxxxxxxx>
I left some comments in patch 4.
Sam