mirror of
https://github.com/torvalds/linux.git
synced 2026-05-27 08:33:17 +02:00
crypto: qat - allow enabling VFs in the absence of IOMMU
The commitca88a2bdd4("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:ca88a2bdd4("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>
This commit is contained in:
parent
0fa766726c
commit
53669ff591
|
|
@ -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)) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user