2022-01-12 14:01:00

by Geert Uytterhoeven

[permalink] [raw]
Subject: [PATCH] perf: MARVELL_CN10K_TAD_PMU should depend on ARCH_THUNDER

The Marvell CN10K Last-Level cache Tag-and-data Units (LLC-TAD)
performance monitor is only present on Marvell CN10K SoCs. Hence add a
dependency on ARCH_THUNDER, to prevent asking the user about this driver
when configuring a kernel without Cavium Thunder (incl. Marvell CN10K)
SoC support.

Fixes: 036a7584bede317d ("drivers: perf: Add LLC-TAD perf counter support")
Signed-off-by: Geert Uytterhoeven <[email protected]>
---
drivers/perf/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/perf/Kconfig b/drivers/perf/Kconfig
index e1a0c44bc686493e..7d6ffdf44a415a66 100644
--- a/drivers/perf/Kconfig
+++ b/drivers/perf/Kconfig
@@ -141,7 +141,7 @@ config ARM_DMC620_PMU

config MARVELL_CN10K_TAD_PMU
tristate "Marvell CN10K LLC-TAD PMU"
- depends on ARM64 || (COMPILE_TEST && 64BIT)
+ depends on ARCH_THUNDER || (COMPILE_TEST && 64BIT)
help
Provides support for Last-Level cache Tag-and-data Units (LLC-TAD)
performance monitors on CN10K family silicons.
--
2.25.1



2022-02-09 06:06:57

by Will Deacon

[permalink] [raw]
Subject: Re: [PATCH] perf: MARVELL_CN10K_TAD_PMU should depend on ARCH_THUNDER

On Wed, 12 Jan 2022 15:00:47 +0100, Geert Uytterhoeven wrote:
> The Marvell CN10K Last-Level cache Tag-and-data Units (LLC-TAD)
> performance monitor is only present on Marvell CN10K SoCs. Hence add a
> dependency on ARCH_THUNDER, to prevent asking the user about this driver
> when configuring a kernel without Cavium Thunder (incl. Marvell CN10K)
> SoC support.
>
>
> [...]

Applied to will (for-next/perf), thanks!

[1/1] perf: MARVELL_CN10K_TAD_PMU should depend on ARCH_THUNDER
https://git.kernel.org/will/c/e564518b0727

Cheers,
--
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev