]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
drm/amdgpu: disable hw semaphore with scheduler
authorChunming Zhou <david1.zhou@amd.com>
Tue, 21 Jul 2015 05:19:45 +0000 (13:19 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:32 +0000 (16:50 -0400)
Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Christian K?nig <christian.koenig@amd.com>
Reviewed-by: Jammy Zhou <Jammy.Zhou@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_sync.c

index 9c292cf770f43bc39b0d88dee930e55e845238c4..105a3b51517442fa18b9f7d673e07007c506c55d 100644 (file)
@@ -165,7 +165,7 @@ int amdgpu_sync_rings(struct amdgpu_sync *sync,
                        return -EINVAL;
                }
 
-               if (count >= AMDGPU_NUM_SYNCS) {
+               if (amdgpu_enable_scheduler || (count >= AMDGPU_NUM_SYNCS)) {
                        /* not enough room, wait manually */
                        r = amdgpu_fence_wait(fence, false);
                        if (r)