Skip to content

Commit 888cf78

Browse files
committed
Merge tag 'iommu-fix-v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu
Pull iommu fix from Joerg Roedel: - Fix boot regression for Sapphire Rapids with Intel VT-d driver * tag 'iommu-fix-v6.6-rc7' of git://git.kernel.org/pub/scm/linux/kernel/git/joro/iommu: iommu: Avoid unnecessary cache invalidations
2 parents 09a4a03 + 6e6c6d6 commit 888cf78

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

drivers/iommu/iommu.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1108,7 +1108,8 @@ static int iommu_create_device_direct_mappings(struct iommu_domain *domain,
11081108

11091109
}
11101110

1111-
iommu_flush_iotlb_all(domain);
1111+
if (!list_empty(&mappings) && iommu_is_dma_domain(domain))
1112+
iommu_flush_iotlb_all(domain);
11121113

11131114
out:
11141115
iommu_put_resv_regions(dev, &mappings);

0 commit comments

Comments
 (0)