drm/ttm: revise ttm_bo_move_to_lru_tail to support bulk moves
authorChristian König <christian.koenig@amd.com>
Mon, 6 Aug 2018 09:05:30 +0000 (17:05 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:21 +0000 (11:11 -0500)
commit9a2779528eddacf0123bfd7308b71141b54cc619
treeefb7596bcfa08db39c788758c1402d27898598cc
parent8c7655a0fdd32ab39cfef604403dbe1013df213b
drm/ttm: revise ttm_bo_move_to_lru_tail to support bulk moves

When move a BO to the end of LRU, it need remember the BO positions.
Make sure all moved bo in between "first" and "last". And they will be bulk
moving together.

Signed-off-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Huang Rui <ray.huang@amd.com>
Tested-by: Mike Lothian <mike@fireburn.co.uk>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Acked-by: Chunming Zhou <david1.zhou@amd.com>
Reviewed-by: Junwei Zhang <Jerry.Zhang@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
drivers/gpu/drm/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h