OSDN Git Service

perf/smmuv3: Synthesize IIDR from CoreSight ID registers
authorRobin Murphy <robin.murphy@arm.com>
Wed, 17 Nov 2021 14:48:45 +0000 (14:48 +0000)
committerWill Deacon <will@kernel.org>
Tue, 14 Dec 2021 12:09:52 +0000 (12:09 +0000)
commitdf457ca973fee9e66d0d688afa6605d053034cd2
tree1273e060a4f49da00c3c773e7d167be9b24b62a2
parent3f7be43561766b7ad91661580376913c997613d6
perf/smmuv3: Synthesize IIDR from CoreSight ID registers

The SMMU_PMCG_IIDR register was not present in older revisions of the
Arm SMMUv3 spec. On Arm Ltd. implementations, the IIDR value consists of
fields from several PIDR registers, allowing us to present a
standardized identifier to userspace.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20211117144844.241072-4-jean-philippe@linaro.org
Signed-off-by: Will Deacon <will@kernel.org>
drivers/perf/arm_smmuv3_pmu.c