Commit 102cc9b4 authored by Lu Baolu's avatar Lu Baolu Committed by Carlos Llamas
Browse files

UPSTREAM: 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: default avatarLu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: default avatarKevin Tian <kevin.tian@intel.com>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Reviewed-by: default avatarYi Liu <yi.l.liu@intel.com>
Tested-by: default avatarZhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: default avatarTony Zhu <tony.zhu@intel.com>
Link: https://lore.kernel.org/r/20221031005917.45690-3-baolu.lu@linux.intel.com


Signed-off-by: default avatarJoerg Roedel <jroedel@suse.de>

(cherry picked from commit 22d2c7af)
Bug: 271394577
Change-Id: I92e21b945fd09563ac6bfe99165ce72d952b4b45
Signed-off-by: default avatarMichael Shavit <mshavit@google.com>
parent a789a7ef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment