diff options
author | Supriya <ssharatkumar@nvidia.com> | 2015-02-09 06:32:00 -0500 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2015-04-04 21:06:39 -0400 |
commit | 3d9a83eb5a59f12412b2f08ba88a32244fd195ca (patch) | |
tree | 048433e67db8475ba275e23d8c5257abfcc9e352 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |
parent | 50d5ed2eefd6c74bc8e5625c83763c7c92220dff (diff) |
gpu: nvgpu: gk20a: FECS HALT method
FECS halt method is used to do graceful FECS shutdown.
Bug 1551865
Change-Id: Iec8590e86cb09f9b54c36f85859208fc8650f6a6
Signed-off-by: Supriya <ssharatkumar@nvidia.com>
Reviewed-on: http://git-master/r/682459
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Tested-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 15 |
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 | ||
539 | int 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 | ||
540 | static int gr_gk20a_commit_inst(struct channel_gk20a *c, u64 gpu_va) | 555 | static int gr_gk20a_commit_inst(struct channel_gk20a *c, u64 gpu_va) |
541 | { | 556 | { |