Impact: see number of map_single requests in debugfs
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
*/
DECLARE_STATS_COUNTER(compl_wait);
+DECLARE_STATS_COUNTER(cnt_map_single);
static struct dentry *stats_dir;
static struct dentry *de_isolate;
(u32 *)&amd_iommu_unmap_flush);
amd_iommu_stats_add(&compl_wait);
+ amd_iommu_stats_add(&cnt_map_single);
}
#endif
dma_addr_t addr;
u64 dma_mask;
+ INC_STATS_COUNTER(cnt_map_single);
+
if (!check_device(dev))
return bad_dma_address;