From 0ca69a482d15ccf22bacccc4964606969df144f6 Mon Sep 17 00:00:00 2001 From: Konsta Holtta Date: Thu, 17 May 2018 13:30:11 +0300 Subject: gpu: nvgpu: add submit entry points for kernel and ioctl gk20a_submit_channel_gpfifo() supports reading the gpfifo entries from either a kernel buffer or an userspace buffer in an ioctl. Add two separate entry points: one for the ioctl and another for any other kernel use. This shortens the function prototypes and simplifies and clarifies the call sites slightly. Jira NVGPU-705 Change-Id: If5141a459261a451f78cc50972f4c94d95ba44d1 Signed-off-by: Konsta Holtta Reviewed-on: https://git-master.nvidia.com/r/1730479 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/ce2.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/os/linux/ce2.c') diff --git a/drivers/gpu/nvgpu/os/linux/ce2.c b/drivers/gpu/nvgpu/os/linux/ce2.c index 165f33db..8f20091b 100644 --- a/drivers/gpu/nvgpu/os/linux/ce2.c +++ b/drivers/gpu/nvgpu/os/linux/ce2.c @@ -130,9 +130,8 @@ int gk20a_ce_execute_ops(struct gk20a *g, nvgpu_smp_wmb(); - ret = gk20a_submit_channel_gpfifo(ce_ctx->ch, &gpfifo, NULL, - 1, submit_flags, &fence, - &ce_cmd_buf_fence_out, NULL); + ret = gk20a_submit_channel_gpfifo_kernel(ce_ctx->ch, &gpfifo, + 1, submit_flags, &fence, &ce_cmd_buf_fence_out); if (!ret) { ce_ctx->postfences[ce_ctx->cmd_buf_read_queue_offset] = -- cgit v1.2.2