From: Lu Baolu Date: Mon, 2 Sep 2024 01:46:58 +0000 (+0800) Subject: drm/nouveau/tegra: Use iommu_paging_domain_alloc() X-Git-Tag: v6.13-rc1~122^2~23^2~110 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bf7835facc09569eb038db7cfe42590d50b73567;p=thirdparty%2Fkernel%2Flinux.git drm/nouveau/tegra: Use iommu_paging_domain_alloc() 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 Signed-off-by: Lyude Paul Link: https://patchwork.freedesktop.org/patch/msgid/20240902014700.66095-2-baolu.lu@linux.intel.com --- diff --git a/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c b/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c index d1c294f006650..78a83f904bbd7 100644 --- a/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c +++ b/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c @@ -120,8 +120,8 @@ nvkm_device_tegra_probe_iommu(struct nvkm_device_tegra *tdev) mutex_init(&tdev->iommu.mutex); if (device_iommu_mapped(dev)) { - tdev->iommu.domain = iommu_domain_alloc(&platform_bus_type); - if (!tdev->iommu.domain) + tdev->iommu.domain = iommu_paging_domain_alloc(dev); + if (IS_ERR(tdev->iommu.domain)) goto error; /*