Skip to content

Commit

Permalink
drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move
Browse files Browse the repository at this point in the history
Use ttm_bo_move_null() instead of ttm_bo_assign_mem().

Signed-off-by: Nirmoy Das <nirmoy.das@amd.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20210608181306.90008-1-nirmoy.das@amd.com
Signed-off-by: Christian König <christian.koenig@amd.com>
  • Loading branch information
Nirmoy Das authored and Christian König committed Jun 9, 2021
1 parent fbbf23d commit 5b7a2c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -733,7 +733,7 @@ static int vmw_move(struct ttm_buffer_object *bo,

if (old_man->use_tt && new_man->use_tt) {
if (bo->resource->mem_type == TTM_PL_SYSTEM) {
ttm_bo_assign_mem(bo, new_mem);
ttm_bo_move_null(bo, new_mem);
return 0;
}
ret = ttm_bo_wait_ctx(bo, ctx);
Expand Down

0 comments on commit 5b7a2c9

Please sign in to comment.