drm/amdgpu: add pipeline sync for compute job
authorChunming Zhou <David1.Zhou@amd.com>
Wed, 27 Apr 2016 10:07:41 +0000 (18:07 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 11 May 2016 16:31:16 +0000 (12:31 -0400)
commitfe707664879b15b9caafd3b9f0f9897aa26a7edd
treea3a51520004a57177942dbc50d2469981794a036
parentc5637837ba5d5b5e962e73f5a1a7c5456fa85a68
drm/amdgpu: add pipeline sync for compute job

hardware ring is async processed, the job is executed in parallel.
In some case, this will result vm fault, like jobs with different vmids.

This works around a CPC hw issue which will eventually be fixed in fw.

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c