Commit 6bf6c247 authored by Will Deacon's avatar Will Deacon Committed by Joerg Roedel

iommu/of: Request ACS from the PCI core when configuring IOMMU linkage

To avoid having to export 'pci_request_acs()' to modular IOMMU drivers,
move the call into the 'of_dma_configure()' path in a similar manner to
the way in which ACS is configured when probing via ACPI/IORT.
Signed-off-by: default avatarWill Deacon <will@kernel.org>
Tested-by: John Garry <john.garry@huawei.com> # smmu v3
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent a7ba5c3d
...@@ -179,6 +179,7 @@ const struct iommu_ops *of_iommu_configure(struct device *dev, ...@@ -179,6 +179,7 @@ const struct iommu_ops *of_iommu_configure(struct device *dev,
.np = master_np, .np = master_np,
}; };
pci_request_acs();
err = pci_for_each_dma_alias(to_pci_dev(dev), err = pci_for_each_dma_alias(to_pci_dev(dev),
of_pci_iommu_init, &info); of_pci_iommu_init, &info);
} else if (dev_is_fsl_mc(dev)) { } else if (dev_is_fsl_mc(dev)) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment