drm/amdgpu: prefer VMIDs idle on the current ring
authorChristian König <christian.koenig@amd.com>
Mon, 23 May 2016 13:30:08 +0000 (15:30 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 7 Jul 2016 18:51:22 +0000 (14:51 -0400)
commit36fd7c5c3ca6e03a265e8458905f453b552fe9df
tree286cdb9cd0914ede8b685708b179f401b58b22f9
parent354202389614bc7c29b6fbb98677326fcc248055
drm/amdgpu: prefer VMIDs idle on the current ring

Prefer to use a VMIDs which are idle on the ring we want to submit to. This
also removes bubbling idle VMIDs up on the LRU, which is actually not
beneficial.

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