summaryrefslogtreecommitdiff
path: root/tools/perf
diff options
context:
space:
mode:
authorKan Liang <kan.liang@linux.intel.com>2023-01-31 10:37:39 +0300
committerJoerg Roedel <jroedel@suse.de>2023-02-03 13:06:08 +0300
commit4a0d4265659b1078db3432cb80ceaf26ad921704 (patch)
tree1234262c8a2137cac85c35f39beac9281a3e660b /tools/perf
parent46284c6ceb5e4dfddcb00dafb7c2f3c1437fdca4 (diff)
downloadlinux-4a0d4265659b1078db3432cb80ceaf26ad921704.tar.xz
iommu/vt-d: Add IOMMU perfmon overflow handler support
While enabled to count events and an event occurrence causes the counter value to increment and roll over to or past zero, this is termed a counter overflow. The overflow can trigger an interrupt. The IOMMU perfmon needs to handle the case properly. New HW IRQs are allocated for each IOMMU device for perfmon. The IRQ IDs are after the SVM range. In the overflow handler, the counter is not frozen. It's very unlikely that the same counter overflows again during the period. But it's possible that other counters overflow at the same time. Read the overflow register at the end of the handler and check whether there are more. Signed-off-by: Kan Liang <kan.liang@linux.intel.com> Link: https://lore.kernel.org/r/20230128200428.1459118-7-kan.liang@linux.intel.com Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf')
0 files changed, 0 insertions, 0 deletions