drm/amdgpu: prepare job before push to sw queue for pte ring
authorChunming Zhou <david1.zhou@amd.com>
Tue, 21 Jul 2015 08:04:39 +0000 (16:04 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 17 Aug 2015 20:50:36 +0000 (16:50 -0400)
commit4274f5d45cf11f88d7380702a7147b70553ddd6e
tree4b53bd66cb742c206c9537691ee8337a134f7300
parent4b559c90bc1870313f02cceef680884519af6b2b
drm/amdgpu: prepare job before push to sw queue for pte ring

user mode will still use pte ring as a normal ring.
if the prepare job generates another command(update pte) on its ring in scheduler,
then will kill scheduler which is going to waiting later job but pending running job.

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.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/cik_sdma.c
drivers/gpu/drm/amd/amdgpu/sdma_v2_4.c
drivers/gpu/drm/amd/amdgpu/sdma_v3_0.c