diff options
author | Konsta Holtta <kholtta@nvidia.com> | 2018-05-17 07:01:36 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-18 17:05:30 -0400 |
commit | de67fb18fb639b7a605c77eeb2e1c639a8a3d67e (patch) | |
tree | f435a0f82f0e08d911c04f43ff91141f0b7471aa /drivers/gpu/nvgpu/common/linux/ce2.c | |
parent | 6266a1210d9fa36916e7469a0107b73a076b43a1 (diff) |
gpu: nvgpu: drop force_need_sync_fence in submit path
For CDE work a sync fence is always requested, but kernel does not need
it and submit flags from userspace will be passed to the submit function
in cde path so a sync fence will get created if necessary. To reduce
some complexity, remove the explicit boolean in favor of just
NVGPU_SUBMIT_FLAGS_SYNC_FENCE.
Jira NVGPU-705
Change-Id: I8aac85288513ed7cc640acd021d892cee86f41d8
Signed-off-by: Konsta Holtta <kholtta@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1721785
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/ce2.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/ce2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/ce2.c b/drivers/gpu/nvgpu/common/linux/ce2.c index a2ab22ff..165f33db 100644 --- a/drivers/gpu/nvgpu/common/linux/ce2.c +++ b/drivers/gpu/nvgpu/common/linux/ce2.c | |||
@@ -132,7 +132,7 @@ int gk20a_ce_execute_ops(struct gk20a *g, | |||
132 | 132 | ||
133 | ret = gk20a_submit_channel_gpfifo(ce_ctx->ch, &gpfifo, NULL, | 133 | ret = gk20a_submit_channel_gpfifo(ce_ctx->ch, &gpfifo, NULL, |
134 | 1, submit_flags, &fence, | 134 | 1, submit_flags, &fence, |
135 | &ce_cmd_buf_fence_out, false, NULL); | 135 | &ce_cmd_buf_fence_out, NULL); |
136 | 136 | ||
137 | if (!ret) { | 137 | if (!ret) { |
138 | ce_ctx->postfences[ce_ctx->cmd_buf_read_queue_offset] = | 138 | ce_ctx->postfences[ce_ctx->cmd_buf_read_queue_offset] = |