linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] crypto: qat - don't check for iommu
@ 2015-09-10 18:36 Tadeusz Struk
  2015-09-11 19:26 ` Tadeusz Struk
  0 siblings, 1 reply; 3+ messages in thread
From: Tadeusz Struk @ 2015-09-10 18:36 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, john.griffin, qat-linux, tadeusz.struk

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(-)

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) {

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: qat - don't check for iommu
  2015-09-10 18:36 [PATCH] crypto: qat - don't check for iommu Tadeusz Struk
@ 2015-09-11 19:26 ` Tadeusz Struk
  2015-09-18 14:03   ` Herbert Xu
  0 siblings, 1 reply; 3+ messages in thread
From: Tadeusz Struk @ 2015-09-11 19:26 UTC (permalink / raw)
  To: herbert; +Cc: linux-crypto, john.griffin, qat-linux

On 09/10/2015 11:36 AM, Tadeusz Struk wrote:
> 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(-)
> 
> 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) {
> 
Again after checkpatch fixes.

---8<---
From: John Griffin <john.griffin@intel.com>

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>

diff --git a/drivers/crypto/qat/qat_common/adf_sriov.c b/drivers/crypto/qat/qat_common/adf_sriov.c
index 2f77a4a..1117a8b 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");

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] crypto: qat - don't check for iommu
  2015-09-11 19:26 ` Tadeusz Struk
@ 2015-09-18 14:03   ` Herbert Xu
  0 siblings, 0 replies; 3+ messages in thread
From: Herbert Xu @ 2015-09-18 14:03 UTC (permalink / raw)
  To: Tadeusz Struk; +Cc: linux-crypto, john.griffin, qat-linux

On Fri, Sep 11, 2015 at 12:26:00PM -0700, Tadeusz Struk wrote:
>
> Again after checkpatch fixes.

Patch applied.  Thanks.
-- 
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-18 14:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-10 18:36 [PATCH] crypto: qat - don't check for iommu Tadeusz Struk
2015-09-11 19:26 ` Tadeusz Struk
2015-09-18 14:03   ` Herbert Xu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).