crypto: qat - allow enabling VFs in the absence of IOMMU
Subsystems (2)
PATCH 1/1 crypto: qat - allow enabling VFs in the absence of IOMMU
The commit ca88a2bdd4dd ("crypto: qat - allow disabling SR-IOV VFs") introduced an unnecessary change that prevented enabling SR-IOV when IOMMU is disabled. In certain scenarios, it is desirable to enable SR-IOV even in the absence of IOMMU. Thus, restoring the previous functionality to allow VFs to be enumerated in the absence of IOMMU.
--- drivers/crypto/intel/qat/qat_common/adf_sriov.c | 1 - 1 file changed, 1 deletion(-)
drivers/crypto/intel/qat/qat_common/adf_sriov.c +0 -1
@@ -155,7 +155,6 @@ static int adf_do_enable_sriov(struct adf_accel_dev *accel_dev)if (!device_iommu_mapped (&GET_DEV (accel_dev))) {dev_warn (&GET_DEV (accel_dev),"IOMMU should be enabled for SR-IOV to work correctly\n" ); -return -EINVAL ; }if (adf_dev_started (accel_dev)) {
Signature · 1 line
2.49.0
Quoted 9 lines · Ahsan Atta
The commit
ca88a2bdd4dd("crypto: qat - allow disabling SR-IOV VFs") introduced an unnecessary change that prevented enabling SR-IOV when IOMMU is disabled. In certain scenarios, it is desirable to enable SR-IOV even in the absence of IOMMU. Thus, restoring the previous functionality to allow VFs to be enumerated in the absence of IOMMU.Fixes ca88a2bdd4dd ("crypto: qat - allow disabling SR-IOV VFs")Signed-off-by Ahsan Atta <[email protected]>Reviewed-by Giovanni Cabiddu <[email protected]>
Sorry for resending, previous email was replying to the wrong thread.
Herbert Xu
maintainerQuoted 6 lines · Ahsan Atta
The commit
ca88a2bdd4dd("crypto: qat - allow disabling SR-IOV VFs") introduced an unnecessary change that prevented enabling SR-IOV when IOMMU is disabled. In certain scenarios, it is desirable to enable SR-IOV even in the absence of IOMMU. Thus, restoring the previous functionality to allow VFs to be enumerated in the absence of IOMMU.
Quoted 6 lines
Fixes ca88a2bdd4dd ("crypto: qat - allow disabling SR-IOV VFs")Signed-off-by Ahsan Atta <[email protected]>Reviewed-by Giovanni Cabiddu <[email protected]>--- drivers/crypto/intel/qat/qat_common/adf_sriov.c | 1 - 1 file changed, 1 deletion(-)
Patch applied. Thanks.
Signature · 3 lines
Email: Herbert Xu <[email protected]> Home Page: http://gondor.apana.org.au/~herbert/ PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt