linux/arch
David Hildenbrand 952eea9b01 memblock: allow to specify flags with memblock_add_node()
We want to specify flags when hotplugging memory.  Let's prepare to pass
flags to memblock_add_node() by adjusting all existing users.

Note that when hotplugging memory the system is already up and running
and we might have concurrent memblock users: for example, while we're
hotplugging memory, kexec_file code might search for suitable memory
regions to place kexec images.  It's important to add the memory
directly to memblock via a single call with the right flags, instead of
adding the memory first and apply flags later: otherwise, concurrent
memblock users might temporarily stumble over memblocks with wrong
flags, which will be important in a follow-up patch that introduces a
new flag to properly handle add_memory_driver_managed().

Link: https://lkml.kernel.org/r/20211004093605.5830-4-david@redhat.com
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Acked-by: Shahab Vahedi <shahab@synopsys.com>	[arch/arc]
Reviewed-by: Mike Rapoport <rppt@linux.ibm.com>
Cc: "Aneesh Kumar K . V" <aneesh.kumar@linux.ibm.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Cc: Huacai Chen <chenhuacai@kernel.org>
Cc: Jianyong Wu <Jianyong.Wu@arm.com>
Cc: Jiaxun Yang <jiaxun.yang@flygoat.com>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Vineet Gupta <vgupta@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-11-06 13:30:42 -07:00
..
alpha memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
arc memblock: allow to specify flags with memblock_add_node() 2021-11-06 13:30:42 -07:00
arm memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
arm64 memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
csky csky: Make HAVE_TCM depend on !COMPILE_TEST 2021-10-16 07:20:12 +08:00
h8300
hexagon
ia64 memblock: allow to specify flags with memblock_add_node() 2021-11-06 13:30:42 -07:00
m68k memblock: allow to specify flags with memblock_add_node() 2021-11-06 13:30:42 -07:00
microblaze
mips memblock: allow to specify flags with memblock_add_node() 2021-11-06 13:30:42 -07:00
nds32 ftrace/nds32: Update the proto for ftrace_trace_function to match ftrace_stub 2021-10-27 13:00:17 -04:00
nios2 nios2: Make NIOS2_DTB_SOURCE_BOOL depend on !COMPILE_TEST 2021-10-27 09:29:07 -05:00
openrisc
parisc asm-generic: build fixes for v5.15 2021-10-08 11:57:54 -07:00
powerpc mm/memory_hotplug: remove CONFIG_MEMORY_HOTPLUG_SPARSE 2021-11-06 13:30:42 -07:00
riscv memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
s390 memblock: allow to specify flags with memblock_add_node() 2021-11-06 13:30:42 -07:00
sh memblock: rename memblock_free to memblock_phys_free 2021-11-06 13:30:41 -07:00
sparc memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
um memblock: use memblock_free for freeing virtual pointers 2021-11-06 13:30:41 -07:00
x86 x86: remove memory hotplug support on X86_32 2021-11-06 13:30:42 -07:00
xtensa xtensa: xtfpga: Try software restart before simulating CPU reset 2021-10-05 12:19:05 -07:00
.gitignore
Kconfig