Skip to content

Commit 83bea32

Browse files
cometzerowilldeacon
authored andcommitted
arm64: Add part number for Arm Cortex-A78AE
Add the MIDR part number info for the Arm Cortex-A78AE[1] and add it to spectre-BHB affected list[2]. [1]: https://developer.arm.com/Processors/Cortex-A78AE [2]: https://developer.arm.com/Arm%20Security%20Center/Spectre-BHB Cc: Catalin Marinas <catalin.marinas@arm.com> Cc: Mark Rutland <mark.rutland@arm.com> Cc: Will Deacon <will@kernel.org> Cc: James Morse <james.morse@arm.com> Signed-off-by: Chanho Park <chanho61.park@samsung.com> Link: https://lore.kernel.org/r/20220407091128.8700-1-chanho61.park@samsung.com Signed-off-by: Will Deacon <will@kernel.org>
1 parent 31a099d commit 83bea32

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

arch/arm64/include/asm/cputype.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@
7575
#define ARM_CPU_PART_CORTEX_A77 0xD0D
7676
#define ARM_CPU_PART_NEOVERSE_V1 0xD40
7777
#define ARM_CPU_PART_CORTEX_A78 0xD41
78+
#define ARM_CPU_PART_CORTEX_A78AE 0xD42
7879
#define ARM_CPU_PART_CORTEX_X1 0xD44
7980
#define ARM_CPU_PART_CORTEX_A510 0xD46
8081
#define ARM_CPU_PART_CORTEX_A710 0xD47
@@ -130,6 +131,7 @@
130131
#define MIDR_CORTEX_A77 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A77)
131132
#define MIDR_NEOVERSE_V1 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_NEOVERSE_V1)
132133
#define MIDR_CORTEX_A78 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A78)
134+
#define MIDR_CORTEX_A78AE MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A78AE)
133135
#define MIDR_CORTEX_X1 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_X1)
134136
#define MIDR_CORTEX_A510 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A510)
135137
#define MIDR_CORTEX_A710 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A710)

arch/arm64/kernel/proton-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,7 @@ u8 spectre_bhb_loop_affected(int scope)
853853
if (scope == SCOPE_LOCAL_CPU) {
854854
static const struct midr_range spectre_bhb_k32_list[] = {
855855
MIDR_ALL_VERSIONS(MIDR_CORTEX_A78),
856+
MIDR_ALL_VERSIONS(MIDR_CORTEX_A78AE),
856857
MIDR_ALL_VERSIONS(MIDR_CORTEX_A78C),
857858
MIDR_ALL_VERSIONS(MIDR_CORTEX_X1),
858859
MIDR_ALL_VERSIONS(MIDR_CORTEX_A710),

0 commit comments

Comments
 (0)