drm/amdgpu: user BO priority instead of self coding it (v2)
authorChristian König <christian.koenig@amd.com>
Tue, 10 Jan 2017 16:27:49 +0000 (17:27 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 17:20:33 +0000 (12:20 -0500)
commite1f055b30187204439b6693a118b9dde9cda04ae
tree29689d69c58bacf23601ef70a1adde165d3b1a88
parentcf6c467d67d319e239aec57d7ba31cb9946f29bf
drm/amdgpu: user BO priority instead of self coding it (v2)

Keeping groups of BOs on the LRU is to time consuming on command submission.

Instead use the newly added BO priority to give a certain eviction order.

v2: agd: trivial warning fix

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Roger.He <Hongbo.He@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_object.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.c
drivers/gpu/drm/amd/amdgpu/amdgpu_ttm.h