drm/amdgpu: implement grab reserved vmid V4
authorChunming Zhou <David1.Zhou@amd.com>
Fri, 21 Apr 2017 03:13:56 +0000 (11:13 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 24 May 2017 21:40:10 +0000 (17:40 -0400)
commit7a63eb23d8817477f19f2cf51fbf7b27b221049c
tree13c9bf75ad405dcc96cf107c77a80555c0f81cf1
parentc350577073de8fe21e6cdd798c4e4746d670bb47
drm/amdgpu: implement grab reserved vmid V4

Implement the vmid reservation.

v2: move sync waiting only when flush needs
v3: fix racy
v4: peek fence instead of get fence, and fix potential context starved.

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