iommu/arm-smmu: Account for PMU interrupts
authorRobin Murphy <robin.murphy@arm.com>
Thu, 17 Feb 2022 14:24:15 +0000 (14:24 +0000)
committerWill Deacon <will@kernel.org>
Mon, 7 Mar 2022 21:09:39 +0000 (21:09 +0000)
commit97dfad194ca8de04c7292d4f4c8dc493c0d20f85
treed56f0adbb7617fa54b8ee493f914189ee3d88ebf
parent8ddf4eff71e12e4295b54ac8b02439ad22271fd2
iommu/arm-smmu: Account for PMU interrupts

In preparation for SMMUv2 PMU support, rejig our IRQ setup code to
account for PMU interrupts as additional resources. We can simplify the
whole flow by only storing the context IRQs, since the global IRQs are
devres-managed and we never refer to them beyond the initial request.

CC: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Link: https://lore.kernel.org/r/b2a40caaf1622eb35c555074a0d72f4f0513cff9.1645106346.git.robin.murphy@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
drivers/iommu/arm/arm-smmu/arm-smmu.c
drivers/iommu/arm/arm-smmu/arm-smmu.h