Remove the new use of the variable introduced in the AMD driver branch.
The variable was removed already in the iommu core branch, causing build
errors when the brances are merged.
Cc: Nadav Amit <namit@vmware.com>
Cc: Zhen Lei <thunder.leizhen@huawei.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Link: https://lore.kernel.org/r/20210802150643.3634-1-joro@8bytes.org
return ret;
if (iommu->cap & (1UL << IOMMU_CAP_NPCACHE)) {
- if (!amd_iommu_unmap_flush)
- pr_info("IOMMU batching is disabled due to virtualization\n");
-
+ pr_info("Using strict mode due to virtualization\n");
+ iommu_set_dma_strict();
amd_iommu_np_cache = true;
- amd_iommu_unmap_flush = true;
}
init_iommu_perf_ctr(iommu);