]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/vt-d: Add qi_submit trace event
authorLu Baolu <baolu.lu@linux.intel.com>
Thu, 14 Jan 2021 09:04:00 +0000 (17:04 +0800)
committerJoerg Roedel <jroedel@suse.de>
Thu, 28 Jan 2021 10:32:13 +0000 (11:32 +0100)
commitbe92fc97fe6495d80b41e97f38c8168bb6963735
treef910ca52ab2770dba8f30937f258f398a86a7241
parentc71da8ec10ca10be5ebf117b12955be34f6189c9
iommu/vt-d: Add qi_submit trace event

This adds a new trace event to track the submissions of requests to the
invalidation queue. This event will provide the information like:
- IOMMU name
- Invalidation type
- Descriptor raw data

A sample output like:
| qi_submit: iotlb_inv dmar1: 0x100e2 0x0 0x0 0x0
| qi_submit: dev_tlb_inv dmar1: 0x1000000003 0x7ffffffffffff001 0x0 0x0
| qi_submit: iotlb_inv dmar2: 0x800f2 0xf9a00005 0x0 0x0

This will be helpful for queued invalidation related debugging.

Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Link: https://lore.kernel.org/r/20210114090400.736104-1-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/dmar.c
include/trace/events/intel_iommu.h