crypto: qat - don't check for iommu
authorJohn Griffin <john.griffin@intel.com>
Fri, 11 Sep 2015 19:26:00 +0000 (12:26 -0700)
committerHerbert Xu <herbert@gondor.apana.org.au>
Mon, 21 Sep 2015 14:00:38 +0000 (22:00 +0800)
In some cases we don't want iommu to be enabled but still we want to enable VFs.

Signed-off-by: John Griffin <john.griffin@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/qat/qat_common/adf_sriov.c

index 2f77a4a8cecb1b4488947a7591e4ca49bd60d036..1117a8b58280a084396f696e77f14b9899386981 100644 (file)
@@ -244,11 +244,8 @@ int adf_sriov_configure(struct pci_dev *pdev, int numvfs)
                return -EFAULT;
        }
 
-       if (!iommu_present(&pci_bus_type)) {
-               dev_err(&pdev->dev,
-                       "IOMMU must be enabled for SR-IOV to work\n");
-               return -EINVAL;
-       }
+       if (!iommu_present(&pci_bus_type))
+               dev_warn(&pdev->dev, "IOMMU should be enabled for SR-IOV to work correctly\n");
 
        if (accel_dev->pf.vf_info) {
                dev_info(&pdev->dev, "Already enabled for this device\n");