]> 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)
commit3ecd3ff7672d94b5264ed03aca5604b135f51d24
treefb6ecd683f755d95c2eefde2b2795e9b513ef9f3
parentd674a736270a8bfbb92f758eeb6b4ed8f853a2d9
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