summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ioctl_channel.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
index 5e09c677..6c66eca0 100644
--- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
+++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c
@@ -823,6 +823,11 @@ static int gk20a_ioctl_channel_submit_gpfifo(
823#endif 823#endif
824 if (ch->has_timedout) 824 if (ch->has_timedout)
825 return -ETIMEDOUT; 825 return -ETIMEDOUT;
826
827 if ((NVGPU_SUBMIT_GPFIFO_FLAGS_RESCHEDULE_RUNLIST & args->flags) &&
828 !capable(CAP_SYS_NICE))
829 return -EPERM;
830
826 ret = gk20a_submit_channel_gpfifo(ch, NULL, args, args->num_entries, 831 ret = gk20a_submit_channel_gpfifo(ch, NULL, args, args->num_entries,
827 args->flags, &args->fence, 832 args->flags, &args->fence,
828 &fence_out, false, profile); 833 &fence_out, false, profile);