diff mbox

[4/4] drm/tegra: Set sgt pointer in BO pin

Message ID 20161108175135.32004-4-mperttunen@nvidia.com (mailing list archive)
State New, archived
Headers show

Commit Message

Mikko Perttunen Nov. 8, 2016, 5:51 p.m. UTC
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(+)

Comments

Thierry Reding Nov. 11, 2016, 2:38 p.m. UTC | #1
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 mbox

Patch

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;
 }