summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/ce2.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ce2.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/ce2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ce2.c b/drivers/gpu/nvgpu/common/linux/ce2.c
index 5127a32b..5f89ef7b 100644
--- a/drivers/gpu/nvgpu/common/linux/ce2.c
+++ b/drivers/gpu/nvgpu/common/linux/ce2.c
@@ -54,10 +54,10 @@ int gk20a_ce_execute_ops(struct gk20a *g,
54 u32 methodSize; 54 u32 methodSize;
55 u32 cmd_buf_read_offset; 55 u32 cmd_buf_read_offset;
56 u32 fence_index; 56 u32 fence_index;
57 u32 dma_copy_class;
57 struct nvgpu_gpfifo gpfifo; 58 struct nvgpu_gpfifo gpfifo;
58 struct nvgpu_fence fence = {0,0}; 59 struct nvgpu_fence fence = {0,0};
59 struct gk20a_fence *ce_cmd_buf_fence_out = NULL; 60 struct gk20a_fence *ce_cmd_buf_fence_out = NULL;
60 struct nvgpu_gpu_characteristics *gpu_capability = &g->gpu_characteristics;
61 61
62 if (!ce_app->initialised ||ce_app->app_state != NVGPU_CE_ACTIVE) 62 if (!ce_app->initialised ||ce_app->app_state != NVGPU_CE_ACTIVE)
63 goto end; 63 goto end;
@@ -124,6 +124,7 @@ int gk20a_ce_execute_ops(struct gk20a *g,
124 124
125 cmd_buf_gpu_va = (ce_ctx->cmd_buf_mem.gpu_va + (u64)(cmd_buf_read_offset *sizeof(u32))); 125 cmd_buf_gpu_va = (ce_ctx->cmd_buf_mem.gpu_va + (u64)(cmd_buf_read_offset *sizeof(u32)));
126 126
127 dma_copy_class = g->ops.get_litter_value(g, GPU_LIT_DMA_COPY_CLASS);
127 methodSize = gk20a_ce_prepare_submit(src_buf, 128 methodSize = gk20a_ce_prepare_submit(src_buf,
128 dst_buf, 129 dst_buf,
129 size, 130 size,
@@ -132,7 +133,7 @@ int gk20a_ce_execute_ops(struct gk20a *g,
132 payload, 133 payload,
133 gk20a_get_valid_launch_flags(g, launch_flags), 134 gk20a_get_valid_launch_flags(g, launch_flags),
134 request_operation, 135 request_operation,
135 gpu_capability->dma_copy_class, 136 dma_copy_class,
136 gk20a_fence_in); 137 gk20a_fence_in);
137 138
138 if (methodSize) { 139 if (methodSize) {