From: Mikko Perttunen Date: Tue, 8 Nov 2016 17:51:35 +0000 (+0200) Subject: drm/tegra: Set sgt pointer in BO pin X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=585ee0f27ef7b8db46807b960388b7e58b60766d;p=openwrt%2Fstaging%2Fblogic.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 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; }