diff mbox series

[2/2] arm64: Allow booting of late CPUs affected by erratum 1418040

Message ID 20200728092112.3865765-3-maz@kernel.org (mailing list archive)
State New, archived
Headers show
Series arm64: Allow erratum 1418040 for late CPUs | expand

Commit Message

Marc Zyngier July 28, 2020, 9:21 a.m. UTC
As we can now switch from a system that isn't affected by 1418040
to a system that globally is affected, let's allow affected CPUs
to come in at a later time.

Signed-off-by: Marc Zyngier <maz@kernel.org>
---
 arch/arm64/kernel/cpu_errata.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Sai Prakash Ranjan July 28, 2020, 11:05 a.m. UTC | #1
On 2020-07-28 14:51, Marc Zyngier wrote:
> As we can now switch from a system that isn't affected by 1418040
> to a system that globally is affected, let's allow affected CPUs
> to come in at a later time.
> 
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> ---
>  arch/arm64/kernel/cpu_errata.c | 2 ++
>  1 file changed, 2 insertions(+)
> 

Tested-by: Sai Prakash Ranjan <saiprakash.ranjan@codeaurora.org>

Thanks,
Sai
Stephen Boyd July 28, 2020, 8:04 p.m. UTC | #2
Quoting Marc Zyngier (2020-07-28 02:21:12)
> As we can now switch from a system that isn't affected by 1418040
> to a system that globally is affected, let's allow affected CPUs
> to come in at a later time.
> 
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> ---

Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Suzuki K Poulose July 29, 2020, 9:34 a.m. UTC | #3
On 07/28/2020 10:21 AM, Marc Zyngier wrote:
> As we can now switch from a system that isn't affected by 1418040
> to a system that globally is affected, let's allow affected CPUs
> to come in at a later time.
> 
> Signed-off-by: Marc Zyngier <maz@kernel.org>
> ---
>   arch/arm64/kernel/cpu_errata.c | 2 ++
>   1 file changed, 2 insertions(+)
> 
> diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
> index 79728bfb5351..2c0b82db825b 100644
> --- a/arch/arm64/kernel/cpu_errata.c
> +++ b/arch/arm64/kernel/cpu_errata.c
> @@ -910,6 +910,8 @@ const struct arm64_cpu_capabilities arm64_errata[] = {
>   		.desc = "ARM erratum 1418040",
>   		.capability = ARM64_WORKAROUND_1418040,
>   		ERRATA_MIDR_RANGE_LIST(erratum_1418040_list),
> +		.type = (ARM64_CPUCAP_SCOPE_LOCAL_CPU |
> +			 ARM64_CPUCAP_PERMITTED_FOR_LATE_CPU),
>   	},
>   #endif
>   #ifdef CONFIG_ARM64_WORKAROUND_SPECULATIVE_AT
> 

Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
diff mbox series

Patch

diff --git a/arch/arm64/kernel/cpu_errata.c b/arch/arm64/kernel/cpu_errata.c
index 79728bfb5351..2c0b82db825b 100644
--- a/arch/arm64/kernel/cpu_errata.c
+++ b/arch/arm64/kernel/cpu_errata.c
@@ -910,6 +910,8 @@  const struct arm64_cpu_capabilities arm64_errata[] = {
 		.desc = "ARM erratum 1418040",
 		.capability = ARM64_WORKAROUND_1418040,
 		ERRATA_MIDR_RANGE_LIST(erratum_1418040_list),
+		.type = (ARM64_CPUCAP_SCOPE_LOCAL_CPU |
+			 ARM64_CPUCAP_PERMITTED_FOR_LATE_CPU),
 	},
 #endif
 #ifdef CONFIG_ARM64_WORKAROUND_SPECULATIVE_AT