]> git.baikalelectronics.ru Git - kernel.git/commit
perf/arm-cmn: Decode CAL devices properly in debugfs
authorRobin Murphy <robin.murphy@arm.com>
Wed, 11 May 2022 13:12:53 +0000 (14:12 +0100)
committerWill Deacon <will@kernel.org>
Thu, 12 May 2022 12:44:56 +0000 (13:44 +0100)
commit1a476d6e08a61719e8f97f5be0bee050891c3cf2
treec2762ad7f2790ceda204f47428e4ebcdc0167ff0
parent78740827694e77190d85cdab941ae7972bfb03b5
perf/arm-cmn: Decode CAL devices properly in debugfs

The debugfs code is lazy, and since it only keeps the bottom byte of
each connect_info register to save space, it also treats the whole thing
as the device_type since the other bits were reserved anyway. Upon
closer inspection, though, this is no longer true on newer IP versions,
so let's be good and decode the exact field properly. This should help
it not get confused when a Component Aggregation Layer is present (which
is already implied if Node IDs are found for both device addresses
represented by the next two lines of the table).

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/6a13a6128a28cfe2eec6d09cf372a167ec9c3b65.1652274773.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cmn.c