]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
perf/arm-cmn: Fix DTC domain detection
authorRobin Murphy <robin.murphy@arm.com>
Fri, 20 Oct 2023 17:51:25 +0000 (18:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:57:03 +0000 (11:57 +0100)
commitb4a182cd0336a9debbce5b05a562cf4a81507da0
tree00c32612d3da5005080877019be748764baa5e4b
parentf0c771695a3f4236979ccb4c58bcee0f7b3b6849
perf/arm-cmn: Fix DTC domain detection

[ Upstream commit e3e73f511c49c741f6309862c2248958ad77bbaa ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/perf/arm-cmn.c