[PATCH 0/4] of: request reserved memory regions so other code can't
a.fatoum at pengutronix.de
Wed Jun 8 22:43:38 PDT 2022
This series pulls out some parts from Rouven's eXecute Never series
to improve reserved memory support.
Changes are described beneath each patch. This series was prompted by
Raspberry Pi 64-bit rework: barebox placed the kernel at address 0,
which is reserved for the spin table thereby breaking multicore boot.
Now that reserved memory regions are requested, they are skipped over
when determining a load address.
This may induce breakage if reserved memory regions are being used
by existing code that expects exclusive access. nvmem-rmem is one
such user that's fixed here. If you know of more, please tell.
Ahmad Fatoum (1):
nvmem: rmem: get, don't request, memory region
Rouven Czerwinski (3):
of: reserve: mark runtime firmware code regions specially
of: add of_get_reserve_map stub for !CONFIG_OFTREE
of: request reserved memory regions so other code can't
arch/arm/cpu/sm.c | 3 ++-
arch/arm/cpu/start.c | 3 ++-
arch/arm/mach-layerscape/ppa.c | 2 +-
common/bootm.c | 3 ++-
common/memory.c | 21 +++++++++++++++++++--
drivers/nvmem/rmem.c | 2 +-
drivers/of/Makefile | 1 +
drivers/of/fdt.c | 18 +++++++++++++-----
drivers/video/fb.c | 3 ++-
drivers/video/simplefb-fixup.c | 2 +-
fs/pstore/ram.c | 3 ++-
include/of.h | 15 +++++++++++++--
12 files changed, 59 insertions(+), 17 deletions(-)
More information about the barebox