]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: Allow CPUs unffected by ARM erratum 1418040 to come in late
authorMarc Zyngier <maz@kernel.org>
Fri, 11 Sep 2020 18:16:11 +0000 (19:16 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Sun, 13 Sep 2020 12:18:10 +0000 (13:18 +0100)
commit6fd5e75fc63e5ecd425c7ab3b0ec0aff0e0fa6ff
treee93170f182f651f95ab98fc1b4b2268c1e87881a
parent7c420978b2f8fd8b89379b2298384a916f6f9983
arm64: Allow CPUs unffected by ARM erratum 1418040 to come in late

Now that we allow CPUs affected by erratum 1418040 to come in late,
this prevents their unaffected sibblings from coming in late (or
coming back after a suspend or hotplug-off, which amounts to the
same thing).

To allow this, we need to add ARM64_CPUCAP_OPTIONAL_FOR_LATE_CPU,
which amounts to set .type to ARM64_CPUCAP_WEAK_LOCAL_CPU_FEATURE.

Fixes: 63a272171a43 ("arm64: Allow booting of late CPUs affected by erratum 1418040")
Reported-by: Matthias Kaehlcke <mka@chromium.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Tested-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>
Tested-by: Matthias Kaehlcke <mka@chromium.org>
Acked-by: Will Deacon <will@kernel.org>
Link: https://lore.kernel.org/r/20200911181611.2073183-1-maz@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/cpu_errata.c