diff options
| author | Yi Liu <[email protected]> | 2025-02-26 01:18:49 +0000 |
|---|---|---|
| committer | Jason Gunthorpe <[email protected]> | 2025-02-28 14:07:14 +0000 |
| commit | 5e9f822c9c683ae884fa5e71df41d1647b2876c6 (patch) | |
| tree | 0670ee78533f9fefa08118fafdff3858a29609c1 /tools/testing/selftests/net/lib/py/utils.py | |
| parent | iommu: Store either domain or handle in group->pasid_array (diff) | |
| download | kernel-5e9f822c9c683ae884fa5e71df41d1647b2876c6.tar.gz kernel-5e9f822c9c683ae884fa5e71df41d1647b2876c6.zip | |
iommu: Swap the order of setting group->pasid_array and calling attach op of iommu drivers
The current implementation stores entry to the group->pasid_array before
the underlying iommu driver has successfully set the new domain. This can
lead to issues where PRIs are received on the new domain before the attach
operation is completed.
This patch swaps the order of operations to ensure that the domain is set
in the underlying iommu driver before updating the group->pasid_array.
Link: https://patch.msgid.link/r/[email protected]
Suggested-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Nicolin Chen <[email protected]>
Reviewed-by: Lu Baolu <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions
