]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/ttm: never consider pinned BOs for eviction&swap
authorChristian König <christian.koenig@amd.com>
Fri, 7 Jul 2023 09:25:00 +0000 (11:25 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 3 Aug 2023 08:22:29 +0000 (10:22 +0200)
commitda60170558b956c1b45dee1c4423da2425037426
tree1b0acfde3199b51522d32112f376e67f3a05b76f
parentc556573e4bb16bb6d152b521caa2b29ef65b88bb
drm/ttm: never consider pinned BOs for eviction&swap

[ Upstream commit a2848d08742c8e8494675892c02c0d22acbe3cf8 ]

There is a small window where we have already incremented the pin count
but not yet moved the bo from the lru to the pinned list.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reported-by: Pelloux-Prayer, Pierre-Eric <Pierre-eric.Pelloux-prayer@amd.com>
Tested-by: Pelloux-Prayer, Pierre-Eric <Pierre-eric.Pelloux-prayer@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Link: https://patchwork.freedesktop.org/patch/msgid/20230707120826.3701-1-christian.koenig@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/ttm/ttm_bo.c