From 61cb13324d9983603f363b9ad5f489837d83bcc4 Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 27 Jan 2022 22:10:11 +0000 Subject: [PATCH] drm/ttm: Put BO in its memory manager's lru list From xinhui pan 0da09030aae4a3c9de4699e7ce71085639f8c378 in linux 5.15.y/5.15.17 781050b0a3164934857c300bb0bc291e38c26b6f in mainline linux --- sys/dev/pci/drm/ttm/ttm_bo.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/pci/drm/ttm/ttm_bo.c b/sys/dev/pci/drm/ttm/ttm_bo.c index c840e7e26cc..d66b8341081 100644 --- a/sys/dev/pci/drm/ttm/ttm_bo.c +++ b/sys/dev/pci/drm/ttm/ttm_bo.c @@ -724,6 +724,8 @@ int ttm_mem_evict_first(struct ttm_device *bdev, ret = ttm_bo_evict(bo, ctx); if (locked) ttm_bo_unreserve(bo); + else + ttm_bo_move_to_lru_tail_unlocked(bo); ttm_bo_put(bo); return ret; -- 2.20.1