diff options
| author | Vasant Hegde <[email protected]> | 2023-09-21 09:21:47 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2023-09-25 10:39:07 +0000 |
| commit | 7016b3005547bae3ba4577980db0ede53a79784a (patch) | |
| tree | a58a256cd9efab09bdd0eb6245c7f30a03b299cb /tools/testing/selftests/bpf/prog_tests/autoload.c | |
| parent | iommu/amd: Enable device ATS/PASID/PRI capabilities independently (diff) | |
| download | kernel-7016b3005547bae3ba4577980db0ede53a79784a.tar.gz kernel-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 <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jerry Snitselaar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/autoload.c')
0 files changed, 0 insertions, 0 deletions
