Skip to content

Commit 637b446

Browse files
committed
arm64: Add support for HIP09 Spectre-BHB mitigation
JIRA: https://issues.redhat.com/browse/RHEL-119900 commit e18c09b Author: Jinqian Yang <yangjinqian1@huawei.com> Date: Tue, 25 Mar 2025 22:19:00 +0800 arm64: Add support for HIP09 Spectre-BHB mitigation The HIP09 processor is vulnerable to the Spectre-BHB (Branch History Buffer) attack, which can be exploited to leak information through branch prediction side channels. This commit adds the MIDR of HIP09 to the list for software mitigation. Signed-off-by: Jinqian Yang <yangjinqian1@huawei.com> Link: https://lore.kernel.org/r/20250325141900.2057314-1-yangjinqian1@huawei.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com> Signed-off-by: Waiman Long <longman@redhat.com>
1 parent 834d01a commit 637b446

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
@@ -131,6 +131,7 @@
131131
#define FUJITSU_CPU_PART_A64FX 0x001
132132

133133
#define HISI_CPU_PART_TSV110 0xD01
134+
#define HISI_CPU_PART_HIP09 0xD02
134135

135136
#define APPLE_CPU_PART_M1_ICESTORM 0x022
136137
#define APPLE_CPU_PART_M1_FIRESTORM 0x023
@@ -206,6 +207,7 @@
206207
#define MIDR_NVIDIA_CARMEL MIDR_CPU_MODEL(ARM_CPU_IMP_NVIDIA, NVIDIA_CPU_PART_CARMEL)
207208
#define MIDR_FUJITSU_A64FX MIDR_CPU_MODEL(ARM_CPU_IMP_FUJITSU, FUJITSU_CPU_PART_A64FX)
208209
#define MIDR_HISI_TSV110 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_TSV110)
210+
#define MIDR_HISI_HIP09 MIDR_CPU_MODEL(ARM_CPU_IMP_HISI, HISI_CPU_PART_HIP09)
209211
#define MIDR_APPLE_M1_ICESTORM MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_ICESTORM)
210212
#define MIDR_APPLE_M1_FIRESTORM MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_FIRESTORM)
211213
#define MIDR_APPLE_M1_ICESTORM_PRO MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_ICESTORM_PRO)

arch/arm64/kernel/proton-pack.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -902,6 +902,7 @@ static u8 spectre_bhb_loop_affected(void)
902902
MIDR_ALL_VERSIONS(MIDR_CORTEX_A77),
903903
MIDR_ALL_VERSIONS(MIDR_NEOVERSE_N1),
904904
MIDR_ALL_VERSIONS(MIDR_QCOM_KRYO_4XX_GOLD),
905+
MIDR_ALL_VERSIONS(MIDR_HISI_HIP09),
905906
{},
906907
};
907908
static const struct midr_range spectre_bhb_k11_list[] = {

0 commit comments

Comments
 (0)