|
@@ -45,7 +45,7 @@ void ttm_bo_free_old_node(struct ttm_buffer_object *bo)
|
|
|
}
|
|
|
|
|
|
int ttm_bo_move_ttm(struct ttm_buffer_object *bo,
|
|
|
- bool interruptible, bool no_wait_gpu,
|
|
|
+ struct ttm_operation_ctx *ctx,
|
|
|
struct ttm_mem_reg *new_mem)
|
|
|
{
|
|
|
struct ttm_tt *ttm = bo->ttm;
|
|
@@ -53,7 +53,7 @@ int ttm_bo_move_ttm(struct ttm_buffer_object *bo,
|
|
|
int ret;
|
|
|
|
|
|
if (old_mem->mem_type != TTM_PL_SYSTEM) {
|
|
|
- ret = ttm_bo_wait(bo, interruptible, no_wait_gpu);
|
|
|
+ ret = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
|
|
|
|
|
|
if (unlikely(ret != 0)) {
|
|
|
if (ret != -ERESTARTSYS)
|
|
@@ -329,7 +329,7 @@ static int ttm_copy_ttm_io_page(struct ttm_tt *ttm, void *dst,
|
|
|
}
|
|
|
|
|
|
int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
|
|
|
- bool interruptible, bool no_wait_gpu,
|
|
|
+ struct ttm_operation_ctx *ctx,
|
|
|
struct ttm_mem_reg *new_mem)
|
|
|
{
|
|
|
struct ttm_bo_device *bdev = bo->bdev;
|
|
@@ -345,7 +345,7 @@ int ttm_bo_move_memcpy(struct ttm_buffer_object *bo,
|
|
|
unsigned long add = 0;
|
|
|
int dir;
|
|
|
|
|
|
- ret = ttm_bo_wait(bo, interruptible, no_wait_gpu);
|
|
|
+ ret = ttm_bo_wait(bo, ctx->interruptible, ctx->no_wait_gpu);
|
|
|
if (ret)
|
|
|
return ret;
|
|
|
|