summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorSami Kiminki <skiminki@nvidia.com>2015-10-26 13:23:54 -0400
committerTerje Bergstrom <tbergstrom@nvidia.com>2015-11-17 15:38:44 -0500
commit30632cec54048944ee364781b4b8c2676ae5dfed (patch)
tree2d58fe57b8f80eb747aa1f8e3923f982870a9a16 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent5a24e95fe605a2e7ec4d1a126c9bffd64bd77590 (diff)
gpu: nvgpu: Implement NVGPU_GPU_IOCTL_GET_BUFFER_INFO
Implement NVGPU_GPU_IOCTL_GET_BUFFER_INFO. The new IOCTL can be used to identify buffers and retrieve their sizes. This allows the userspace to be agnostic to the dmabuf implementation, as the generic dmabuf fd interface does not have a reliable way for buffer identification. Bug 1614735 Bug 1623949 Bug 1660392 Change-Id: Ic3dd0a9385c9852778110ccb80636dd6f4f36208 Signed-off-by: Sami Kiminki <skiminki@nvidia.com> Reviewed-on: http://git-master/r/822845 Reviewed-on: http://git-master/r/833252 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.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index 7bbaf283..7be4383b 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -688,4 +688,7 @@ static inline void nvgpu_free(void *p)
688 vfree(p); 688 vfree(p);
689} 689}
690 690
691int gk20a_mm_get_buffer_info(struct device *dev, int dmabuf_fd,
692 u64 *buffer_id, u64 *buffer_len);
693
691#endif /* MM_GK20A_H */ 694#endif /* MM_GK20A_H */