Skip to contentSkip to conversation

drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move

PATCH In review Nirmoy Das 2 participants 2 messages May 3, 2021

Subsystems (3)
lore
Share & tools
lore

Nirmoy Das

author
#0 lore raw

PATCH 1/1 drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move

Use ttm_bo_move_null() instead of ttm_bo_assign_mem().

---
 drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c +1 -1
index 2dc031fe4a90..beaf42f84f03 100644
@@ -738,7 +738,7 @@ static int vmw_move(struct ttm_buffer_object *bo,
 
 	if (old_man->use_tt && new_man->use_tt) {
 		if (bo->mem.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);
Signature · 6 lines
2.31.1

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel
Reviewed-by on v1 1/1
#1 lore raw

Am 03.05.21 um 21:00 schrieb Nirmoy Das:

Quoted 3 lines

Use ttm_bo_move_null() instead of ttm_bo_assign_mem().

Quoted 9 lines
---
  drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c +0 -0
index 2dc031fe4a90..beaf42f84f03 100644

drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c static int vmw_move(struct ttm_buffer_object *bo, · line 744

Quoted 8 lines
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c +1 -1
@@ -738,7 +738,7 @@ static int vmw_move(struct ttm_buffer_object *bo,
 
  	if (old_man->use_tt && new_man->use_tt) {
  		if (bo->mem.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);

_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel