]> git.baikalelectronics.ru Git - kernel.git/commitdiff
drm/amdgpu: use dep_sync for CS dependency/syncobj
authorChunming Zhou <david1.zhou@amd.com>
Mon, 13 Nov 2017 02:51:57 +0000 (10:51 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 6 Dec 2017 17:47:21 +0000 (12:47 -0500)
Otherwise, they could be optimized by scheduled fence.

Signed-off-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c

index bc3a7500fbbd098ccb5d62bea97c0fa174ed8992..743875ad4404b4731f3baf072ccb9443627d99d8 100644 (file)
@@ -1039,7 +1039,7 @@ static int amdgpu_cs_process_fence_dep(struct amdgpu_cs_parser *p,
                        amdgpu_ctx_put(ctx);
                        return r;
                } else if (fence) {
-                       r = amdgpu_sync_fence(p->adev, &p->job->sync,
+                       r = amdgpu_sync_fence(p->adev, &p->job->dep_sync,
                                              fence);
                        dma_fence_put(fence);
                        amdgpu_ctx_put(ctx);
@@ -1059,7 +1059,7 @@ static int amdgpu_syncobj_lookup_and_add_to_sync(struct amdgpu_cs_parser *p,
        if (r)
                return r;
 
-       r = amdgpu_sync_fence(p->adev, &p->job->sync, fence);
+       r = amdgpu_sync_fence(p->adev, &p->job->dep_sync, fence);
        dma_fence_put(fence);
 
        return r;