From fb40f2a80739985abac273bc493e07341aa003af Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Thu, 15 Mar 2018 00:43:35 -0700 Subject: gpu: nvgpu: remove aggressive_sync_destroy_thresh check for user syncpoint VGPU has set aggressive_sync_destroy_thresh even for GV11B, and that breaks allocation of user managed syncpoint on VGPU Remove this check for now until some solution is finalized Bug 200397265 Bug 200326065 Change-Id: Idd765cfdd40b9055d9e083d59c85c84d8b213ee9 Signed-off-by: Deepak Nibade Reviewed-on: https://git-master.nvidia.com/r/1675678 Reviewed-by: svc-mobile-coverity Reviewed-by: Konsta Holtta GVS: Gerrit_Virtual_Submit Reviewed-by: Mikko Perttunen --- drivers/gpu/nvgpu/common/linux/ioctl_channel.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c index 01355b78..5cd6e7d4 100644 --- a/drivers/gpu/nvgpu/common/linux/ioctl_channel.c +++ b/drivers/gpu/nvgpu/common/linux/ioctl_channel.c @@ -977,11 +977,6 @@ static int nvgpu_ioctl_channel_get_user_syncpoint(struct channel_gk20a *ch, return -EINVAL; } - if (g->aggressive_sync_destroy_thresh) { - nvgpu_err(g, "sufficient syncpoints not available"); - return -EINVAL; - } - nvgpu_mutex_acquire(&ch->sync_lock); if (ch->user_sync) { nvgpu_mutex_release(&ch->sync_lock); -- cgit v1.2.2