diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/pci/intel-iommu.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pci/intel-iommu.c b/drivers/pci/intel-iommu.c index f47d04aced87..2e2c7406131d 100644 --- a/drivers/pci/intel-iommu.c +++ b/drivers/pci/intel-iommu.c | |||
@@ -844,10 +844,8 @@ static void iommu_flush_write_buffer(struct intel_iommu *iommu) | |||
844 | 844 | ||
845 | if (!rwbf_quirk && !cap_rwbf(iommu->cap)) | 845 | if (!rwbf_quirk && !cap_rwbf(iommu->cap)) |
846 | return; | 846 | return; |
847 | val = iommu->gcmd | DMA_GCMD_WBF; | ||
848 | |||
849 | spin_lock_irqsave(&iommu->register_lock, flag); | 847 | spin_lock_irqsave(&iommu->register_lock, flag); |
850 | writel(val, iommu->reg + DMAR_GCMD_REG); | 848 | writel(iommu->gcmd | DMA_GCMD_WBF, iommu->reg + DMAR_GCMD_REG); |
851 | 849 | ||
852 | /* Make sure hardware complete it */ | 850 | /* Make sure hardware complete it */ |
853 | IOMMU_WAIT_OP(iommu, DMAR_GSTS_REG, | 851 | IOMMU_WAIT_OP(iommu, DMAR_GSTS_REG, |