From: sashiko-bot@kernel.org
To: "Robin Murphy" <robin.murphy@arm.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH v6 2/2] perf/arm-cmn: Add workarounds for CMN-S3 on Graviton5
Date: Tue, 30 Jun 2026 13:27:08 +0000 [thread overview]
Message-ID: <20260630132709.141751F01559@smtp.kernel.org> (raw)
In-Reply-To: <e9340d3a4385e6f1a6e80bda944a3ba6435472b6.1782824005.git.robin.murphy@arm.com>
Thank you for your contribution! Sashiko AI review found 1 potential issue(s) to consider:
- [Medium] The Graviton5 workaround sets the DTC node's logical ID to the XP's mesh logical ID instead of the DTC domain ID, which can cross-wire PMU event routing.
--
commit d22a8571a1d86b4f3c00bde161d5fb2ce99fe43f
Author: Aviv Bakal <avivb@amazon.com>
perf/arm-cmn: Add workarounds for CMN-S3 on Graviton5
This patch adds workarounds for the CMN-S3 implementation on Graviton5,
which reports zeroed fields in discovery registers. It introduces an ACPI
HID for identification, derives the DTC domain from the XP node ID, and
sets the DTC logical ID from the XP's logical ID.
> diff --git a/drivers/perf/arm-cmn.c b/drivers/perf/arm-cmn.c
> --- a/drivers/perf/arm-cmn.c
> +++ b/drivers/perf/arm-cmn.c
[ ... ]
> @@ -2475,6 +2500,10 @@ static int arm_cmn_discover(struct arm_cmn *cmn, unsigned int rgn_offset)
>
> switch (dn->type) {
> case CMN_TYPE_DTC:
> + if (graviton5_workaround) {
> + /* Node info logical ID is zeroed; use the XP's */
> + dn->logid = xp->logid;
[Severity: Medium]
Does this code assign the host XP's mesh logical ID to the DTC node instead
of the computed domain ID (xp->dtc)?
If the DTC nodes' mesh logical IDs do not sort into the exact same order
as their domain IDs, will the array indices be cross-wired, potentially
misrouting PMU events?
Event configuration looks up the cmn->dtc[] array using the node's domain
ID (dn->dtc).
Could this instead be dn->logid = xp->dtc; to restore the correct semantic
meaning of a DTC's logical ID as its domain index?
> + }
> cmn->num_dtcs++;
> dn++;
> break;
--
Sashiko AI review · https://sashiko.dev/#/patchset/cover.1782824005.git.robin.murphy@arm.com?part=2
prev parent reply other threads:[~2026-06-30 13:27 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 13:01 [PATCH v6 0/2] perf/arm-cmn: Add workarounds for CMN-S3 on Graviton5 Robin Murphy
2026-06-30 13:01 ` [PATCH v6 1/2] perf/arm-cmn: Move DTM index data out of hw_perf_event Robin Murphy
2026-06-30 13:01 ` [PATCH v6 2/2] perf/arm-cmn: Add workarounds for CMN-S3 on Graviton5 Robin Murphy
2026-06-30 13:27 ` sashiko-bot [this message]
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=20260630132709.141751F01559@smtp.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox