We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc65d0a commit 6664340Copy full SHA for 6664340
drivers/iommu/amd/init.c
@@ -1850,8 +1850,13 @@ static int __init iommu_init_pci(struct amd_iommu *iommu)
1850
if (ret)
1851
return ret;
1852
1853
- if (iommu->cap & (1UL << IOMMU_CAP_NPCACHE))
+ if (iommu->cap & (1UL << IOMMU_CAP_NPCACHE)) {
1854
+ if (!amd_iommu_unmap_flush)
1855
+ pr_info("IOMMU batching is disabled due to virtualization\n");
1856
+
1857
amd_iommu_np_cache = true;
1858
+ amd_iommu_unmap_flush = true;
1859
+ }
1860
1861
init_iommu_perf_ctr(iommu);
1862
0 commit comments