]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitef98e315d181a26b17fc5da073ab0b0afad0a83a
tree441db2be3bbc9efb77f375587cc41fb23e450e72
parentdd5422bf5aa1da094c58ff14ff53f63eb40a5d84
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