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

Neoverse V2 erratum 2331132 is a Cat B erratum that applies to all revisions <= r0p2 and is still open. The workaround is to write the value 4'b1001 to the PF_MODE bits in the IMP_CPUECTLR2_EL1 register which will place the data prefetcher in the most conservative mode instead of disabling it. SDEN documentation: https://developer.arm.com/documentation/SDEN2332927/latest Signed-off-by: Bipin Ravi <bipin.ravi@arm.com> Change-Id: Ic6c76375df465a4ad2e20dd7add7037477d973c1
34 lines
1.3 KiB
C
34 lines
1.3 KiB
C
/*
|
|
* Copyright (c) 2021-2023, Arm Limited. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
#ifndef NEOVERSE_V2_H
|
|
#define NEOVERSE_V2_H
|
|
|
|
#define NEOVERSE_V2_MIDR U(0x410FD4F0)
|
|
|
|
/* Neoverse V2 loop count for CVE-2022-23960 mitigation */
|
|
#define NEOVERSE_V2_BHB_LOOP_COUNT U(132)
|
|
|
|
/*******************************************************************************
|
|
* CPU Extended Control register specific definitions
|
|
******************************************************************************/
|
|
#define NEOVERSE_V2_CPUECTLR_EL1 S3_0_C15_C1_4
|
|
|
|
/*******************************************************************************
|
|
* CPU Power Control register specific definitions
|
|
******************************************************************************/
|
|
#define NEOVERSE_V2_CPUPWRCTLR_EL1 S3_0_C15_C2_7
|
|
#define NEOVERSE_V2_CPUPWRCTLR_EL1_CORE_PWRDN_BIT U(1)
|
|
|
|
/*******************************************************************************
|
|
* CPU Extended Control register 2 specific definitions.
|
|
******************************************************************************/
|
|
#define NEOVERSE_V2_CPUECTLR2_EL1 S3_0_C15_C1_5
|
|
#define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_CNSRV ULL(9)
|
|
#define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_LSB U(11)
|
|
#define NEOVERSE_V2_CPUECTLR2_EL1_PF_MODE_WIDTH U(4)
|
|
|
|
#endif /* NEOVERSE_V2_H */
|