drm/amdgpu: fix dependency issue
authorChunming Zhou <David1.Zhou@amd.com>
Tue, 9 May 2017 05:39:40 +0000 (13:39 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 May 2017 17:23:53 +0000 (13:23 -0400)
commit30514decb27d45b98599612cb5d3e6a20ba733a5
tree66ca957c94c8091b9bc11385046adfa26f4f18f8
parentcb3696fdeca24d3a347a5225d934ce50c6edccba
drm/amdgpu: fix dependency issue

The problem is that executing the jobs in the right order doesn't give you the right result
because consecutive jobs executed on the same engine are pipelined.
In other words job B does it buffer read before job A has written it's result.

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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_job.c
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.c
drivers/gpu/drm/amd/scheduler/gpu_scheduler.h