All of lore.kernel.org
 help / color / mirror / Atom feed
From: sashiko-bot@kernel.org
To: "Robin Murphy" <robin.murphy@arm.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v4 2/4] perf: Add Arm Bus Monitor Unit driver
Date: Fri, 06 Nov 2026 18:23:47 +0000	[thread overview]
Message-ID: <sashiko-outbox-202020@kernel.org> (raw)
In-Reply-To: <7bf3b15677548c7e0c88aa03fa18a2b5673ab363.1793986672.git.robin.murphy@arm.com>

Thank you for your contribution! Sashiko AI review found 1 potential
issue to consider:
- [Medium] perf: arm-bmu: driver omitted when
  ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU is n or m
--

commit 0be62f2184bd603abec9ec13cdc4790db8588fea
Author: Robin Murphy <robin.murphy@arm.com>

perf: Add Arm Bus Monitor Unit driver

This commit adds a perf driver for Arm's Bus Monitor Unit in
drivers/perf/arm_cspmu/ to support transaction matching and counting across
interface monitoring units.

> diff --git a/drivers/perf/arm_cspmu/Kconfig b/drivers/perf/arm_cspmu/Kconfig
> index 25bd55f036a4f..48c2a3ac7fab5 100644
> --- a/drivers/perf/arm_cspmu/Kconfig
> +++ b/drivers/perf/arm_cspmu/Kconfig
> @@ -34,3 +34,9 @@ config ARM_SYSTEM_PMU
>  	help
>  	  Support additional event filtering attributes for the CoreSight-based
>  	  PMU blocks found in various parts of Arm Compute Subsystems and SoCs.
> +
> +config ARM_BMU
> +	tristate "ARM Bus Monitor Unit"
> +	depends on (ARM64 && ACPI) || COMPILE_TEST
> +	help
> +	  Support perf event counting on Arm Bus Monitor Unit devices.
> diff --git a/drivers/perf/arm_cspmu/Makefile b/drivers/perf/arm_cspmu/Makefile
> index 90c3cd7101577..4e0b420a2b55f 100644
> --- a/drivers/perf/arm_cspmu/Makefile
> +++ b/drivers/perf/arm_cspmu/Makefile
> @@ -9,3 +9,5 @@ arm_cspmu_module-y := arm_cspmu.o
>  obj-$(CONFIG_NVIDIA_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += nvidia_cspmu.o
>  obj-$(CONFIG_AMPERE_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += ampere_cspmu.o
>  obj-$(CONFIG_ARM_SYSTEM_PMU) += arm_syspmu.o
> +
> +obj-$(CONFIG_ARM_BMU) += arm-bmu.o

[Severity: Medium]
Will arm-bmu.o be skipped during the build when
CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU is disabled or modular?

Unlike the other drivers in this directory, CONFIG_ARM_BMU does not depend on
CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU, but drivers/perf/Makefile only
descends into arm_cspmu/ via:

drivers/perf/Makefile:
	obj-$(CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU) += arm_cspmu/

When CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU=n, Kbuild never enters
drivers/perf/arm_cspmu/ and arm-bmu.o is not built at all; when
CONFIG_ARM_CORESIGHT_PMU_ARCH_SYSTEM_PMU=m and CONFIG_ARM_BMU=y, arm_cspmu/
is only visited for modules and the built-in arm-bmu driver is omitted from
vmlinux.

drivers/perf/Makefile should also add arm_cspmu/ for CONFIG_ARM_BMU (or use
obj-y += arm_cspmu/).

-- 
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1793986672.git.robin.murphy@arm.com?part=2

  reply	other threads:[~2026-11-06 18:23 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-06 18:07 [PATCH v4 0/4] perf: Arm system PMU and BMU drivers Robin Murphy
2026-11-06 18:07 ` [PATCH v4 1/4] perf/arm_cspmu: Add Arm system PMU Robin Murphy
2026-11-06 18:17   ` sashiko-bot
2026-11-06 18:31     ` Robin Murphy
2026-11-06 18:07 ` [PATCH v4 2/4] perf: Add Arm Bus Monitor Unit driver Robin Murphy
2026-11-06 18:23   ` sashiko-bot [this message]
2026-11-06 19:00     ` Robin Murphy
2026-11-06 18:07 ` [PATCH v4 3/4] dt-bindings: perf: Add Arm Bus Monitor Unit Robin Murphy
2026-11-06 18:11   ` sashiko-bot
2026-11-06 18:07 ` [PATCH v4 4/4] perf/arm-bmu: Add Devicetree support Robin Murphy
2026-11-06 18:14   ` sashiko-bot

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=sashiko-outbox-202020@kernel.org \
    --to=sashiko-bot@kernel.org \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=robin.murphy@arm.com \
    --cc=sashiko-reviews@lists.linux.dev \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.