iommu/vt-d: Enable IOMMU perfmon support
authorKan Liang <kan.liang@linux.intel.com>
Tue, 31 Jan 2023 07:37:40 +0000 (15:37 +0800)
committerJoerg Roedel <jroedel@suse.de>
Fri, 3 Feb 2023 10:06:09 +0000 (11:06 +0100)
commitd8a7c0cf05a2ac79d3cbd0c0ed7d01ec01f75980
tree78fda1563883a3677537f1e3f71d9f782bb69833
parent4a0d4265659b1078db3432cb80ceaf26ad921704
iommu/vt-d: Enable IOMMU perfmon support

Register and enable an IOMMU perfmon for each active IOMMU device.

The failure of IOMMU perfmon registration doesn't impact other
functionalities of an IOMMU device.

Signed-off-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20230128200428.1459118-8-kan.liang@linux.intel.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
drivers/iommu/intel/dmar.c
drivers/iommu/intel/iommu.c