drm/ttm: split populate out from binding.
Drivers have to call populate themselves now before binding. Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20200915024007.67163-5-airlied@gmail.com
This commit is contained in:
@@ -260,7 +260,11 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
|
||||
goto out_err;
|
||||
|
||||
if (mem->mem_type != TTM_PL_SYSTEM) {
|
||||
ret = ttm_tt_bind(bdev, bo->ttm, mem, ctx);
|
||||
ret = ttm_tt_populate(bdev, bo->ttm, ctx);
|
||||
if (ret)
|
||||
goto out_err;
|
||||
|
||||
ret = ttm_tt_bind(bdev, bo->ttm, mem);
|
||||
if (ret)
|
||||
goto out_err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user