android_kernel_motorola_sm6375/arch/openrisc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Oreoluwa Babatunde b4bde02e00 openrisc: Call setup_memory() earlier in the init sequence
[ Upstream commit 7b432bf376c9c198a7ff48f1ed14a14c0ffbe1fe ]

The unflatten_and_copy_device_tree() function contains a call to
memblock_alloc(). This means that memblock is allocating memory before
any of the reserved memory regions are set aside in the setup_memory()
function which calls early_init_fdt_scan_reserved_mem(). Therefore,
there is a possibility 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 <quic_obabatun@quicinc.com>
Signed-off-by: Stafford Horne <shorne@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-04 13:14:57 +02:00
..
boot/dts or1k: dts: Add ethoc device to SMP devicetree 2019-08-31 11:56:19 +09:00
configs
include openrisc: start CPU timer early in boot 2022-06-14 18:11:28 +02:00
kernel openrisc: Call setup_memory() earlier in the init sequence 2024-09-04 13:14:57 +02:00
lib
mm openrisc: Fix cache API compile issue when not inlining 2020-09-23 12:40:36 +02:00
Kconfig
Kconfig.debug
Makefile