]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
iommu/virtio: Build virtio-iommu as module
authorJean-Philippe Brucker <jean-philippe.brucker@arm.com>
Fri, 14 Feb 2020 16:38:27 +0000 (17:38 +0100)
committerJoerg Roedel <jroedel@suse.de>
Fri, 28 Feb 2020 15:19:57 +0000 (16:19 +0100)
Now that the infrastructure changes are in place, enable virtio-iommu to
be built as a module. Remove the redundant pci_request_acs() call, since
it's not exported but is already invoked during DMA setup.

Signed-off-by: Jean-Philippe Brucker <jean-philippe.brucker@arm.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/Kconfig
drivers/iommu/virtio-iommu.c

index d2fade984999776edbfe361ff457fce862abb97a..c5df570ef84a649edbd3b666f23f7259152e7dfe 100644 (file)
@@ -506,8 +506,8 @@ config HYPERV_IOMMU
          guests to run with x2APIC mode enabled.
 
 config VIRTIO_IOMMU
-       bool "Virtio IOMMU driver"
-       depends on VIRTIO=y
+       tristate "Virtio IOMMU driver"
+       depends on VIRTIO
        depends on ARM64
        select IOMMU_API
        select INTERVAL_TREE
index cce329d71fbad0230544e11b9c5aa7216f353c80..93ff58632452ca8580b020a36c292122c90426ee 100644 (file)
@@ -1082,7 +1082,6 @@ static int viommu_probe(struct virtio_device *vdev)
 
 #ifdef CONFIG_PCI
        if (pci_bus_type.iommu_ops != &viommu_ops) {
-               pci_request_acs();
                ret = bus_set_iommu(&pci_bus_type, &viommu_ops);
                if (ret)
                        goto err_unregister;