diff options
| author | Nicolin Chen <nicolinc@nvidia.com> | 2026-04-24 18:15:23 -0700 |
|---|---|---|
| committer | Joerg Roedel <joerg.roedel@amd.com> | 2026-05-11 10:12:44 +0200 |
| commit | 1615e8896a8f6d7b2adf6495e538a81bf6cea3e0 (patch) | |
| tree | 6596294305a41a43f5d3ec3befa35520af8e3ce1 /tools/perf/scripts/python | |
| parent | b296ca1fb43aa435edd86131f5230f70c03b2829 (diff) | |
| download | linux-1615e8896a8f6d7b2adf6495e538a81bf6cea3e0.tar.gz linux-1615e8896a8f6d7b2adf6495e538a81bf6cea3e0.zip | |
iommu: Fix pasid attach in pci_dev_reset_iommu_prepare/done()
Now the helpers handle per-gdev resets. Replace __iommu_set_group_pasid()
with set_dev_pasid() accordingly, in the pci_dev_reset_iommu_done().
Also add max_pasids check as other callers.
Fixes: c279e83953d9 ("iommu: Introduce pci_dev_reset_iommu_prepare/done()")
Cc: stable@vger.kernel.org
Reported-by: Shuai Xue <xueshuai@linux.alibaba.com>
Closes: https://lore.kernel.org/all/ad858513-09fc-455e-bbc5-fe38a225cc78@linux.alibaba.com/
Reviewed-by: Shuai Xue <xueshuai@linux.alibaba.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
