Skip to content

Commit 4e16a9a

Browse files
EmilyDeng666ChristianKoenigAMD
authored andcommitted
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 <[email protected]> Reviewed-by: Christian König <[email protected]> Signed-off-by: Christian König <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 6e3a143 commit 4e16a9a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

drivers/gpu/drm/ttm/ttm_resource.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,9 @@ int ttm_resource_manager_evict_all(struct ttm_device *bdev,
557557
cond_resched();
558558
} while (!ret);
559559

560+
if (ret && ret != -ENOENT)
561+
return ret;
562+
560563
spin_lock(&man->move_lock);
561564
fence = dma_fence_get(man->move);
562565
spin_unlock(&man->move_lock);

0 commit comments

Comments
 (0)