summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
diff options
context:
space:
mode:
authorsujeet baranwal <sbaranwal@nvidia.com>2014-09-30 13:54:57 -0400
committerDan Willemsen <dwillemsen@nvidia.com>2015-03-18 15:11:57 -0400
commit5febd08ae76cbd4042e53ad70f062cd491b7e8b6 (patch)
tree3815d03eaab78e1d249a8fafeec32a312ddc9de7 /drivers/gpu/nvgpu/gk20a/gr_gk20a.h
parent3d313d06570dcb28bba73247a2c0fc52bec56af0 (diff)
gpu: kernel support for suspending/resuming SMs
Kernel support for allowing a GPU debugger to suspend and resume SMs. Invocation of "suspend" on a given channel will suspend all SMs if the channel is resident, else remove the channel form the runlist. Similarly, "resume" will either resume all SMs if the channel was resident, or re-enable the channel in the runlist. Change-Id: I3b4ae21dc1b91c1059c828ec6db8125f8a0ce194 Signed-off-by: sujeet baranwal <sbaranwal@nvidia.com> Signed-off-by: Mayank Kaushik <mkaushik@nvidia.com> Reviewed-on: http://git-master/r/552115 GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.h')
-rw-r--r--drivers/gpu/nvgpu/gk20a/gr_gk20a.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
index 4b1f6de2..72642a41 100644
--- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
+++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h
@@ -449,4 +449,11 @@ void gr_gk20a_load_ctxsw_ucode_boot(struct gk20a *g, u64 addr_base,
449 449
450 450
451void gr_gk20a_free_tsg_gr_ctx(struct tsg_gk20a *c); 451void gr_gk20a_free_tsg_gr_ctx(struct tsg_gk20a *c);
452#endif /* GR_GK20A_H */ 452int gr_gk20a_disable_ctxsw(struct gk20a *g);
453int gr_gk20a_enable_ctxsw(struct gk20a *g);
454void gk20a_resume_all_sms(struct gk20a *g);
455void gk20a_suspend_all_sms(struct gk20a *g);
456int gk20a_gr_lock_down_sm(struct gk20a *g,
457 u32 gpc, u32 tpc, u32 global_esr_mask);
458bool gk20a_is_channel_ctx_resident(struct channel_gk20a *ch);
459#endif /*__GR_GK20A_H__*/