summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
diff options
context:
space:
mode:
authorAlex Waterman <alexw@nvidia.com>2017-03-08 20:06:47 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2017-03-30 15:36:04 -0400
commit7010bf88399ea81b2b35844f738baac19dc5a441 (patch)
tree476a43b94402d702f20c4336dec98009d23a2afa /drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
parentbc92e2fb972e039ee33c1f1477204a4d145a8b96 (diff)
gpu: nvgpu: Use new kmem API functions (gk20a mm)
Use the new kmem API functions in gk20a's mm code. Add a struct gk20a pointer to the dmabuf priv struct so that the cleanup function has access to the gk20a struct. Also add a gk20a pointer to some of the sg table functions so that they can use the nvgpu kmem APIs. Bug 1799159 Bug 1823380 Change-Id: I85a307c6bf862627c5b1af0e077283b48d78fa72 Signed-off-by: Alex Waterman <alexw@nvidia.com> Reviewed-on: http://git-master/r/1318321 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svccoveritychecker <svccoveritychecker@nvidia.com> Reviewed-by: Konsta Holtta <kholtta@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c')
-rw-r--r--drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
index 32086aff..d051c0e3 100644
--- a/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
+++ b/drivers/gpu/nvgpu/tegra/linux/platform_gk20a_tegra.c
@@ -138,7 +138,7 @@ static void gk20a_tegra_secure_destroy(struct gk20a *g,
138 dma_free_attrs(&tegra_vpr_dev, desc->mem.size, 138 dma_free_attrs(&tegra_vpr_dev, desc->mem.size,
139 (void *)(uintptr_t)pa, 139 (void *)(uintptr_t)pa,
140 pa, __DMA_ATTR(attrs)); 140 pa, __DMA_ATTR(attrs));
141 gk20a_free_sgtable(&desc->mem.sgt); 141 gk20a_free_sgtable(g, &desc->mem.sgt);
142 desc->mem.sgt = NULL; 142 desc->mem.sgt = NULL;
143 } 143 }
144} 144}