mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
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>
This commit is contained in:
committed by
mobile promotions
parent
06ceff1240
commit
0ca69a482d
@@ -783,9 +783,8 @@ static int gk20a_cde_execute_buffer(struct gk20a_cde_ctx *cde_ctx,
|
||||
return -ENOSYS;
|
||||
}
|
||||
|
||||
return gk20a_submit_channel_gpfifo(cde_ctx->ch, gpfifo, NULL,
|
||||
num_entries, flags, fence, fence_out,
|
||||
NULL);
|
||||
return gk20a_submit_channel_gpfifo_kernel(cde_ctx->ch, gpfifo,
|
||||
num_entries, flags, fence, fence_out);
|
||||
}
|
||||
|
||||
static void gk20a_cde_ctx_release(struct gk20a_cde_ctx *cde_ctx)
|
||||
|
||||
Reference in New Issue
Block a user