diff mbox

crypto: qat - don't check for iommu

Message ID 20150910183657.26171.65960.stgit@tstruk-mobl1 (mailing list archive)
State Superseded
Delegated to: Herbert Xu
Headers show

Commit Message

Tadeusz Struk Sept. 10, 2015, 6:36 p.m. UTC
From: John Griffin <john.griffin@intel.com>

In some cases we don't want iommu to be enabled but still we want enable VFs.

Signed-off-by: John Griffin <john.griffin@intel.com>
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
---
 drivers/crypto/qat/qat_common/adf_sriov.c |    5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)


--
To unsubscribe from this list: send the line "unsubscribe linux-crypto" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/drivers/crypto/qat/qat_common/adf_sriov.c b/drivers/crypto/qat/qat_common/adf_sriov.c
index 2f77a4a..fb5a53d 100644
--- a/drivers/crypto/qat/qat_common/adf_sriov.c
+++ b/drivers/crypto/qat/qat_common/adf_sriov.c
@@ -245,9 +245,8 @@  int adf_sriov_configure(struct pci_dev *pdev, int numvfs)
 	}
 
 	if (!iommu_present(&pci_bus_type)) {
-		dev_err(&pdev->dev,
-			"IOMMU must be enabled for SR-IOV to work\n");
-		return -EINVAL;
+		dev_warn(&pdev->dev,
+			"IOMMU should be enabled for SR-IOV to work correctly\n");
 	}
 
 	if (accel_dev->pf.vf_info) {