summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
index 75775d57..8869f4c4 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c
@@ -536,6 +536,21 @@ int gr_gk20a_enable_ctxsw(struct gk20a *g)
536 gr_fecs_method_push_adr_start_ctxsw_v(), NULL); 536 gr_fecs_method_push_adr_start_ctxsw_v(), NULL);
537} 537}
538 538
539int gr_gk20a_halt_pipe(struct gk20a *g)
540{
541 return gr_gk20a_submit_fecs_method_op(g,
542 (struct fecs_method_op_gk20a) {
543 .method.addr =
544 gr_fecs_method_push_adr_halt_pipeline_v(),
545 .method.data = ~0,
546 .mailbox = { .id = 1, /*sideband?*/
547 .data = ~0, .clr = ~0, .ret = 0,
548 .ok = gr_fecs_ctxsw_mailbox_value_pass_v(),
549 .fail = gr_fecs_ctxsw_mailbox_value_fail_v(), },
550 .cond.ok = GR_IS_UCODE_OP_EQUAL,
551 .cond.fail = GR_IS_UCODE_OP_EQUAL });
552}
553
539 554
540static int gr_gk20a_commit_inst(struct channel_gk20a *c, u64 gpu_va) 555static int gr_gk20a_commit_inst(struct channel_gk20a *c, u64 gpu_va)
541{ 556{