]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/ttm: Should to return the evict error
authorEmily Deng <Emily.Deng@amd.com>
Tue, 3 Jun 2025 09:11:54 +0000 (17:11 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Aug 2025 16:41:19 +0000 (18:41 +0200)
commit9d3f09f975ac2baba8c58784ac39ceec63c08ee7
tree957368c1f646ff54a0532473d92d205db2e3d4fc
parentb72513af02500b6ecd5b67ed1fdb495d023ebbd3
drm/ttm: Should to return the evict error

[ Upstream commit 4e16a9a00239db5d819197b9a00f70665951bf50 ]

For the evict fail case, the evict error should be returned.

v2: Consider ENOENT case.

v3: Abort directly when the eviction failed for some reason (except for -ENOENT)
 and not wait for the move to finish

Signed-off-by: Emily Deng <Emily.Deng@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Christian König <christian.koenig@amd.com>
Link: https://lore.kernel.org/r/20250603091154.3472646-1-Emily.Deng@amd.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/ttm/ttm_resource.c