Re: [PATCH 1/3] loongarch: Call arch_mem_init() before platform_init() in the init sequence

2024-02-14 Thread Oreoluwa Babatunde
On 2/14/2024 5:03 AM, Huacai Chen wrote: > Hi, Oreoluwa, > > On Sat, Feb 10, 2024 at 8:29 AM Oreoluwa Babatunde > wrote: >> The platform_init() function which is called during device bootup >> contains a few calls to memblock_alloc(). >> This is an issue beca

[PATCH 1/3] loongarch: Call arch_mem_init() before platform_init() in the init sequence

2024-02-09 Thread Oreoluwa Babatunde
from any of the reserved memory regions. Hence, move the call to arch_mem_init() to be earlier in the init sequence so that all reserved memory is set aside before any allocations are made with memblock. Signed-off-by: Oreoluwa Babatunde --- arch/loongarch/kernel/setup.c | 2 +- 1 file changed, 1

[PATCH 2/3] openrisc: Call setup_memory() earlier in the init sequence

2024-02-09 Thread Oreoluwa Babatunde
for memblock to allocate from any of the reserved memory regions. Hence, move the call to setup_memory() to be earlier in the init sequence so that the reserved memory regions are set aside before any allocations are done using memblock. Signed-off-by: Oreoluwa Babatunde --- arch/openrisc/kernel

[PATCH 3/3] sh: Call paging_init() earlier in the init sequence

2024-02-09 Thread Oreoluwa Babatunde
that are supposed to be set aside as reserved. Hence, move the call to paging_init() to be earlier in the init sequence so that the reserved memory regions are set aside before any allocations are done using memblock. Signed-off-by: Oreoluwa Babatunde --- arch/sh/kernel/setup.c | 4 ++-- 1 file changed, 2

[PATCH 0/3] Restructure init sequence to set aside reserved memory earlier

2024-02-09 Thread Oreoluwa Babatunde
to come from them. I am currnetly using an arm64 device, and so I will need assistance from the relevant arch maintainers to help check if this breaks anything from compilation to device bootup. Oreoluwa Babatunde (3): loongarch: Call arch_mem_init() before platform_init() in the init

Re: [PATCH 0/3] Restructure init sequence to set aside reserved memory earlier

2024-03-05 Thread Oreoluwa Babatunde
On 2/9/2024 4:29 PM, Oreoluwa Babatunde wrote: > The loongarch, openric, and sh architectures allocate memory from > memblock before it gets the chance to set aside reserved memory regions. > This means that there is a possibility for memblock to allocate from > memory regions that