drm/amdgpu: reuse VMIDs assigned to a VM only if there is also a free one
authorChristian König <christian.koenig@amd.com>
Mon, 23 May 2016 14:00:32 +0000 (16:00 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:51:23 +0000 (14:51 -0400)
commit8d76001e0058aca129f599810d4f60e36fb36c5b
tree1378f12f00ff4d7021f901a469cc58deac5a17d9
parent36fd7c5c3ca6e03a265e8458905f453b552fe9df
drm/amdgpu: reuse VMIDs assigned to a VM only if there is also a free one

This fixes a fairness problem with the GPU scheduler. VM having lot of
jobs could previously starve VM with less jobs.

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