dmaengine: idxd: enable SVA feature for IOMMU
authorDave Jiang <dave.jiang@intel.com>
Tue, 20 Apr 2021 18:46:46 +0000 (11:46 -0700)
committerVinod Koul <vkoul@kernel.org>
Fri, 23 Apr 2021 17:38:45 +0000 (23:08 +0530)
commitcf5f86a7d47df149857ba2fb72f9c6c9da46af2e
tree5133b565ed10cab0cad8e8577f284b5fd08a4f9d
parent8241571fac9eeb7f3424ad343369eaa411919da3
dmaengine: idxd: enable SVA feature for IOMMU

Enable IOMMU_DEV_FEAT_SVA before attempt to bind pasid. This is needed
according to iommu_sva_bind_device() comment. Currently Intel IOMMU code
does this before bind call. It really needs to be controlled by the driver.

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