mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-17 10:04:26 +00:00

Cortex-X4 erratum 2897503 is a Cat B erratum that applies to all revisions <= r0p1 and is fixed in r0p2. The workaround is to set CPUACTLR4_EL1[8] to 1. SDEN documentation: https://developer.arm.com/documentation/SDEN-2432808/latest Signed-off-by: Arvind Ram Prakash <arvind.ramprakash@arm.com> Change-Id: I3178a890b6f1307b310e817af75f8fdfb8668cc9
49 lines
1.8 KiB
C
49 lines
1.8 KiB
C
/*
|
|
* Copyright (c) 2022-2024, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef CORTEX_X4_H
|
|
#define CORTEX_X4_H
|
|
|
|
#define CORTEX_X4_MIDR U(0x410FD821)
|
|
|
|
/* Cortex X4 loop count for CVE-2022-23960 mitigation */
|
|
#define CORTEX_X4_BHB_LOOP_COUNT U(132)
|
|
|
|
/*******************************************************************************
|
|
* CPU Extended Control register specific definitions
|
|
******************************************************************************/
|
|
#define CORTEX_X4_CPUECTLR_EL1 S3_0_C15_C1_4
|
|
|
|
/*******************************************************************************
|
|
* CPU Power Control register specific definitions
|
|
******************************************************************************/
|
|
#define CORTEX_X4_CPUPWRCTLR_EL1 S3_0_C15_C2_7
|
|
#define CORTEX_X4_CPUPWRCTLR_EL1_CORE_PWRDN_BIT U(1)
|
|
|
|
/*******************************************************************************
|
|
* CPU Auxiliary control register specific definitions
|
|
******************************************************************************/
|
|
#define CORTEX_X4_CPUACTLR3_EL1 S3_0_C15_C1_2
|
|
#define CORTEX_X4_CPUACTLR4_EL1 S3_0_C15_C1_3
|
|
|
|
/*******************************************************************************
|
|
* CPU Auxiliary control register 5 specific definitions
|
|
******************************************************************************/
|
|
#define CORTEX_X4_CPUACTLR5_EL1 S3_0_C15_C8_0
|
|
#define CORTEX_X4_CPUACTLR5_EL1_BIT_14 (ULL(1) << 14)
|
|
|
|
#ifndef __ASSEMBLER__
|
|
#if ERRATA_X4_2726228
|
|
long check_erratum_cortex_x4_2726228(long cpu_rev);
|
|
#else
|
|
static inline long check_erratum_cortex_x4_2726228(long cpu_rev)
|
|
{
|
|
return 0;
|
|
}
|
|
#endif /* ERRATA_X4_2726228 */
|
|
#endif /* __ASSEMBLER__ */
|
|
|
|
#endif /* CORTEX_X4_H */
|