1
0
Fork 0
alistair23-linux/drivers/perf
John Garry 75061b8651 perf/smmuv3: Use platform_get_irq_optional() for wired interrupt
[ Upstream commit 0ca2c0319a ]

Even though a SMMUv3 PMCG implementation may use an MSI as the form of
interrupt source, the kernel would still complain that it does not find
the wired (GSIV) interrupt in this case:

root@(none)$ dmesg | grep arm-smmu-v3-pmcg | grep "not found"
[   59.237219] arm-smmu-v3-pmcg arm-smmu-v3-pmcg.8.auto: IRQ index 0 not found
[   59.322841] arm-smmu-v3-pmcg arm-smmu-v3-pmcg.9.auto: IRQ index 0 not found
[   59.422155] arm-smmu-v3-pmcg arm-smmu-v3-pmcg.10.auto: IRQ index 0 not found
[   59.539014] arm-smmu-v3-pmcg arm-smmu-v3-pmcg.11.auto: IRQ index 0 not found
[   59.640329] arm-smmu-v3-pmcg arm-smmu-v3-pmcg.12.auto: IRQ index 0 not found
[   59.743112] arm-smmu-v3-pmcg arm-smmu-v3-pmcg.13.auto: IRQ index 0 not found
[   59.880577] arm-smmu-v3-pmcg arm-smmu-v3-pmcg.14.auto: IRQ index 0 not found
[   60.017528] arm-smmu-v3-pmcg arm-smmu-v3-pmcg.15.auto: IRQ index 0 not found

Use platform_get_irq_optional() to silence the warning.

If neither interrupt source is found, then the driver will still warn that
IRQ setup errored and the probe will fail.

Reviewed-by: Robin Murphy <robin.murphy@arm.com>
Signed-off-by: John Garry <john.garry@huawei.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-03-05 16:43:37 +01:00
..
hisilicon perf: Remove dev_err() usage after platform_get_irq() 2019-07-31 17:15:20 +01:00
Kconfig drivers/perf: imx_ddr: Add DDR performance counter support to perf 2019-06-13 11:07:57 +01:00
Makefile drivers/perf: imx_ddr: Add DDR performance counter support to perf 2019-06-13 11:07:57 +01:00
arm-cci.c perf/arm-cci: Remove broken race mitigation 2019-04-23 12:29:23 +01:00
arm-ccn.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 174 2019-05-30 11:26:41 -07:00
arm_dsu_pmu.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 500 2019-06-19 17:09:55 +02:00
arm_pmu.c drivers/perf: arm_pmu: Fix failure path in PM notifier 2019-07-29 11:43:48 +01:00
arm_pmu_acpi.c arm64 updates for 5.3: 2019-07-08 09:54:55 -07:00
arm_pmu_platform.c perf: Convert to using %pOFn instead of device_node.name 2018-10-01 11:33:17 +01:00
arm_smmuv3_pmu.c perf/smmuv3: Use platform_get_irq_optional() for wired interrupt 2020-03-05 16:43:37 +01:00
arm_spe_pmu.c arm64 updates for 5.3: 2019-07-08 09:54:55 -07:00
fsl_imx8_ddr_perf.c perf/imx_ddr: Fix cpu hotplug state cleanup 2020-02-24 08:36:49 +01:00
qcom_l2_pmu.c perf: Remove dev_err() usage after platform_get_irq() 2019-07-31 17:15:20 +01:00
qcom_l3_pmu.c docs: perf: move to the admin-guide 2019-07-15 09:20:27 -03:00
thunderx2_pmu.c For drivers that do not support context exclusion let's advertise the 2019-01-21 11:01:24 +01:00
xgene_pmu.c perf: Remove dev_err() usage after platform_get_irq() 2019-07-31 17:15:20 +01:00