From c615002d22b4675d08404eb7cc7087d4418eccdb Mon Sep 17 00:00:00 2001 From: Emad Mir Date: Mon, 10 Sep 2018 15:37:03 -0700 Subject: Revert "gpu: nvgpu: deny any request less than engine timeout" This reverts commit 4f01d6a9b9a54cf6042db157de0d40965077f6a2. Change-Id: I604acef2a1f322a521df3ceb39e7df5d249a5716 Reviewed-on: https://git-master.nvidia.com/r/1818387 Reviewed-by: Emad Mir Tested-by: Emad Mir Reviewed-by: svc-misra-checker Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/os/linux/ioctl_channel.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/gpu/nvgpu/os/linux/ioctl_channel.c b/drivers/gpu/nvgpu/os/linux/ioctl_channel.c index b48cfa99..e9a24923 100644 --- a/drivers/gpu/nvgpu/os/linux/ioctl_channel.c +++ b/drivers/gpu/nvgpu/os/linux/ioctl_channel.c @@ -1227,11 +1227,6 @@ long gk20a_channel_ioctl(struct file *filp, (u32)((struct nvgpu_set_timeout_args *)buf)->timeout; nvgpu_log(g, gpu_dbg_gpu_dbg, "setting timeout (%d ms) for chid %d", timeout, ch->chid); - if (timeout < g->fifo_eng_timeout_us / 1000) { - dump_stack(); - err = -EINVAL; - break; - } ch->timeout_ms_max = timeout; gk20a_channel_trace_sched_param( trace_gk20a_channel_set_timeout, ch); @@ -1246,11 +1241,6 @@ long gk20a_channel_ioctl(struct file *filp, (1 << NVGPU_TIMEOUT_FLAG_DISABLE_DUMP)); nvgpu_log(g, gpu_dbg_gpu_dbg, "setting timeout (%d ms) for chid %d", timeout, ch->chid); - if (timeout < g->fifo_eng_timeout_us / 1000) { - dump_stack(); - err = -EINVAL; - break; - } ch->timeout_ms_max = timeout; ch->timeout_debug_dump = timeout_debug_dump; gk20a_channel_trace_sched_param( -- cgit v1.2.2