diff options
author | Xuchun Shang <xuchun.shang@linux.alibaba.com> | 2024-04-11 11:07:42 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-04-12 12:06:23 +0200 |
commit | 5b3625a4f6422e8982f90f0c11b5546149c962b8 (patch) | |
tree | 396aae1773feafc262808e5ce1d21beb1565bf90 | |
parent | 7537e31df80cb58c27f3b6fef702534ea87a5957 (diff) | |
download | lwn-5b3625a4f6422e8982f90f0c11b5546149c962b8.tar.gz lwn-5b3625a4f6422e8982f90f0c11b5546149c962b8.zip |
iommu/vt-d: Fix wrong use of pasid config
The commit "iommu/vt-d: Add IOMMU perfmon support" introduce IOMMU
PMU feature, but use the wrong config when set pasid filter.
Fixes: 7232ab8b89e9 ("iommu/vt-d: Add IOMMU perfmon support")
Signed-off-by: Xuchun Shang <xuchun.shang@linux.alibaba.com>
Reviewed-by: Kan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20240401060753.3321318-1-xuchun.shang@linux.alibaba.com
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <jroedel@suse.de>
-rw-r--r-- | drivers/iommu/intel/perfmon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel/perfmon.c b/drivers/iommu/intel/perfmon.c index cf43e798eca4..44083d01852d 100644 --- a/drivers/iommu/intel/perfmon.c +++ b/drivers/iommu/intel/perfmon.c @@ -438,7 +438,7 @@ static int iommu_pmu_assign_event(struct iommu_pmu *iommu_pmu, iommu_pmu_set_filter(domain, event->attr.config1, IOMMU_PMU_FILTER_DOMAIN, idx, event->attr.config1); - iommu_pmu_set_filter(pasid, event->attr.config1, + iommu_pmu_set_filter(pasid, event->attr.config2, IOMMU_PMU_FILTER_PASID, idx, event->attr.config1); iommu_pmu_set_filter(ats, event->attr.config2, |