]> www.infradead.org Git - nvme.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)
committerCatalin Marinas <catalin.marinas@arm.com>
Mon, 25 Nov 2024 18:53:05 +0000 (18:53 +0000)
commitdfdf714fed559c09021df1d2a4bb64c0ad5f53bc
tree98cf3ac1b81cbaccfe351ad147841aa9ea598e59
parent02a55f2743012a8089f09f6867220c3d57f16564
perf/arm-cmn: Ensure port and device id bits are set properly

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>
drivers/perf/arm-cmn.c