diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2022-10-31 01:59:06 +0100 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2022-11-03 15:47:44 +0100 |
commit | 22d2c7afb3697a68c7fc05c935ef662dee06dc60 (patch) | |
tree | 7877f4524e9b3f2d32ab72e9761dcfdaa3b7cb63 /drivers/iommu/arm/arm-smmu-v3 | |
parent | iommu: Add max_pasids field in struct iommu_device (diff) | |
download | linux-22d2c7afb3697a68c7fc05c935ef662dee06dc60.tar.xz linux-22d2c7afb3697a68c7fc05c935ef662dee06dc60.zip |
iommu: Add max_pasids field in struct dev_iommu
Use this field to save the number of PASIDs that a device is able to
consume. It is a generic attribute of a device and lifting it into the
per-device dev_iommu struct could help to avoid the boilerplate code
in various IOMMU drivers.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Tested-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: Tony Zhu <tony.zhu@intel.com>
Link: https://lore.kernel.org/r/20221031005917.45690-3-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu/arm/arm-smmu-v3')
0 files changed, 0 insertions, 0 deletions