drm/ttm: add bulk move function on LRU
authorHuang Rui <ray.huang@amd.com>
Mon, 6 Aug 2018 09:28:35 +0000 (17:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:11:21 +0000 (11:11 -0500)
commit7748e2dcdaad901776c0d78e76e066403e95513c
treee8a8ee0313a5c957f2c5a5bf772b171d882f1d7f
parent9a2779528eddacf0123bfd7308b71141b54cc619
drm/ttm: add bulk move function on LRU

This function allow us to bulk move a group of BOs to the tail of their LRU.
The positions of group of BOs are stored on the (first, last) bulk_move_pos
structure.

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/ttm/ttm_bo.c
include/drm/ttm/ttm_bo_api.h