]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 8338/1: kexec: Relax SMP validation to improve DT compatibility
authorGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 1 Apr 2015 12:36:57 +0000 (13:36 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 2 Apr 2015 08:59:43 +0000 (09:59 +0100)
commitca3fcfe5a17ed901a881f4704f41df552cce419d
tree268dd284a31aa2926112aa0eb1cd28990beb045c
parent4f3e1d936e711f30ac059468f48bff48f2d8c36f
ARM: 8338/1: kexec: Relax SMP validation to improve DT compatibility

When trying to kexec into a new kernel on a platform where multiple CPU
cores are present, but no SMP bringup code is available yet, the
kexec_load system call fails with:

    kexec_load failed: Invalid argument

The SMP test added to machine_kexec_prepare() in commit 4adf9effe3e3d946
("ARM: 7807/1: kexec: validate CPU hotplug support") wants to prohibit
kexec on SMP platforms where it cannot disable secondary CPUs.
However, this test is too strict: if the secondary CPUs couldn't be
enabled in the first place, there's no need to disable them later at
kexec time.  Hence skip the test in the absence of SMP bringup code.

This allows to add all CPU cores to the DTS from the beginning, without
having to implement SMP bringup first, improving DT compatibility.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/include/asm/smp_plat.h
arch/arm/kernel/machine_kexec.c
arch/arm/kernel/smp.c