]> 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)
committerChristian König <christian.koenig@amd.com>
Wed, 11 Jun 2025 11:14:43 +0000 (13:14 +0200)
commit4e16a9a00239db5d819197b9a00f70665951bf50
tree140028e3d3247b2fdebda73ba1e67eabf78643fb
parent6e3a1433fa41e9b321ff66253501ba22aad26c0f
drm/ttm: Should to return the evict error

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
drivers/gpu/drm/ttm/ttm_resource.c