diff options
Diffstat (limited to 'arch/x86/kernel/amd_iommu.c')
-rw-r--r-- | arch/x86/kernel/amd_iommu.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kernel/amd_iommu.c b/arch/x86/kernel/amd_iommu.c index 70537d117a9..c19212191c9 100644 --- a/arch/x86/kernel/amd_iommu.c +++ b/arch/x86/kernel/amd_iommu.c | |||
@@ -948,7 +948,7 @@ static dma_addr_t __map_single(struct device *dev, | |||
948 | } | 948 | } |
949 | address += offset; | 949 | address += offset; |
950 | 950 | ||
951 | if (unlikely(dma_dom->need_flush && !iommu_fullflush)) { | 951 | if (unlikely(dma_dom->need_flush && !amd_iommu_unmap_flush)) { |
952 | iommu_flush_tlb(iommu, dma_dom->domain.id); | 952 | iommu_flush_tlb(iommu, dma_dom->domain.id); |
953 | dma_dom->need_flush = false; | 953 | dma_dom->need_flush = false; |
954 | } else if (unlikely(iommu_has_npcache(iommu))) | 954 | } else if (unlikely(iommu_has_npcache(iommu))) |
@@ -985,7 +985,7 @@ static void __unmap_single(struct amd_iommu *iommu, | |||
985 | 985 | ||
986 | dma_ops_free_addresses(dma_dom, dma_addr, pages); | 986 | dma_ops_free_addresses(dma_dom, dma_addr, pages); |
987 | 987 | ||
988 | if (iommu_fullflush) | 988 | if (amd_iommu_unmap_flush) |
989 | iommu_flush_pages(iommu, dma_dom->domain.id, dma_addr, size); | 989 | iommu_flush_pages(iommu, dma_dom->domain.id, dma_addr, size); |
990 | } | 990 | } |
991 | 991 | ||