summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ioctl_channel.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_channel.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
index c75c9244..5b4dda6c 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
@@ -771,6 +771,7 @@ static int gk20a_ioctl_channel_submit_gpfifo(
771 struct nvgpu_channel_fence fence; 771 struct nvgpu_channel_fence fence;
772 struct gk20a_fence *fence_out; 772 struct gk20a_fence *fence_out;
773 struct fifo_profile_gk20a *profile = NULL; 773 struct fifo_profile_gk20a *profile = NULL;
774 u32 submit_flags = 0;
774 775
775 int ret = 0; 776 int ret = 0;
776 gk20a_dbg_fn(""); 777 gk20a_dbg_fn("");
@@ -789,8 +790,10 @@ static int gk20a_ioctl_channel_submit_gpfifo(
789 return -EPERM; 790 return -EPERM;
790 791
791 nvgpu_get_fence_args(&args->fence, &fence); 792 nvgpu_get_fence_args(&args->fence, &fence);
793 submit_flags =
794 nvgpu_submit_gpfifo_user_flags_to_common_flags(args->flags);
792 ret = gk20a_submit_channel_gpfifo(ch, NULL, args, args->num_entries, 795 ret = gk20a_submit_channel_gpfifo(ch, NULL, args, args->num_entries,
793 args->flags, &fence, 796 submit_flags, &fence,
794 &fence_out, false, profile); 797 &fence_out, false, profile);
795 798
796 if (ret) 799 if (ret)