Skip to content

Commit 88564c7

Browse files
yiliu1765schythanyaku
authored andcommitted
iommu: Store either domain or handle in group->pasid_array
BugLink: https://bugs.launchpad.net/bugs/2119656 iommu_attach_device_pasid() only stores handle to group->pasid_array when there is a valid handle input. However, it makes the iommu_attach_device_pasid() unable to detect if the pasid has been attached or not previously. To be complete, let the iommu_attach_device_pasid() store the domain to group->pasid_array if no valid handle. The other users of the group->pasid_array should be updated to be consistent. e.g. the iommu_attach_group_handle() and iommu_replace_group_handle(). Link: https://patch.msgid.link/r/20250226011849.5102-4-yi.l.liu@intel.com Suggested-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Reviewed-by: Nicolin Chen <nicolinc@nvidia.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Signed-off-by: Yi Liu <yi.l.liu@intel.com> Reviewed-by: Lu Baolu <baolu.lu@linux.intel.com> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com> (cherry picked from commit e1ea9d3) Signed-off-by: Nirmoy Das <nirmoyd@nvidia.com> Acked-by: Carol L Soto <csoto@nvidia.com> Acked-by: Matt Ochs <mochs@nvidia.com> Acked-by: Noah Wager <noah.wager@canonical.com> Acked-by: Jacob Martin <jacob.martin@canonical.com> Signed-off--by: Brad Figg <bfigg@nvidia.com>
1 parent 7d0eaad commit 88564c7

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

drivers/firmware/arm_ffa/driver.c

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1368,31 +1368,6 @@ static int __ffa_notify_request(struct ffa_device *dev, bool is_per_vcpu,
13681368
return rc;
13691369
}
13701370

1371-
static int ffa_notify_relinquish(struct ffa_device *dev, int notify_id)
1372-
{
1373-
return __ffa_notify_relinquish(dev, notify_id, false);
1374-
}
1375-
1376-
static int ffa_fwk_notify_relinquish(struct ffa_device *dev, int notify_id)
1377-
{
1378-
return __ffa_notify_relinquish(dev, notify_id, true);
1379-
}
1380-
1381-
static int __ffa_notify_request(struct ffa_device *dev, bool is_per_vcpu,
1382-
void *cb, void *cb_data,
1383-
int notify_id, bool is_framework)
1384-
{
1385-
return __ffa_notify_request(dev, is_per_vcpu, cb, cb_data, notify_id,
1386-
false);
1387-
}
1388-
1389-
static int
1390-
ffa_fwk_notify_request(struct ffa_device *dev, ffa_fwk_notifier_cb cb,
1391-
void *cb_data, int notify_id)
1392-
{
1393-
return __ffa_notify_request(dev, false, cb, cb_data, notify_id, true);
1394-
}
1395-
13961371
static int ffa_notify_request(struct ffa_device *dev, bool is_per_vcpu,
13971372
ffa_notifier_cb cb, void *cb_data, int notify_id)
13981373
{

0 commit comments

Comments
 (0)