[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20220509041305.15056-1-kernelfans@gmail.com>
Date: Mon, 9 May 2022 12:13:03 +0800
From: Pingfan Liu <kernelfans@...il.com>
To: linux-ia64@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
linux-kernel@...r.kernel.org
Cc: Pingfan Liu <kernelfans@...il.com>,
Eric Biederman <ebiederm@...ssion.com>,
Peter Zijlstra <peterz@...radead.org>,
Thomas Gleixner <tglx@...utronix.de>,
Valentin Schneider <valentin.schneider@....com>,
Vincent Donnefort <vincent.donnefort@....com>,
Ingo Molnar <mingo@...nel.org>,
YueHaibing <yuehaibing@...wei.com>,
Baokun Li <libaokun1@...wei.com>,
Randy Dunlap <rdunlap@...radead.org>,
kexec@...ts.infradead.org,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Kees Cook <keescook@...omium.org>,
Jens Axboe <axboe@...nel.dk>,
Russell King <linux@...linux.org.uk>,
Guenter Roeck <linux@...ck-us.net>,
Arnd Bergmann <arnd@...db.de>,
Wolfram Sang <wsa+renesas@...g-engineering.com>,
Lee Jones <lee.jones@...aro.org>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Peter Collingbourne <pcc@...gle.com>,
Marc Zyngier <maz@...nel.org>
Subject: [PATCHv3 0/2] cpu/hotplug: Keep cpu hotplug disabled until the rebooting cpu is stable
For the arches (arm/arm64/ia64/riscv), which relies on the cpu hot-removing
mechanism to implement "kexec -e", it is important to make sure that the
rebooting happens on a valid online cpu. And this logic should have been
guaranteed in migrate_to_reboot_cpu().
But the current code has either contradict (resolved by [2/2]) or
redundancy (resolved by [1/2]) about the logic.
V2 -> V3:
Taking in [2/2], which also has problem with the valid rebooting
cpu. (I had sent three patches for different arches. But maybe it is
better to collapse them into one and collect acks from different arches'
maintainers )
Cc: Eric Biederman <ebiederm@...ssion.com>
Cc: Peter Zijlstra <peterz@...radead.org>
Cc: Thomas Gleixner <tglx@...utronix.de>
Cc: Valentin Schneider <valentin.schneider@....com>
Cc: Vincent Donnefort <vincent.donnefort@....com>
Cc: Ingo Molnar <mingo@...nel.org>
Cc: YueHaibing <yuehaibing@...wei.com>
Cc: Baokun Li <libaokun1@...wei.com>
Cc: Randy Dunlap <rdunlap@...radead.org>
Cc: Valentin Schneider <valentin.schneider@....com>
Cc: kexec@...ts.infradead.org
Cc: Geert Uytterhoeven <geert@...ux-m68k.org>
Cc: Kees Cook <keescook@...omium.org>
Cc: Jens Axboe <axboe@...nel.dk>
To: linux-ia64@...r.kernel.org
Cc: Russell King <linux@...linux.org.uk>
Cc: Guenter Roeck <linux@...ck-us.net>
Cc: Arnd Bergmann <arnd@...db.de>
Cc: Wolfram Sang <wsa+renesas@...g-engineering.com>
Cc: Lee Jones <lee.jones@...aro.org>
Cc: Catalin Marinas <catalin.marinas@....com>
Cc: Will Deacon <will@...nel.org>
Cc: Mark Rutland <mark.rutland@....com>
Cc: Peter Collingbourne <pcc@...gle.com>
Cc: Marc Zyngier <maz@...nel.org>
To: linux-arm-kernel@...ts.infradead.org
To: linux-kernel@...r.kernel.org
Pingfan Liu (2):
cpu/hotplug: Keep cpu hotplug disabled until the rebooting cpu is
stable
arm/arm64/ia64: kexec: fix the primary cpu passed to
smp_shutdown_nonboot_cpus()
arch/arm/kernel/reboot.c | 2 +-
arch/arm64/kernel/process.c | 2 +-
arch/ia64/kernel/process.c | 2 +-
kernel/cpu.c | 16 ++++++++++------
kernel/kexec_core.c | 10 ++++------
5 files changed, 17 insertions(+), 15 deletions(-)
--
2.31.1
Powered by blists - more mailing lists