Commit 5b3625a4 authored by Xuchun Shang's avatar Xuchun Shang Committed by Joerg Roedel

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: 7232ab8b ("iommu/vt-d: Add IOMMU perfmon support")
Signed-off-by: default avatarXuchun Shang <xuchun.shang@linux.alibaba.com>
Reviewed-by: default avatarKan Liang <kan.liang@linux.intel.com>
Link: https://lore.kernel.org/r/20240401060753.3321318-1-xuchun.shang@linux.alibaba.comSigned-off-by: default avatarLu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>
parent 7537e31d
...@@ -438,7 +438,7 @@ static int iommu_pmu_assign_event(struct iommu_pmu *iommu_pmu, ...@@ -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_set_filter(domain, event->attr.config1,
IOMMU_PMU_FILTER_DOMAIN, idx, IOMMU_PMU_FILTER_DOMAIN, idx,
event->attr.config1); event->attr.config1);
iommu_pmu_set_filter(pasid, event->attr.config1, iommu_pmu_set_filter(pasid, event->attr.config2,
IOMMU_PMU_FILTER_PASID, idx, IOMMU_PMU_FILTER_PASID, idx,
event->attr.config1); event->attr.config1);
iommu_pmu_set_filter(ats, event->attr.config2, iommu_pmu_set_filter(ats, event->attr.config2,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment