drm/amdgpu: make VMID assignment more fair v2
authorChristian König <christian.koenig@amd.com>
Wed, 31 Jan 2018 09:16:26 +0000 (10:16 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:19:13 +0000 (14:19 -0500)
commit8fe27f8fa08b30c2c515b06209c9de52b392a116
tree441db2be3bbc9efb77f375587cc41fb23e450e72
parenta20ee0b1f8b42e2568f3a4408003d22b2dfcc706
drm/amdgpu: make VMID assignment more fair v2

Similar to finding an idle one before reuse.

This guarantees fairness between processes. Otherwise process with a reserved
VMID have an unfair advantage while scheduling jobs.

v2: improve commit message

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_ids.c