dmaengine: idxd: remove kernel wq type set when load configuration
authorDave Jiang <dave.jiang@intel.com>
Wed, 20 Oct 2021 16:27:25 +0000 (09:27 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Oct 2021 05:30:40 +0000 (11:00 +0530)
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 <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/163474724511.2607444.1876715711451990426.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/device.c

index 27612329f510738879bc3e100af03bc7535ee61e..ef3281fc3f8bae9bf787c4228b7d618cb1483b57 100644 (file)
@@ -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)