diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2023-03-17 20:50:26 +0100 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2023-03-27 15:01:18 +0200 |
commit | 009d6dc87a568db62290b8dc0a517b612217b6da (patch) | |
tree | 54700b4d444371659a00aa42fefc206bb1e4e684 /drivers/perf/Kconfig | |
parent | ARM: Make CONFIG_CPU_V7 valid for 32bit ARMv8 implementations (diff) | |
download | linux-009d6dc87a568db62290b8dc0a517b612217b6da.tar.xz linux-009d6dc87a568db62290b8dc0a517b612217b6da.zip |
ARM: perf: Allow the use of the PMUv3 driver on 32bit ARM
The only thing stopping the PMUv3 driver from compiling on 32bit
is the lack of defined system registers names and the handful of
required helpers.
This is easily solved by providing the sysreg accessors and updating
the Kconfig entry.
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Co-developed-by: Zaid Al-Bassam <zalbassam@google.com>
Signed-off-by: Zaid Al-Bassam <zalbassam@google.com>
Tested-by: Florian Fainelli <f.fainelli@gmail.com>
Link: https://lore.kernel.org/r/20230317195027.3746949-8-zalbassam@google.com
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'drivers/perf/Kconfig')
-rw-r--r-- | drivers/perf/Kconfig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig index defe6b47854b..711f82400086 100644 --- a/drivers/perf/Kconfig +++ b/drivers/perf/Kconfig @@ -101,15 +101,14 @@ config ARM_SMMU_V3_PMU based on the Stream ID of the corresponding master. config ARM_PMUV3 - depends on HW_PERF_EVENTS && ARM64 + depends on HW_PERF_EVENTS && ((ARM && CPU_V7) || ARM64) bool "ARM PMUv3 support" if !ARM64 - default y + default ARM64 help Say y if you want to use the ARM performance monitor unit (PMU) version 3. The PMUv3 is the CPU performance monitors on ARMv8 (aarch32 and aarch64) systems that implement the PMUv3 architecture. - Currently, PMUv3 is only supported on aarch64 (arm64) config ARM_DSU_PMU tristate "ARM DynamIQ Shared Unit (DSU) PMU" |