]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/arm-smmu-v3: limit reporting of MSI allocation failures
authorNate Watterson <nwatters@codeaurora.org>
Sat, 20 Jan 2018 18:08:04 +0000 (13:08 -0500)
committerWill Deacon <will.deacon@arm.com>
Tue, 27 Mar 2018 13:12:03 +0000 (14:12 +0100)
commit41c8fc50c969dbfd2e91f8002621ca8af1f8689f
treefbdd66bfbf1d1ffee30cf3441c82e5b05320ce42
parent76fecd3856c8e4a99b2799253c1a8d9594bb596d
iommu/arm-smmu-v3: limit reporting of MSI allocation failures

Currently, the arm-smmu-v3 driver expects to allocate MSIs for all SMMUs
with FEAT_MSI set. This results in unwarranted "failed to allocate MSIs"
warnings being printed on systems where FW was either deliberately
configured to force the use of SMMU wired interrupts -or- is altogether
incapable of describing SMMU MSI topology (ACPI IORT prior to rev.C).

Remedy this by checking msi_domain before attempting to allocate SMMU
MSIs.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Nate Watterson <nwatters@codeaurora.org>
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Will Deacon <will.deacon@arm.com>
drivers/iommu/arm-smmu-v3.c