Skip to content

Commit 893c34b

Browse files
rmurphy-armwilldeacon
authored andcommitted
arm64: perf: Support new DT compatibles
Wire up the new DT compatibles so we can present appropriate PMU names to userspace for the latest and greatest CPUs. Signed-off-by: Robin Murphy <[email protected]> Link: https://lore.kernel.org/r/62d14ba12d847ec7f1fba7cb0b3b881b437e1cc5.1639490264.git.robin.murphy@arm.com Signed-off-by: Will Deacon <[email protected]>
1 parent 6ac9f30 commit 893c34b

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

arch/arm64/kernel/perf_event.c

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1160,8 +1160,14 @@ PMUV3_INIT_SIMPLE(armv8_cortex_a75)
11601160
PMUV3_INIT_SIMPLE(armv8_cortex_a76)
11611161
PMUV3_INIT_SIMPLE(armv8_cortex_a77)
11621162
PMUV3_INIT_SIMPLE(armv8_cortex_a78)
1163+
PMUV3_INIT_SIMPLE(armv9_cortex_a510)
1164+
PMUV3_INIT_SIMPLE(armv9_cortex_a710)
1165+
PMUV3_INIT_SIMPLE(armv8_cortex_x1)
1166+
PMUV3_INIT_SIMPLE(armv9_cortex_x2)
11631167
PMUV3_INIT_SIMPLE(armv8_neoverse_e1)
11641168
PMUV3_INIT_SIMPLE(armv8_neoverse_n1)
1169+
PMUV3_INIT_SIMPLE(armv9_neoverse_n2)
1170+
PMUV3_INIT_SIMPLE(armv8_neoverse_v1)
11651171

11661172
PMUV3_INIT_SIMPLE(armv8_nvidia_carmel)
11671173
PMUV3_INIT_SIMPLE(armv8_nvidia_denver)
@@ -1222,8 +1228,14 @@ static const struct of_device_id armv8_pmu_of_device_ids[] = {
12221228
{.compatible = "arm,cortex-a76-pmu", .data = armv8_cortex_a76_pmu_init},
12231229
{.compatible = "arm,cortex-a77-pmu", .data = armv8_cortex_a77_pmu_init},
12241230
{.compatible = "arm,cortex-a78-pmu", .data = armv8_cortex_a78_pmu_init},
1231+
{.compatible = "arm,cortex-a510-pmu", .data = armv9_cortex_a510_pmu_init},
1232+
{.compatible = "arm,cortex-a710-pmu", .data = armv9_cortex_a710_pmu_init},
1233+
{.compatible = "arm,cortex-x1-pmu", .data = armv8_cortex_x1_pmu_init},
1234+
{.compatible = "arm,cortex-x2-pmu", .data = armv9_cortex_x2_pmu_init},
12251235
{.compatible = "arm,neoverse-e1-pmu", .data = armv8_neoverse_e1_pmu_init},
12261236
{.compatible = "arm,neoverse-n1-pmu", .data = armv8_neoverse_n1_pmu_init},
1237+
{.compatible = "arm,neoverse-n2-pmu", .data = armv9_neoverse_n2_pmu_init},
1238+
{.compatible = "arm,neoverse-v1-pmu", .data = armv8_neoverse_v1_pmu_init},
12271239
{.compatible = "cavium,thunder-pmu", .data = armv8_thunder_pmu_init},
12281240
{.compatible = "brcm,vulcan-pmu", .data = armv8_vulcan_pmu_init},
12291241
{.compatible = "nvidia,carmel-pmu", .data = armv8_nvidia_carmel_pmu_init},

0 commit comments

Comments
 (0)