summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
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/gk20a/mm_gk20a.h
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/gk20a/mm_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/mm_gk20a.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 81a0aac9..be5ba477 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -514,7 +514,7 @@ int gk20a_get_sgtable_from_pages(struct device *d, struct sg_table **sgt,
514 struct page **pages, u64 iova, 514 struct page **pages, u64 iova,
515 size_t size); 515 size_t size);
516 516
517void gk20a_free_sgtable(struct sg_table **sgt); 517void gk20a_free_sgtable(struct gk20a *g, struct sg_table **sgt);
518 518
519u64 gk20a_mm_iova_addr(struct gk20a *g, struct scatterlist *sgl, 519u64 gk20a_mm_iova_addr(struct gk20a *g, struct scatterlist *sgl,
520 u32 flags); 520 u32 flags);