Commit 7016b30
iommu/amd: Initialize iommu_device->max_pasids
Commit 1adf3cc ("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>1 parent eda8c28 commit 7016b30
2 files changed
Lines changed: 2 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
886 | 886 | | |
887 | 887 | | |
888 | 888 | | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | 889 | | |
893 | 890 | | |
894 | 891 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
185 | 185 | | |
186 | 186 | | |
187 | 187 | | |
188 | | - | |
189 | | - | |
190 | 188 | | |
191 | 189 | | |
192 | 190 | | |
| |||
2080 | 2078 | | |
2081 | 2079 | | |
2082 | 2080 | | |
2083 | | - | |
2084 | 2081 | | |
2085 | 2082 | | |
2086 | 2083 | | |
2087 | 2084 | | |
2088 | | - | |
2089 | | - | |
2090 | | - | |
| 2085 | + | |
2091 | 2086 | | |
2092 | | - | |
| 2087 | + | |
2093 | 2088 | | |
2094 | 2089 | | |
2095 | 2090 | | |
| |||
0 commit comments