]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/arm-cmn: Improve debugfs pretty-printing for large configs
authorRobin Murphy <robin.murphy@arm.com>
Wed, 13 Dec 2023 16:24:07 +0000 (16:24 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Oct 2024 14:28:54 +0000 (16:28 +0200)
commita1b25661a04a5612eb8a77391fd4939238f5783c
tree8d138881ef5388a9357534e21e892c6d8e640483
parentf5c4ec8d0e2f424472216d1d6c55d48b2a4a3d1b
perf/arm-cmn: Improve debugfs pretty-printing for large configs

[ Upstream commit a1083ee717e9bde012268782e084d343314490a4 ]

The debugfs pretty-printer was written for the CMN-600 assumptions of a
maximum 8x8 mesh, but CMN-700 now allows coordinates and ID values up to
12 and 128 respectively, which can overflow the format strings, mess up
the alignment of the table and hurt overall readability. This table does
prove useful for double-checking that the driver is picking up the
topology of new systems correctly and for verifying user expectations,
so tweak the formatting to stay nice and readable with wider values.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/1d1517eadd1bac5992fab679c9dc531b381944da.1702484646.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
Stable-dep-of: e79634b53e39 ("perf/arm-cmn: Refactor node ID handling. Again.")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/arm-cmn.c