drm/tegra: Set sgt pointer in BO pin
authorMikko Perttunen <mperttunen@nvidia.com>
Tue, 8 Nov 2016 17:51:35 +0000 (19:51 +0200)
committerThierry 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

index 25083729a89c8fbbca68340354c5948261e0cb47..c08e5279eeac9934e00357afd1a13ac445d33937 100644 (file)
@@ -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;
 }