summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/os/linux/ce2.c
diff options
context:
space:
mode:
authorKonsta Holtta <kholtta@nvidia.com>2018-05-17 06:30:11 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-06-20 09:14:31 -0400
commit0ca69a482d15ccf22bacccc4964606969df144f6 (patch)
treef24433fba5d875aaf2e8edc29cac568fc392d929 /drivers/gpu/nvgpu/os/linux/ce2.c
parent06ceff1240902c7f4cdb01dcbc9c988fc5fd9495 (diff)
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 <kholtta@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1730479 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/os/linux/ce2.c')
-rw-r--r--drivers/gpu/nvgpu/os/linux/ce2.c5
1 files changed, 2 insertions, 3 deletions
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,
130 130
131 nvgpu_smp_wmb(); 131 nvgpu_smp_wmb();
132 132
133 ret = gk20a_submit_channel_gpfifo(ce_ctx->ch, &gpfifo, NULL, 133 ret = gk20a_submit_channel_gpfifo_kernel(ce_ctx->ch, &gpfifo,
134 1, submit_flags, &fence, 134 1, submit_flags, &fence, &ce_cmd_buf_fence_out);
135 &ce_cmd_buf_fence_out, NULL);
136 135
137 if (!ret) { 136 if (!ret) {
138 ce_ctx->postfences[ce_ctx->cmd_buf_read_queue_offset] = 137 ce_ctx->postfences[ce_ctx->cmd_buf_read_queue_offset] =