of: of_reserved_mem: mark nomap memory instead of removing
authorDong Aisheng <aisheng.dong@nxp.com>
Fri, 11 Jun 2021 13:11:53 +0000 (21:11 +0800)
committerRob Herring <robh@kernel.org>
Thu, 24 Jun 2021 19:47:26 +0000 (13:47 -0600)
commit7b25995f5319adc354a430df0eb2ec7f79a1e807
treedfe31cbc5d3146fc91491425690d309cb90bfbb9
parent3c6867a12a224db1ff83b68a8ae91ece26986e1f
of: of_reserved_mem: mark nomap memory instead of removing

Since commit 86588296acbf ("fdt: Properly handle "no-map" field in the memory region"),
nomap memory is changed to call memblock_mark_nomap() instead of
memblock_remove(). But it only changed the reserved memory with fixed
addr and size case in early_init_dt_reserve_memory_arch(), not
including the dynamical allocation by size case in
early_init_dt_alloc_reserved_memory_arch().

Cc: Rob Herring <robh+dt@kernel.org>
Cc: devicetree@vger.kernel.org
Signed-off-by: Dong Aisheng <aisheng.dong@nxp.com>
Reviewed-by: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20210611131153.3731147-2-aisheng.dong@nxp.com
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/of_reserved_mem.c