From 67a2ad171d1fb604d4cba8fa7f92ccb66d1ef3f9 Mon Sep 17 00:00:00 2001 From: Varun Wadekar Date: Wed, 20 Sep 2023 15:13:16 +0000 Subject: fix(cpus): update the fix for Cortex-A78AE erratum 1941500 This patch fixes the mitigation for erratum 1941500 for the Cortex-A78AE CPUs. The right fix is to set the bit 8, whereas the current code clears it. Reported-by: matthias.rosenfelder@nio.io Signed-off-by: Varun Wadekar Change-Id: Ib7c3fddd567eeae6204756377e0f77a573c0a911 --- lib/cpus/aarch64/cortex_a78_ae.S | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib') diff --git a/lib/cpus/aarch64/cortex_a78_ae.S b/lib/cpus/aarch64/cortex_a78_ae.S index 9f729c1f0..94f6465c6 100644 --- a/lib/cpus/aarch64/cortex_a78_ae.S +++ b/lib/cpus/aarch64/cortex_a78_ae.S @@ -1,6 +1,6 @@ /* * Copyright (c) 2019-2023, Arm Limited. All rights reserved. - * Copyright (c) 2021-2022, NVIDIA Corporation. All rights reserved. + * Copyright (c) 2021-2023, NVIDIA Corporation. All rights reserved. * * SPDX-License-Identifier: BSD-3-Clause */ @@ -23,7 +23,7 @@ #endif /* WORKAROUND_CVE_2022_23960 */ workaround_reset_start cortex_a78_ae, ERRATUM(1941500), ERRATA_A78_AE_1941500 - sysreg_bit_clear CORTEX_A78_AE_CPUECTLR_EL1, CORTEX_A78_AE_CPUECTLR_EL1_BIT_8 + sysreg_bit_set CORTEX_A78_AE_CPUECTLR_EL1, CORTEX_A78_AE_CPUECTLR_EL1_BIT_8 workaround_reset_end cortex_a78_ae, ERRATUM(1941500) check_erratum_ls cortex_a78_ae, ERRATUM(1941500), CPU_REV(0, 1) -- cgit v1.2.3