Skip to content

Commit a6f76dc

Browse files
ChristianKoenigAMDalexdeucher
authored andcommitted
drm/ttm: drop wait for idle in ttm_bo_move_buffer
That is unnecessary now. Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
1 parent 77dfc28 commit a6f76dc

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

drivers/gpu/drm/ttm/ttm_bo.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -996,20 +996,6 @@ static int ttm_bo_move_buffer(struct ttm_buffer_object *bo,
996996

997997
lockdep_assert_held(&bo->resv->lock.base);
998998

999-
/*
1000-
* Don't wait for the BO on initial allocation. This is important when
1001-
* the BO has an imported reservation object.
1002-
*/
1003-
if (bo->mem.mem_type != TTM_PL_SYSTEM || bo->ttm != NULL) {
1004-
/*
1005-
* FIXME: It's possible to pipeline buffer moves.
1006-
* Have the driver move function wait for idle when necessary,
1007-
* instead of doing it here.
1008-
*/
1009-
ret = ttm_bo_wait(bo, interruptible, no_wait_gpu);
1010-
if (ret)
1011-
return ret;
1012-
}
1013999
mem.num_pages = bo->num_pages;
10141000
mem.size = mem.num_pages << PAGE_SHIFT;
10151001
mem.page_alignment = bo->mem.page_alignment;

0 commit comments

Comments
 (0)