diff options
author | 2023-10-27 05:43:05 -1000 | |
---|---|---|
committer | 2023-10-27 05:43:05 -1000 | |
commit | 888cf78c29e223fd808682f477c18cf8f61ad995 (patch) | |
tree | 92e6d5c2fbca4d389474dff130b4a8333057ce62 | |
parent | Merge tag 'powerpc-6.6-6' of git://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux (diff) | |
parent | iommu: Avoid unnecessary cache invalidations (diff) | |
download | wireguard-linux-888cf78c29e223fd808682f477c18cf8f61ad995.tar.xz wireguard-linux-888cf78c29e223fd808682f477c18cf8f61ad995.zip |
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
Diffstat (limited to '')
-rw-r--r-- | drivers/iommu/iommu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index 3bfc56df4f78..c146378c7d03 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -1108,7 +1108,8 @@ map_end: } - iommu_flush_iotlb_all(domain); + if (!list_empty(&mappings) && iommu_is_dma_domain(domain)) + iommu_flush_iotlb_all(domain); out: iommu_put_resv_regions(dev, &mappings); |