From: Mikko Perttunen Date: Tue, 8 Nov 2016 17:51:35 +0000 (+0200) Subject: drm/tegra: Set sgt pointer in BO pin X-Git-Tag: v4.14-rc1~1925^2~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=585ee0f27ef7b8db46807b960388b7e58b60766d;p=platform%2Fkernel%2Flinux-rpi.git 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 Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c index 2508372..c08e527 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; }