]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: add sched sync for amdgpu job v2
authorChunming Zhou <David1.Zhou@amd.com>
Tue, 9 May 2017 07:50:22 +0000 (15:50 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:35 +0000 (17:40 -0400)
commitadc6cd30ebed03a25bd48f3cd0c201c48f378070
tree150b6da48a391edd59e3f74f1da6f948c3fbac51
parentd3b9f527f39cab0328e97261c202fc1c057af5ac
drm/amdgpu: add sched sync for amdgpu job v2

this is an improvement for previous patch, the sched_sync is to store fence
that could be skipped as scheduled, when job is executed, we didn't need
pipeline_sync if all fences in sched_sync are signalled, otherwise insert
pipeline_sync still.

v2: handle error when adding fence to sync failed.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com> (v1)
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c