Skip to content

Commit ffc1df3

Browse files
committed
tools headers arm64: Sync arm64's cputype.h with the kernel sources
To get the changes in: 0e5d5ae ("arm64: Add AMPERE1 to the Spectre-BHB affected list") That addresses this perf build warning: Warning: Kernel ABI header at 'tools/arch/arm64/include/asm/cputype.h' differs from latest version at 'arch/arm64/include/asm/cputype.h' diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h Cc: Catalin Marinas <[email protected]> Cc: D Scott Phillips <[email protected]> https://lore.kernel.org/lkml/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent 246122a commit ffc1df3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/arch/arm64/include/asm/cputype.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
#define ARM_CPU_IMP_FUJITSU 0x46
6161
#define ARM_CPU_IMP_HISI 0x48
6262
#define ARM_CPU_IMP_APPLE 0x61
63+
#define ARM_CPU_IMP_AMPERE 0xC0
6364

6465
#define ARM_CPU_PART_AEM_V8 0xD0F
6566
#define ARM_CPU_PART_FOUNDATION 0xD00
@@ -123,6 +124,8 @@
123124
#define APPLE_CPU_PART_M1_ICESTORM_MAX 0x028
124125
#define APPLE_CPU_PART_M1_FIRESTORM_MAX 0x029
125126

127+
#define AMPERE_CPU_PART_AMPERE1 0xAC3
128+
126129
#define MIDR_CORTEX_A53 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A53)
127130
#define MIDR_CORTEX_A57 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A57)
128131
#define MIDR_CORTEX_A72 MIDR_CPU_MODEL(ARM_CPU_IMP_ARM, ARM_CPU_PART_CORTEX_A72)
@@ -172,6 +175,7 @@
172175
#define MIDR_APPLE_M1_FIRESTORM_PRO MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_FIRESTORM_PRO)
173176
#define MIDR_APPLE_M1_ICESTORM_MAX MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_ICESTORM_MAX)
174177
#define MIDR_APPLE_M1_FIRESTORM_MAX MIDR_CPU_MODEL(ARM_CPU_IMP_APPLE, APPLE_CPU_PART_M1_FIRESTORM_MAX)
178+
#define MIDR_AMPERE1 MIDR_CPU_MODEL(ARM_CPU_IMP_AMPERE, AMPERE_CPU_PART_AMPERE1)
175179

176180
/* Fujitsu Erratum 010001 affects A64FX 1.0 and 1.1, (v0r0 and v1r0) */
177181
#define MIDR_FUJITSU_ERRATUM_010001 MIDR_FUJITSU_A64FX

0 commit comments

Comments
 (0)