iommu/vt-d: Add common code for dmar latency performance monitors
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 10 Jun 2021 02:01:05 +0000 (10:01 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 10 Jun 2021 07:06:13 +0000 (09:06 +0200)
commit55ee5e67a59a1b6f388d7a1c7b24022145f47a3e
tree5fd3b8d9c40d9a22e28067a6c6bc3135e33b4a1c
parente93a67f5a0eef3e9ab5b4649cac5c3b831c6a9db
iommu/vt-d: Add common code for dmar latency performance monitors

The execution time of some operations is very performance critical, such
as cache invalidation and PRQ processing time. This adds some common code
to monitor the execution time range of those operations. The interfaces
include enabling/disabling, checking status, updating sampling data and
providing a common string format for users.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210520031531.712333-1-baolu.lu@linux.intel.com
Link: https://lore.kernel.org/r/20210610020115.1637656-14-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/Kconfig
drivers/iommu/intel/Makefile
drivers/iommu/intel/perf.c [new file with mode: 0644]
drivers/iommu/intel/perf.h [new file with mode: 0644]
include/linux/intel-iommu.h