]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/tegra: Use iommu_paging_domain_alloc()
authorLu Baolu <baolu.lu@linux.intel.com>
Mon, 2 Sep 2024 01:47:00 +0000 (09:47 +0800)
committerLyude Paul <lyude@redhat.com>
Tue, 10 Sep 2024 19:40:27 +0000 (15:40 -0400)
commit45c690aea8ee5b7d012cd593bd288540a4bfdbf0
tree29bdf9e0f6c2976060ee570b3c1cc70358a79447
parentd8c07bee1e636db7ee6ab64b958f7bfdd9ff8c1e
drm/tegra: Use iommu_paging_domain_alloc()

Commit <17de3f5fdd35> ("iommu: Retire bus ops") removes iommu ops from
the bus structure. The iommu subsystem no longer relies on bus for
operations. So iommu_domain_alloc() interface is no longer relevant.

Replace iommu_domain_alloc() with iommu_paging_domain_alloc() which takes
the physical device from which the host1x_device virtual device was
instantiated. This physical device is a common parent to all physical
devices that are part of the virtual device.

Suggested-by: Thierry Reding <thierry.reding@gmail.com>
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240902014700.66095-4-baolu.lu@linux.intel.com
drivers/gpu/drm/tegra/drm.c