aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu/dmar.c
diff options
context:
space:
mode:
authorCQ Tang <cq.tang@intel.com>2016-01-13 21:15:03 +0000
committerDavid Woodhouse <David.Woodhouse@intel.com>2016-01-13 23:30:49 +0000
commitfda3bec12d0979aae3f02ee645913d66fbc8a26e (patch)
tree6f90194cfdc2b3fe1e7b84ac488785305a1caa27 /drivers/iommu/dmar.c
parentiommu/vt-d: Fix mm refcounting to hold mm_count not mm_users (diff)
downloadlinux-dev-fda3bec12d0979aae3f02ee645913d66fbc8a26e.tar.xz
linux-dev-fda3bec12d0979aae3f02ee645913d66fbc8a26e.zip
iommu/vt-d: Fix 64-bit accesses to 32-bit DMAR_GSTS_REG
This is a 32-bit register. Apparently harmless on real hardware, but causing justified warnings in simulation. Signed-off-by: CQ Tang <cq.tang@intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com> Cc: stable@vger.kernel.org
Diffstat (limited to 'drivers/iommu/dmar.c')
-rw-r--r--drivers/iommu/dmar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/dmar.c b/drivers/iommu/dmar.c
index 80e3c176008e..55a19e49205b 100644
--- a/drivers/iommu/dmar.c
+++ b/drivers/iommu/dmar.c
@@ -1347,7 +1347,7 @@ void dmar_disable_qi(struct intel_iommu *iommu)
raw_spin_lock_irqsave(&iommu->register_lock, flags);
- sts = dmar_readq(iommu->reg + DMAR_GSTS_REG);
+ sts = readl(iommu->reg + DMAR_GSTS_REG);
if (!(sts & DMA_GSTS_QIES))
goto end;