uacce: Enable IOMMU_DEV_FEAT_IOPF
authorJean-Philippe Brucker <jean-philippe@linaro.org>
Thu, 1 Apr 2021 15:47:14 +0000 (17:47 +0200)
committerJoerg Roedel <jroedel@suse.de>
Wed, 7 Apr 2021 08:54:29 +0000 (10:54 +0200)
commit0860788df74085a5e14c1702610b2977fd9aac5e
tree887c447099af5333f7febe4f73e5ce0756ddcfc9
parent9003351cb6bde752de774e6ec874109493413152
uacce: Enable IOMMU_DEV_FEAT_IOPF

The IOPF (I/O Page Fault) feature is now enabled independently from the
SVA feature, because some IOPF implementations are device-specific and
do not require IOMMU support for PCIe PRI or Arm SMMU stall.

Enable IOPF unconditionally when enabling SVA for now. In the future, if
a device driver implementing a uacce interface doesn't need IOPF
support, it will need to tell the uacce module, for example with a new
flag.

Acked-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Link: https://lore.kernel.org/r/20210401154718.307519-6-jean-philippe@linaro.org
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/misc/uacce/uacce.c