summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2016-07-15 08:52:52 -0400
committerVijayakumar Subbu <vsubbu@nvidia.com>2016-07-21 08:55:26 -0400
commit13231006671a1da11cfaf7a67e69430199820788 (patch)
tree6b4053838d672b158fe636b60768240585a21eb0 /drivers/gpu/nvgpu/gk20a/mm_gk20a.h
parent83071083d779b67ad73172675a6dfa34ed19b414 (diff)
gpu: nvgpu: add vidmem allocation ioctl
Add NVGPU_GPU_IOCTL_ALLOC_VIDMEM to the ctrl fd for letting userspace allocate on-board GPU memory (aka vidmem). The allocations are returned as dmabuf fds. Also, report the amount of local video memory in the gpu characteristics. Jira DNVGPU-19 Jira DNVGPU-38 Change-Id: I28e361d31bb630b96d06bb1c86d022d91c7592bc Signed-off-by: Konsta Holtta <kholtta@nvidia.com> Reviewed-on: http://git-master/r/1181152 GVS: Gerrit_Virtual_Submit Reviewed-by: Vijayakumar Subbu <vsubbu@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, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
index d7503948..5f0ce657 100644
--- a/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/mm_gk20a.h
@@ -718,6 +718,8 @@ void gk20a_vm_mapping_batch_finish_locked(
718 struct vm_gk20a *vm, struct vm_gk20a_mapping_batch *batch); 718 struct vm_gk20a *vm, struct vm_gk20a_mapping_batch *batch);
719 719
720 720
721int gk20a_vidmem_buf_alloc(struct gk20a *g, size_t bytes);
722
721/* Note: batch may be NULL if map op is not part of a batch */ 723/* Note: batch may be NULL if map op is not part of a batch */
722int gk20a_vm_map_buffer(struct vm_gk20a *vm, 724int gk20a_vm_map_buffer(struct vm_gk20a *vm,
723 int dmabuf_fd, 725 int dmabuf_fd,