projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7ecada3
)
drm/tegra: Set sgt pointer in BO pin
author
Mikko Perttunen
<mperttunen@nvidia.com>
Tue, 8 Nov 2016 17:51:35 +0000
(19:51 +0200)
committer
Thierry Reding
<treding@nvidia.com>
Fri, 11 Nov 2016 14:37:13 +0000
(15:37 +0100)
Fix tegra_bo_pin() to set the parameter sgt pointer. host1x job pinning
requires the sgt to determine physical memory addresses of gathers.
Signed-off-by: Mikko Perttunen <mperttunen@nvidia.com>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/tegra/gem.c
b/drivers/gpu/drm/tegra/gem.c
index 25083729a89c8fbbca68340354c5948261e0cb47..c08e5279eeac9934e00357afd1a13ac445d33937 100644
(file)
--- a/
drivers/gpu/drm/tegra/gem.c
+++ b/
drivers/gpu/drm/tegra/gem.c
@@
-36,6
+36,8
@@
static dma_addr_t tegra_bo_pin(struct host1x_bo *bo, struct sg_table **sgt)
{
struct tegra_bo *obj = host1x_to_tegra_bo(bo);
+ *sgt = obj->sgt;
+
return obj->paddr;
}