Skip to content

Commit e656972

Browse files
John Garrywilldeacon
authored andcommitted
drivers/perf: Improve build test coverage
Improve build test cover by allowing some drivers to build under COMPILE_TEST where possible. Some notes: - Mostly a dependency on CONFIG_ACPI is not really required for only building (but left untouched), but is required for TX2 which uses ACPI functions which have no stubs - XGENE required 64b dependency as it relies on some unsigned long perf struct fields being 64b - I don't see why TX2 requires NUMA to build, but left untouched - Added an explicit dependency on GENERIC_MSI_IRQ_DOMAIN for ARM_SMMU_V3_PMU, which is required for platform MSI functions Signed-off-by: John Garry <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 78cac39 commit e656972

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

drivers/perf/Kconfig

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ config ARM_CCI5xx_PMU
3636

3737
config ARM_CCN
3838
tristate "ARM CCN driver support"
39-
depends on ARM || ARM64
39+
depends on ARM || ARM64 || COMPILE_TEST
4040
help
4141
PMU (perf) driver supporting the ARM CCN (Cache Coherent Network)
4242
interconnect.
@@ -62,7 +62,8 @@ config ARM_PMU_ACPI
6262

6363
config ARM_SMMU_V3_PMU
6464
tristate "ARM SMMUv3 Performance Monitors Extension"
65-
depends on ARM64 && ACPI
65+
depends on (ARM64 && ACPI) || (COMPILE_TEST && 64BIT)
66+
depends on GENERIC_MSI_IRQ_DOMAIN
6667
help
6768
Provides support for the ARM SMMUv3 Performance Monitor Counter
6869
Groups (PMCG), which provide monitoring of transactions passing
@@ -80,7 +81,7 @@ config ARM_DSU_PMU
8081

8182
config FSL_IMX8_DDR_PMU
8283
tristate "Freescale i.MX8 DDR perf monitor"
83-
depends on ARCH_MXC
84+
depends on ARCH_MXC || COMPILE_TEST
8485
help
8586
Provides support for the DDR performance monitor in i.MX8, which
8687
can give information about memory throughput and other related
@@ -108,15 +109,16 @@ config QCOM_L3_PMU
108109

109110
config THUNDERX2_PMU
110111
tristate "Cavium ThunderX2 SoC PMU UNCORE"
111-
depends on ARCH_THUNDER2 && ARM64 && ACPI && NUMA
112+
depends on ARCH_THUNDER2 || COMPILE_TEST
113+
depends on NUMA && ACPI
112114
default m
113115
help
114116
Provides support for ThunderX2 UNCORE events.
115117
The SoC has PMU support in its L3 cache controller (L3C) and
116118
in the DDR4 Memory Controller (DMC).
117119

118120
config XGENE_PMU
119-
depends on ARCH_XGENE
121+
depends on ARCH_XGENE || (COMPILE_TEST && 64BIT)
120122
bool "APM X-Gene SoC PMU"
121123
default n
122124
help

0 commit comments

Comments
 (0)