summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Griffin <john.griffin@intel.com>2015-09-11 12:26:00 -0700
committerHerbert Xu <herbert@gondor.apana.org.au>2015-09-21 22:00:38 +0800
commit6c5de9871a4d43bba179c6a862eeb53b5232f996 (patch)
tree6e7a09d00dab3bdb1ac1521bf3ec2b51f1164514
parent04b7d704c6160fa4e8eeffc8540575fb15142f7f (diff)
downloadlinux-stable-6c5de9871a4d43bba179c6a862eeb53b5232f996.tar.gz
linux-stable-6c5de9871a4d43bba179c6a862eeb53b5232f996.tar.bz2
linux-stable-6c5de9871a4d43bba179c6a862eeb53b5232f996.zip
crypto: qat - don't check for iommu
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>
-rw-r--r--drivers/crypto/qat/qat_common/adf_sriov.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/crypto/qat/qat_common/adf_sriov.c b/drivers/crypto/qat/qat_common/adf_sriov.c
index 2f77a4a8cecb..1117a8b58280 100644
--- a/drivers/crypto/qat/qat_common/adf_sriov.c
+++ b/drivers/crypto/qat/qat_common/adf_sriov.c
@@ -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");