Skip to content

Commit 5b3625a

Browse files
XucShjoergroedel
authored andcommitted
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: 7232ab8 ("iommu/vt-d: Add IOMMU perfmon support") Signed-off-by: Xuchun Shang <[email protected]> Reviewed-by: Kan Liang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Lu Baolu <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
1 parent 7537e31 commit 5b3625a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/iommu/intel/perfmon.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ static int iommu_pmu_assign_event(struct iommu_pmu *iommu_pmu,
438438
iommu_pmu_set_filter(domain, event->attr.config1,
439439
IOMMU_PMU_FILTER_DOMAIN, idx,
440440
event->attr.config1);
441-
iommu_pmu_set_filter(pasid, event->attr.config1,
441+
iommu_pmu_set_filter(pasid, event->attr.config2,
442442
IOMMU_PMU_FILTER_PASID, idx,
443443
event->attr.config1);
444444
iommu_pmu_set_filter(ats, event->attr.config2,

0 commit comments

Comments
 (0)