From: sashiko-bot@kernel.org
To: "Sylvain Chouleur" <schouleur@snap.com>
Cc: linux-perf-users@vger.kernel.org
Subject: Re: [PATCH] perf/arm-cmn: Use at least 2 bits per XP coordinate in node IDs
Date: Wed, 25 Nov 2026 16:19:50 +0000 [thread overview]
Message-ID: <sashiko-outbox-233742@kernel.org> (raw)
In-Reply-To: <20261125-arm-cmn-xyidbits-v1-1-6f7bee891859@snap.com>
> From: Sylvain Chouleur <schouleur@snap.com>
>
> The X and Y coordinates in a CMN/CI-700 node ID are encoded in 2 bits
> each for any mesh up to 4x4 (7-bit node IDs), and in 3 bits each for
> larger meshes (9-bit node IDs). The width does not shrink for smaller
> meshes: a 2x2 mesh still uses 2 bits per coordinate.
>
> arm_cmn_xyidbits() derives the width from the actual mesh dimensions,
> which yields 1 bit for a mesh with both dimensions <= 2. On such a
> mesh arm_cmn_node_to_xp() then decodes every device on the X=1 column
> into the wrong XP: X=1,Y=0 devices are attributed to XP (0,1), and
> X=1,Y=1 devices to an index past the end of the XP array. Their PMU
> events end up programmed into another XP's DTM, with the port/device
> select of the intended XP, so the counters silently read zero while
> the rest of the mesh works.
>
> Observed on a CI-700 r3 with a 2x2 mesh (part 0x43a), where the SBSX
> and HN-D nodes on the X=1 column never counted although the XP flit
> counters showed the traffic. Forcing a minimum of 2 coordinate bits
> matches the documented node ID format and makes all nodes count;
> the minimum had been there until the node ID refactor dropped it.
>
> Fixes: e79634b53e39 ("perf/arm-cmn: Refactor node ID handling. Again.")
> Cc: stable@vger.kernel.org
> Signed-off-by: Sylvain Chouleur <schouleur@snap.com>
Sashiko has reviewed this patch and found no issues.
--
Sashiko AI review · https://sashiko.dev/#/patchset/20261125-arm-cmn-xyidbits-v1-1-6f7bee891859@snap.com?part=1
next prev parent reply other threads:[~2026-11-25 16:19 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-25 16:15 [PATCH] perf/arm-cmn: Use at least 2 bits per XP coordinate in node IDs Sylvain Chouleur via B4 Relay
2026-11-25 16:19 ` sashiko-bot [this message]
2026-11-25 16:58 ` Robin Murphy
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-233742@kernel.org \
--to=sashiko-bot@kernel.org \
--cc=linux-perf-users@vger.kernel.org \
--cc=sashiko-reviews@lists.linux.dev \
--cc=schouleur@snap.com \
/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