perf/arm-cmn: Fix DTC domain detection
authorRobin Murphy <robin.murphy@arm.com>
Fri, 20 Oct 2023 17:51:25 +0000 (18:51 +0100)
committerWill Deacon <will@kernel.org>
Mon, 23 Oct 2023 12:45:42 +0000 (13:45 +0100)
commite3e73f511c49c741f6309862c2248958ad77bbaa
tree75302be10928f5fff7093fdc3f75f241c237214e
parent3b9a22d345ff89232227b2449a311bf3f910f5f2
perf/arm-cmn: Fix DTC domain detection

It transpires that dtm_unit_info is another register which got shuffled
in CMN-700 without me noticing. Fix that in a way which also proactively
fixes the fragile laziness of its consumer, just in case any further
fields ever get added alongside dtc_domain.

Fixes: 23760a014417 ("perf/arm-cmn: Add CMN-700 support")
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Ilkka Koskinen <ilkka@os.amperecomputing.com>
Link: https://lore.kernel.org/r/3076ee83d0554f6939fbb6ee49ab2bdb28d8c7ee.1697824215.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm-cmn.c