diff options
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ioctl_channel.c | 5 |
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 5cd6e7d4..01355b78 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c | |||
@@ -977,6 +977,11 @@ static int nvgpu_ioctl_channel_get_user_syncpoint(struct channel_gk20a *ch, | |||
977 | return -EINVAL; | 977 | return -EINVAL; |
978 | } | 978 | } |
979 | 979 | ||
980 | if (g->aggressive_sync_destroy_thresh) { | ||
981 | nvgpu_err(g, "sufficient syncpoints not available"); | ||
982 | return -EINVAL; | ||
983 | } | ||
984 | |||
980 | nvgpu_mutex_acquire(&ch->sync_lock); | 985 | nvgpu_mutex_acquire(&ch->sync_lock); |
981 | if (ch->user_sync) { | 986 | if (ch->user_sync) { |
982 | nvgpu_mutex_release(&ch->sync_lock); | 987 | nvgpu_mutex_release(&ch->sync_lock); |