drm/amdgpu: grab VMID before submitting job v5
authorChristian König <christian.koenig@amd.com>
Tue, 3 Nov 2015 19:58:50 +0000 (20:58 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Feb 2016 19:16:56 +0000 (14:16 -0500)
commit8d0a7cea824a2784150ef7f25a1e88f18a2a8f69
tree488fbe4c708a7db0605571fdae60685fcdbbc4c8
parent165e4e07c2cb91658c444ac4dab49473bfb3847b
drm/amdgpu: grab VMID before submitting job v5

This allows the scheduler to handle the dependencies on ID contention as well.

v2: grab id only once
v3: use a separate lock for the VMIDs
v4: cleanup after semaphore removal
v5: minor coding style change

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ib.c
drivers/gpu/drm/amd/amdgpu/amdgpu_sched.c