drm/amdgpu: add ctx_id to the WAIT_CS IOCTL (v4)
authorJammy Zhou <Jammy.Zhou@amd.com>
Fri, 8 May 2015 09:29:40 +0000 (17:29 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 4 Jun 2015 01:03:29 +0000 (21:03 -0400)
commit66b3cf2ab38f47db2d07fe24a00972fbf822cd74
tree6082b677c1369f69094a4540546f0b3d0affb3d0
parent74a5d1656e165d5457be64b4d78d3259c2946e93
drm/amdgpu: add ctx_id to the WAIT_CS IOCTL (v4)

It is required to support fence per context.

v2: add amdgpu_ctx_get/put
v3: improve get/put
v4: squash hlock fix

Signed-off-by: Jammy Zhou <Jammy.Zhou@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ctx.c
include/uapi/drm/amdgpu_drm.h