projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4c27ac4
)
gpu: host1x: Use iommu_paging_domain_alloc()
author
Lu Baolu
<baolu.lu@linux.intel.com>
Mon, 12 Aug 2024 07:16:05 +0000
(15:16 +0800)
committer
Thierry Reding
<treding@nvidia.com>
Wed, 28 Aug 2024 15:28:48 +0000
(17:28 +0200)
An iommu domain is allocated in host1x_iommu_attach() and is attached to
host->dev. Use iommu_paging_domain_alloc() to make it explicit.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Link:
https://lore.kernel.org/r/20240610085555.88197-8-baolu.lu@linux.intel.com
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link:
https://patchwork.freedesktop.org/patch/msgid/20240812071605.9513-1-baolu.lu@linux.intel.com
drivers/gpu/host1x/dev.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/host1x/dev.c
b/drivers/gpu/host1x/dev.c
index f006bc931324fa504eccf309c35f5c43a83d65ae..b62e4f0e8130fb8276ffcf4b20eebc2ae7223028 100644
(file)
--- a/
drivers/gpu/host1x/dev.c
+++ b/
drivers/gpu/host1x/dev.c
@@
-404,9
+404,10
@@
static struct iommu_domain *host1x_iommu_attach(struct host1x *host)
if (err < 0)
goto put_group;
- host->domain = iommu_domain_alloc(&platform_bus_type);
- if (!host->domain) {
- err = -ENOMEM;
+ host->domain = iommu_paging_domain_alloc(host->dev);
+ if (IS_ERR(host->domain)) {
+ err = PTR_ERR(host->domain);
+ host->domain = NULL;
goto put_cache;
}