projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fbbf23d
)
drm/vmwgfx: use ttm_bo_move_null() when there is nothing to move
author
Nirmoy Das
<nirmoy.das@amd.com>
Tue, 8 Jun 2021 18:13:06 +0000
(20:13 +0200)
committer
Christian König
<christian.koenig@amd.com>
Wed, 9 Jun 2021 07:10:22 +0000
(09:10 +0200)
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>
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
b/drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
index bfcf31bf7e37ba7223048cb722e185397fc29802..0488042fb287b1f35a2a6bd705a58729bbfc4783 100644
(file)
--- a/
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
+++ b/
drivers/gpu/drm/vmwgfx/vmwgfx_ttm_buffer.c
@@
-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);