Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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.

Fixes: ca88a2bdd4dd ("crypto: qat - allow disabling SR-IOV VFs")
Signed-off-by: Ahsan Atta <ahsan.atta@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Reviewed-by: Michal Witwicki <michal.witwicki@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>

authored by

Ahsan Atta and committed by
Herbert Xu
53669ff5 0fa76672

-1
-1
drivers/crypto/intel/qat/qat_common/adf_sriov.c
··· 155 155 if (!device_iommu_mapped(&GET_DEV(accel_dev))) { 156 156 dev_warn(&GET_DEV(accel_dev), 157 157 "IOMMU should be enabled for SR-IOV to work correctly\n"); 158 - return -EINVAL; 159 158 } 160 159 161 160 if (adf_dev_started(accel_dev)) {