projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
532f0d1
)
drm/nouveau/tegra: Use iommu_paging_domain_alloc()
author
Lu Baolu
<baolu.lu@linux.intel.com>
Mon, 2 Sep 2024 01:46:58 +0000
(09:46 +0800)
committer
Lyude Paul
<lyude@redhat.com>
Wed, 4 Sep 2024 19:13:14 +0000
(15:13 -0400)
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 <baolu.lu@linux.intel.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240902014700.66095-2-baolu.lu@linux.intel.com
drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
b/drivers/gpu/drm/nouveau/nvkm/engine/device/tegra.c
index
d1c294f
..
78a83f9
100644
(file)
--- 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;
/*