linux-stable/arch/mips/sgi-ip27
David Hildenbrand d9a9d8effd memblock: allow to specify flags with memblock_add_node()
[ Upstream commit 952eea9b01 ]

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>
Stable-dep-of: c7206e7bd2 ("MIPS: Loongson64: Handle more memory types passed from firmware")
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-12-20 15:17:33 +01:00
..
Kconfig MIPS: SGI-IP27: fix exception handler replication 2019-10-31 15:19:59 -07:00
Makefile MIPS: SGI-IP27: rework HUB interrupts 2019-02-19 12:46:03 -08:00
Platform MIPS: Only include the platform file needed 2020-05-13 00:17:18 +02:00
ip27-berr.c MIPS: SGI-IP27: Use structs for decoding error status registers 2020-01-09 15:29:59 -08:00
ip27-common.h MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it later 2020-01-09 15:30:06 -08:00
ip27-console.c MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h 2020-01-09 15:30:03 -08:00
ip27-hubio.c MIPS: SGI-IP27: Use union instead of typedef 2020-01-09 15:29:58 -08:00
ip27-init.c mm: don't include asm/pgtable.h if linux/mm.h is already included 2020-06-09 09:39:13 -07:00
ip27-irq.c mips: Bulk conversion to generic_handle_domain_irq() 2021-08-12 11:39:40 +01:00
ip27-klconfig.c MIPS: SGI-IP27: use cpu physid already present while scanning for CPUs 2020-01-09 15:29:46 -08:00
ip27-klnuma.c MIPS: SGI-IP27: Move all shared IP27 declarations to ip27-common.h 2020-01-09 15:30:03 -08:00
ip27-memory.c memblock: allow to specify flags with memblock_add_node() 2023-12-20 15:17:33 +01:00
ip27-nmi.c MIPS: SGI-IP27: get rid of asm/sn/sn0/ip27.h 2020-01-09 15:29:51 -08:00
ip27-reset.c MIPS: SGI-IP27: use asm/sn/agent.h for including HUB related stuff 2020-01-09 15:29:50 -08:00
ip27-smp.c MIPS: SGI-IP27: Store cpu speed when scanning for CPUs and use it later 2020-01-09 15:30:06 -08:00
ip27-timer.c MIPS: SGI-IP27: fix spelling in Copyright 2021-03-06 08:43:39 +01:00
ip27-xtalk.c MIPS: SGI-IP27: Fix platform-device leak in bridge_platform_create() 2022-10-26 12:34:37 +02:00