Loading
iommufd: enable SVA when IOPF enabled
virt inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/IB4WDJ CVE: NA -------------------------------- On smmuv3, SVA is only enabled once enable SVA, so enable SVA as well when enable IOPF as quick solution. In drivers/iommu/arm/arm-smmu-v3/arm-smmu-v3.c, iommu_dev_enable_feature(IOMMU_DEV_FEAT_SVA) will real call iopf_queue_add_device, while iommu_dev_enable_feature(IOPF) only set flag. arm_smmu_dev_enable_feature case IOMMU_DEV_FEAT_SVA: arm_smmu_master_enable_sva(master) iopf_queue_add_device(master->smmu->evtq.iopf, dev); By the way, Jason is doing a new patchset to handle this https://patchwork.kernel.org/project/linux-acpi/cover/0-v4-9e99b76f3518+3a8-smmuv3_nesting_jgg@nvidia.com/ Signed-off-by:Zhangfei Gao <zhangfei.gao@linaro.org> Signed-off-by:
Kunkun Jiang <jiangkunkun@huawei.com>