summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/amd_iommu.c
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2011-12-22 12:35:38 +0100
committerJoerg Roedel <joerg.roedel@amd.com>2011-12-22 14:56:56 +0100
commit2655d7a29703f29d4b6b8e4ee1f4d682b3b28f9c (patch)
tree34b98c50eb910a4e1bdf1bb9faec83c5b7043bfb /drivers/iommu/amd_iommu.c
parentiommu/amd: Remove unnecessary cache flushes in amd_iommu_resume (diff)
downloadlinux-2655d7a29703f29d4b6b8e4ee1f4d682b3b28f9c.tar.xz
linux-2655d7a29703f29d4b6b8e4ee1f4d682b3b28f9c.zip
iommu/amd: Init stats for iommu=pt
The IOMMUv2 driver added a few statistic counter which are interesting in the iommu=pt mode too. So initialize the statistic counter for that mode too. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/amd_iommu.c')
-rw-r--r--drivers/iommu/amd_iommu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/amd_iommu.c b/drivers/iommu/amd_iommu.c
index 03944e76b700..edd291070b0b 100644
--- a/drivers/iommu/amd_iommu.c
+++ b/drivers/iommu/amd_iommu.c
@@ -3238,6 +3238,8 @@ int __init amd_iommu_init_passthrough(void)
attach_device(&dev->dev, pt_domain);
}
+ amd_iommu_stats_init();
+
pr_info("AMD-Vi: Initialized for Passthrough Mode\n");
return 0;