diff options
author | Deepak Nibade <dnibade@nvidia.com> | 2015-12-18 01:53:05 -0500 |
---|---|---|
committer | Sachin Nikam <snikam@nvidia.com> | 2016-01-13 01:59:24 -0500 |
commit | 4bc0a42f32f16b2050b9f190909d0d5df4d80e44 (patch) | |
tree | 6b2d449853a518746980e0ba348f7fb17348957c /drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |
parent | ca76b336b32dce2e57034fbd44a273c539f67a54 (diff) |
gpu: nvgpu: APIs to suspend/resume single SM
Add below APIs to suspend or resume single SM :
gk20a_suspend_single_sm()
gk20a_resume_single_sm()
Also, update gk20a_suspend_all_sms() to make it
more generic by passing global_esr_mask and
check_errors flag as parameter
Bug 200156699
Change-Id: If40f4bcae74a8132673b4dca10b7d9898f23c164
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: http://git-master/r/925884
Reviewed-by: Automatic_Commit_Validation_User
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.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h index 9fc45ec0..29c2dcf6 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.h +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.h | |||
@@ -498,8 +498,14 @@ void gr_gk20a_load_ctxsw_ucode_boot(struct gk20a *g, u64 addr_base, | |||
498 | void gr_gk20a_free_tsg_gr_ctx(struct tsg_gk20a *c); | 498 | void gr_gk20a_free_tsg_gr_ctx(struct tsg_gk20a *c); |
499 | int gr_gk20a_disable_ctxsw(struct gk20a *g); | 499 | int gr_gk20a_disable_ctxsw(struct gk20a *g); |
500 | int gr_gk20a_enable_ctxsw(struct gk20a *g); | 500 | int gr_gk20a_enable_ctxsw(struct gk20a *g); |
501 | void gk20a_resume_single_sm(struct gk20a *g, | ||
502 | u32 gpc, u32 tpc); | ||
501 | void gk20a_resume_all_sms(struct gk20a *g); | 503 | void gk20a_resume_all_sms(struct gk20a *g); |
502 | void gk20a_suspend_all_sms(struct gk20a *g); | 504 | void gk20a_suspend_single_sm(struct gk20a *g, |
505 | u32 gpc, u32 tpc, | ||
506 | u32 global_esr_mask, bool check_errors); | ||
507 | void gk20a_suspend_all_sms(struct gk20a *g, | ||
508 | u32 global_esr_mask, bool check_errors); | ||
503 | int gk20a_gr_lock_down_sm(struct gk20a *g, | 509 | int gk20a_gr_lock_down_sm(struct gk20a *g, |
504 | u32 gpc, u32 tpc, u32 global_esr_mask); | 510 | u32 gpc, u32 tpc, u32 global_esr_mask); |
505 | bool gk20a_is_channel_ctx_resident(struct channel_gk20a *ch); | 511 | bool gk20a_is_channel_ctx_resident(struct channel_gk20a *ch); |