]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/arm-cmn: Ensure port and device id bits are set properly
authorNamhyung Kim <namhyung@kernel.org>
Thu, 21 Nov 2024 00:13:34 +0000 (16:13 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Dec 2024 13:03:06 +0000 (14:03 +0100)
commit6e7724e319ae5f8a68f116edee7e1972855947e1
tree4c357e56002434292ca2d4dc41b878983aa9eccd
parenta476aba86d0fb8bcf6aa2fdf489371530da7ec56
perf/arm-cmn: Ensure port and device id bits are set properly

[ Upstream commit dfdf714fed559c09021df1d2a4bb64c0ad5f53bc ]

The portid_bits and deviceid_bits were set only for XP type nodes in
the arm_cmn_discover() and it confused other nodes to find XP nodes.
Copy the both bits from the XP nodes directly when it sets up a new
node.

Fixes: e79634b53e39 ("perf/arm-cmn: Refactor node ID handling. Again.")
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Acked-by: Will Deacon <will@kernel.org>
Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/20241121001334.331334-1-namhyung@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/arm-cmn.c