Commit 6cd2e71e authored by Christian König's avatar Christian König Committed by Alex Deucher
Browse files

drm/ttm: add number of bytes moved to the operation context

parent 2823f4f0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -361,6 +361,7 @@ static int ttm_bo_handle_move_mem(struct ttm_buffer_object *bo,
	else
		bo->offset = 0;

	ctx->bytes_moved += bo->num_pages << PAGE_SHIFT;
	return 0;

out_err:
+1 −0
Original line number Diff line number Diff line
@@ -270,6 +270,7 @@ struct ttm_bo_kmap_obj {
struct ttm_operation_ctx {
	bool interruptible;
	bool no_wait_gpu;
	uint64_t bytes_moved;
};

/**