dmaengine: idxd: Separate user and kernel pasid enabling
authorDave Jiang <dave.jiang@intel.com>
Thu, 12 May 2022 00:11:57 +0000 (17:11 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 16 May 2022 12:49:29 +0000 (18:19 +0530)
commit42a1b73852c4a176d233a192422b5e1d0ba67cbf
tree7685289bff7ed08bac4b4475290ff1453c6b6728
parentb965182aee6e391084addcd25be3134d82fddb22
dmaengine: idxd: Separate user and kernel pasid enabling

The idxd driver always gated the pasid enabling under a single knob and
this assumption is incorrect. The pasid used for kernel operation can be
independently toggled and has no dependency on the user pasid (and vice
versa). Split the two so they are independent "enabled" flags.

Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/165231431746.986466.5666862038354800551.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/idxd/cdev.c
drivers/dma/idxd/device.c
drivers/dma/idxd/idxd.h
drivers/dma/idxd/init.c
drivers/dma/idxd/sysfs.c