diff options
author | 2023-09-21 09:21:47 +0000 | |
---|---|---|
committer | 2023-09-25 12:39:07 +0200 | |
commit | 7016b3005547bae3ba4577980db0ede53a79784a (patch) | |
tree | a58a256cd9efab09bdd0eb6245c7f30a03b299cb /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iommu/amd: Enable device ATS/PASID/PRI capabilities independently (diff) | |
download | wireguard-linux-7016b3005547bae3ba4577980db0ede53a79784a.tar.xz wireguard-linux-7016b3005547bae3ba4577980db0ede53a79784a.zip |
iommu/amd: Initialize iommu_device->max_pasids
Commit 1adf3cc20d69 ("iommu: Add max_pasids field in struct iommu_device")
introduced a variable struct iommu_device.max_pasids to track max
PASIDS supported by each IOMMU.
Let us initialize this field for AMD IOMMU. IOMMU core will use this value
to set max PASIDs per device (see __iommu_probe_device()).
Also remove unused global 'amd_iommu_max_pasid' variable.
Signed-off-by: Vasant Hegde <vasant.hegde@amd.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Jerry Snitselaar <jsnitsel@redhat.com>
Link: https://lore.kernel.org/r/20230921092147.5930-15-vasant.hegde@amd.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions