drm/amdgpu: reserve/unreserve vmid by vm ioctl v4
authorChunming Zhou <David1.Zhou@amd.com>
Thu, 20 Apr 2017 08:18:48 +0000 (16:18 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:09 +0000 (17:40 -0400)
commit1e9ef26fb385394c3b0267c8293f4178729d8719
treeea0c82273488207828bc4fd72227a8d22d9fcb97
parent36bbf3bf9b23a9fe66558e2aa235f7d81c4a0727
drm/amdgpu: reserve/unreserve vmid by vm ioctl v4

add reserve/unreserve vmid funtions. Used to reserve
vmids for certain shader debugging functionality that
required a fixed vmid for the life of the debug.

v3:
only reserve vmid from gfxhub
v4:
fix racy condition

Signed-off-by: Chunming Zhou <David1.Zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@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_vm.c