diff options
| author | Yi Liu <[email protected]> | 2024-11-08 02:13:56 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2024-11-08 13:04:52 +0000 |
| commit | d93cf86cc66a0b8ae80da8c1ffd6903897786124 (patch) | |
| tree | 63de3dfe1687642ce73dafad7509b9f0973ca59e /drivers/usb/cdns3/cdns3-plat.c | |
| parent | iommu/vt-d: Add pasid replace helpers (diff) | |
| download | kernel-d93cf86cc66a0b8ae80da8c1ffd6903897786124.tar.gz kernel-d93cf86cc66a0b8ae80da8c1ffd6903897786124.zip | |
iommu/vt-d: Consolidate the struct dev_pasid_info add/remove
The domain_add_dev_pasid() and domain_remove_dev_pasid() are added to
consolidate the adding/removing of the struct dev_pasid_info. Besides,
it includes the cache tag assign/unassign as well.
This also prepares for adding domain replacement for pasid. The
set_dev_pasid callbacks need to deal with the dev_pasid_info for both old
and new domain. These two helpers make the life easier.
intel_iommu_set_dev_pasid() and intel_svm_set_dev_pasid() are updated to
use the helpers.
Reviewed-by: Lu Baolu <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Signed-off-by: Yi Liu <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Lu Baolu <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-plat.c')
0 files changed, 0 insertions, 0 deletions
