Message ID | 20161108175135.32004-4-mperttunen@nvidia.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
On Tue, Nov 08, 2016 at 07:51:35PM +0200, Mikko Perttunen wrote: > 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> > --- > drivers/gpu/drm/tegra/gem.c | 2 ++ > 1 file changed, 2 insertions(+) Applied with a slightly reformatted commit message. Please use all of the 72 columns to avoid "squeezed" commit messages. Thanks, Thierry
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; }
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> --- drivers/gpu/drm/tegra/gem.c | 2 ++ 1 file changed, 2 insertions(+)