diff options
author | Robin Murphy <robin.murphy@arm.com> | 2025-03-13 17:31:06 +0000 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2025-03-20 08:58:24 +0100 |
commit | dcde1c4aa7ceec94e8557191d5789fd76df2f671 (patch) | |
tree | 08bb02e1d793dc9ca4896f7eb7e1d737f9df89bf /mm/khugepaged.c | |
parent | f90aa59eb2999e4c33049f7e5679a6424da5c6b9 (diff) |
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 <robin.murphy@arm.com>
Tested-by: Quentin Schulz <quentin.schulz@cherry.de>
Tested-by: Dang Huynh <danct12@riseup.net>
Reviewed-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Tested-by: Nicolas Frattaroli <nicolas.frattaroli@collabora.com>
Link: https://lore.kernel.org/r/25dc948a7d35c8142c5719ac22bc523f8524d006.1741886382.git.robin.murphy@arm.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'mm/khugepaged.c')
0 files changed, 0 insertions, 0 deletions