From 308d7b1516863bdafb1fb1e36e515975d6d769b4 Mon Sep 17 00:00:00 2001 From: Dave Jiang Date: Wed, 20 Oct 2021 09:27:25 -0700 Subject: [PATCH] dmaengine: idxd: remove kernel wq type set when load configuration mainline inclusion from mainline-v5.16 commit 15af840831f69baa9efb0d50007459d2015397a5 category: feature bugzilla: https://gitee.com/openeuler/intel-kernel/issues/I596WO CVE: NA Intel-SIG: commit 15af840831f6 dmaengine: idxd: remove kernel wq type set when load configuration. Incremental backporting patches for DSA/IAA on Intel Xeon platform. -------------------------------- Remove setting of wq type on guest kernel during configuration load on RO device config. The user will set the kernel wq type and this setting based on config is not necessary. Signed-off-by: Dave Jiang Link: https://lore.kernel.org/r/163474724511.2607444.1876715711451990426.stgit@djiang5-desk3.ch.intel.com Signed-off-by: Vinod Koul Signed-off-by: Xiaochen Shen --- drivers/dma/idxd/device.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/dma/idxd/device.c b/drivers/dma/idxd/device.c index 27612329f510..ef3281fc3f8b 100644 --- a/drivers/dma/idxd/device.c +++ b/drivers/dma/idxd/device.c @@ -1050,8 +1050,6 @@ static int idxd_wq_load_config(struct idxd_wq *wq) wq->size = wq->wqcfg->wq_size; wq->threshold = wq->wqcfg->wq_thresh; - if (wq->wqcfg->priv) - wq->type = IDXD_WQT_KERNEL; /* The driver does not support shared WQ mode in read-only config yet */ if (wq->wqcfg->mode == 0 || wq->wqcfg->pasid_en) -- GitLab