drm/amdgpu: group BOs by log2 of the size on the LRU v2
authorChristian König <christian.koenig@amd.com>
Fri, 15 Apr 2016 15:19:16 +0000 (17:19 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 5 May 2016 00:23:08 +0000 (20:23 -0400)
commit29b3259a3ab98f4823f3227de1ae695f3f7bc751
tree3754ca247c37f0c6aef47cf719e6d260e79cf7b2
parent1359d6e494455d9314a3c59f5d5d459c13e11ef0
drm/amdgpu: group BOs by log2 of the size on the LRU v2

This allows us to have small BOs on the LRU before big ones.

v2: fix of by one and list corruption bug

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