drm/ttm: add context to driver move callback as well
Instead of passing the parameters manually. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Michel Dänzer <michel.daenzer@amd.com> Reviewed-by: Chunming Zhou <david1.zhou@amd.com> Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de> Tested-by: Michel Dänzer <michel.daenzer@amd.com> Acked-by: Felix Kuehling <Felix.Kuehling@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
83876c1bed
commit
2823f4f019
@@ -327,8 +327,7 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
|
||||
ret = ttm_bo_move_ttm(bo, ctx->interruptible,
|
||||
ctx->no_wait_gpu, mem);
|
||||
else if (bdev->driver->move)
|
||||
ret = bdev->driver->move(bo, evict, ctx->interruptible,
|
||||
ctx->no_wait_gpu, mem);
|
||||
ret = bdev->driver->move(bo, evict, ctx, mem);
|
||||
else
|
||||
ret = ttm_bo_move_memcpy(bo, ctx->interruptible,
|
||||
ctx->no_wait_gpu, mem);
|
||||
|
Reference in New Issue
Block a user