[PATCH v2 3/3] drm/tegra: Use iommu_paging_domain_alloc()

2024-09-01 Thread Lu Baolu
kes 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 Signed-off-by: Lu Baolu --- drivers/gpu/drm/tegra/drm.c | 5 +++-- 1 file chang

[PATCH v2 1/3] drm/nouveau/tegra: Use iommu_paging_domain_alloc()

2024-09-01 Thread Lu Baolu
In nvkm_device_tegra_probe_iommu(), a paging domain is allocated for @dev and attached to it on success. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu --- drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions

[PATCH v2 2/3] drm/rockchip: Use iommu_paging_domain_alloc()

2024-09-01 Thread Lu Baolu
Commit <421be3ee36a4> ("drm/rockchip: Refactor IOMMU initialisation") has refactored rockchip_drm_init_iommu() to pass a device that the domain is allocated for. Replace iommu_domain_alloc() with iommu_paging_domain_alloc() to retire the former. Signed-off-by: Lu Baolu Re

[PATCH v2 0/3] drm: Use iommu_paging_domain_alloc()

2024-09-01 Thread Lu Baolu
e.kernel.org/linux-iommu/qyvyd2ftebjlgmzyayfvxsqa64c4wgx7keix3a6eexdspbvawy@a5ffnm5h5tgp/ v1: - https://lore.kernel.org/linux-iommu/20240812071034.9443-1-baolu...@linux.intel.com/ Lu Baolu (3): drm/nouveau/tegra: Use iommu_paging_domain_alloc() drm/rockchip: Use iommu_paging_domain_alloc() drm/tegra: Use iommu_paging_domain_alloc()

[PATCH 3/3] drm/tegra: Remove call to iommu_domain_alloc()

2024-08-12 Thread Lu Baolu
bsystem prevents domains allocated by one iommu driver from being attached to devices managed by any different iommu driver. Signed-off-by: Lu Baolu Link: https://lore.kernel.org/r/2024061008.88197-20-baolu...@linux.intel.com --- drivers/gpu/drm/tegra/drm.c | 34 +-

[PATCH 2/3] drm/rockchip: Use iommu_paging_domain_alloc()

2024-08-12 Thread Lu Baolu
Commit <421be3ee36a4> ("drm/rockchip: Refactor IOMMU initialisation") has refactored rockchip_drm_init_iommu() to pass a device that the domain is allocated for. Replace iommu_domain_alloc() with iommu_paging_domain_alloc() to retire the former. Signed-off-by: Lu Baolu Re

[PATCH 1/3] drm/nouveau/tegra: Use iommu_paging_domain_alloc()

2024-08-12 Thread Lu Baolu
In nvkm_device_tegra_probe_iommu(), a paging domain is allocated for @dev and attached to it on success. Use iommu_paging_domain_alloc() to make it explicit. Signed-off-by: Lu Baolu Link: https://lore.kernel.org/r/2024061008.88197-7-baolu...@linux.intel.com --- drivers/gpu/drm/nouveau/nvkm

[Nouveau] [PATCH 1/1] drm/nouveau/device: Get right pgsize_bitmap of iommu_domain

2022-01-01 Thread Lu Baolu
The suported page sizes of an iommu_domain are saved in the pgsize_bitmap field. Retrieve the value from the right place. Fixes: 58fd9375c2c534 ("drm/nouveau/platform: probe IOMMU if present") Signed-off-by: Lu Baolu --- drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c | 2 +- 1 fi