]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit1902358d7aecebc9cca27c612c69342cd77fbcc5
treefb6ecd683f755d95c2eefde2b2795e9b513ef9f3
parentc0851d14d05c422f79660f9d2b3c8200262db758
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