diff options
author | Yi Liu <yi.l.liu@intel.com> | 2024-03-28 15:29:58 +0300 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2024-04-12 13:13:01 +0300 |
commit | d2f85a263883b679f87ed8f911746105658e9c47 (patch) | |
tree | 58d21b3942f962508b82184780babb7d6397f93c /drivers/of | |
parent | b025dea63cded0d82bccd591fa105d39efc6435d (diff) | |
download | linux-d2f85a263883b679f87ed8f911746105658e9c47.tar.xz |
iommu: Pass domain to remove_dev_pasid() op
Existing remove_dev_pasid() callbacks of the underlying iommu drivers
get the attached domain from the group->pasid_array. However, the domain
stored in group->pasid_array is not always correct in all scenarios.
A wrong domain may result in failure in remove_dev_pasid() callback.
To avoid such problems, it is more reliable to pass the domain to the
remove_dev_pasid() op.
Suggested-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Link: https://lore.kernel.org/r/20240328122958.83332-3-yi.l.liu@intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/of')
0 files changed, 0 insertions, 0 deletions