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>
This commit is contained in:
Konsta Holtta
2018-05-17 14:01:36 +03:00
committed by mobile promotions
parent 6266a1210d
commit de67fb18fb
5 changed files with 4 additions and 15 deletions

View File

@@ -781,7 +781,7 @@ static int gk20a_cde_execute_buffer(struct gk20a_cde_ctx *cde_ctx,
}
return gk20a_submit_channel_gpfifo(cde_ctx->ch, gpfifo, NULL,
num_entries, flags, fence, fence_out, true,
num_entries, flags, fence, fence_out,
NULL);
}