From a4f441925d1ef9224210f636b4e25d811544b859 Mon Sep 17 00:00:00 2001 From: Jacob Pan Date: Wed, 26 Jan 2022 14:39:43 -0800 Subject: [PATCH] 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 Signed-off-by: Chen Zhuo Signed-off-by: Xinghui Li --- drivers/dma/idxd/init.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/dma/idxd/init.c b/drivers/dma/idxd/init.c index d6931d56e838..f787f9197bd8 100644 --- a/drivers/dma/idxd/init.c +++ b/drivers/dma/idxd/init.c @@ -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);