drm/ttm: immediately move BOs to the new LRU v3
authorChristian König <christian.koenig@amd.com>
Mon, 13 May 2019 15:58:23 +0000 (17:58 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 31 May 2019 15:39:34 +0000 (10:39 -0500)
commit224ee02a9d73cb687bc5432a969247689678290c
treefb6ecd683f755d95c2eefde2b2795e9b513ef9f3
parent4c5ac9487c155eded34b5b34af7caa1e3b98d161
drm/ttm: immediately move BOs to the new LRU v3

Move BOs which are currently in a lower domain to the new
LRU before allocating backing space while validating.

This makes sure that we always have enough entries on the
LRU to allow for other processes to wait for an operation
to complete.

v2: generalize the test
v3: fix rebase error

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Chunming Zhou <david1.zhou@amd.com>
Tested-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c