diff options
author | Mikko Perttunen <mperttunen@nvidia.com> | 2016-11-08 18:51:35 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2016-11-11 15:37:13 +0100 |
commit | 585ee0f27ef7b8db46807b960388b7e58b60766d (patch) | |
tree | 1747fcacf1af0f8eab203ed4cc9e9097e7cc0fc8 | |
parent | drm/tegra: Support kernel mappings with IOMMU (diff) | |
download | linux-585ee0f27ef7b8db46807b960388b7e58b60766d.tar.xz linux-585ee0f27ef7b8db46807b960388b7e58b60766d.zip |
drm/tegra: Set sgt pointer in BO pin
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>
-rw-r--r-- | drivers/gpu/drm/tegra/gem.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c index 25083729a89c..c08e5279eeac 100644 --- 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; } |