dmaengine/idxd: Enable SVA feature by default
commit 4b829b56c2f4ed73f9c08282f9eabb67c8ddc7b9 Intel-BKC. User SVA is the essential feature of IDXD, enable it by default. Signed-off-by: Jacob Pan <jacob.jun.pan@linux.intel.com> Signed-off-by: Chen Zhuo <sagazchen@tencent.com> Signed-off-by: Xinghui Li <korantli@tencent.com>
This commit is contained in:
parent
037b509f6a
commit
a4f441925d
|
@ -517,6 +517,9 @@ static int idxd_probe(struct idxd_device *idxd)
|
|||
return rc;
|
||||
|
||||
dev_dbg(dev, "IDXD reset complete\n");
|
||||
rc = iommu_dev_enable_feature(dev, IOMMU_DEV_FEAT_SVA);
|
||||
if (rc)
|
||||
dev_warn(dev, "Unable to turn on SVA feature.\n");
|
||||
|
||||
if (IS_ENABLED(CONFIG_INTEL_IDXD_SVM) && sva) {
|
||||
rc = idxd_enable_system_pasid(idxd);
|
||||
|
|
Loading…
Reference in New Issue