diff options
| author | Robin Murphy <[email protected]> | 2025-03-13 17:31:06 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-03-20 07:58:24 +0000 |
| commit | dcde1c4aa7ceec94e8557191d5789fd76df2f671 (patch) | |
| tree | 08bb02e1d793dc9ca4896f7eb7e1d737f9df89bf /net/unix/garbage.c | |
| parent | iommu/rockchip: Register in a sensible order (diff) | |
| download | kernel-dcde1c4aa7ceec94e8557191d5789fd76df2f671.tar.gz kernel-dcde1c4aa7ceec94e8557191d5789fd76df2f671.zip | |
iommu/rockchip: Retire global dma_dev workaround
The global dma_dev trick was mostly because the old domain_alloc op
provided no context, so no way to know which IOMMU was to own the
pagetable, or if a suitable one even existed at all. In the new
multi-instance world with domain_alloc_paging this is no longer a
concern - now we know that the given device must be associated with a
valid IOMMU instance which provided the op to call in the first place,
and therefore that instance can and should be the pagetable owner. To
avoid worrying about the lifetime and stability of the rk_domain->iommus
list, and keep the lookups simple and efficient, we'll still stash a
dma_dev pointer, but now it's accurately per-domain.
Signed-off-by: Robin Murphy <[email protected]>
Tested-by: Quentin Schulz <[email protected]>
Tested-by: Dang Huynh <[email protected]>
Reviewed-by: Nicolas Frattaroli <[email protected]>
Tested-by: Nicolas Frattaroli <[email protected]>
Link: https://lore.kernel.org/r/25dc948a7d35c8142c5719ac22bc523f8524d006.1741886382.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/unix/garbage.c')
0 files changed, 0 insertions, 0 deletions
