diff options
author | Anup Mahindre <amahindre@nvidia.com> | 2018-09-21 02:22:47 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-09-27 18:06:37 -0400 |
commit | 30b571e31c7f8ee26fc58864272bc7c7e083d377 (patch) | |
tree | 9c45ffa9c6df41880163884ebdbab57a9920d041 /drivers/gpu/nvgpu/gv11b/gr_gv11b.h | |
parent | f89ea110417e1c83cf21f495d6da7cdc8138a29f (diff) |
gpu: nvgpu: Add gv11b_gr_clear_sm_error_state
All chips were currently using gm20b_gr_clear_sm_error_state
It was wrong for chips based on volta and later as the implementation didn't
consider non pes-aware vsms mapping
Add new HAL implementation for clear_sm_error_state for volta based and later
chips to fix this.
Bug 200448172
Change-Id: I65988c8cbb35d13089ac628e8333d9a3b58e0eb1
Signed-off-by: Anup Mahindre <amahindre@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1837188
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gv11b/gr_gv11b.h')
-rw-r--r-- | drivers/gpu/nvgpu/gv11b/gr_gv11b.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h index 20377acf..2f765336 100644 --- a/drivers/gpu/nvgpu/gv11b/gr_gv11b.h +++ b/drivers/gpu/nvgpu/gv11b/gr_gv11b.h | |||
@@ -170,6 +170,8 @@ int gv11b_gr_set_sm_debug_mode(struct gk20a *g, | |||
170 | struct channel_gk20a *ch, u64 sms, bool enable); | 170 | struct channel_gk20a *ch, u64 sms, bool enable); |
171 | int gv11b_gr_record_sm_error_state(struct gk20a *g, u32 gpc, u32 tpc, u32 sm, | 171 | int gv11b_gr_record_sm_error_state(struct gk20a *g, u32 gpc, u32 tpc, u32 sm, |
172 | struct channel_gk20a *fault_ch); | 172 | struct channel_gk20a *fault_ch); |
173 | int gv11b_gr_clear_sm_error_state(struct gk20a *g, | ||
174 | struct channel_gk20a *ch, u32 sm_id); | ||
173 | void gv11b_gr_set_hww_esr_report_mask(struct gk20a *g); | 175 | void gv11b_gr_set_hww_esr_report_mask(struct gk20a *g); |
174 | bool gv11b_gr_sm_debugger_attached(struct gk20a *g); | 176 | bool gv11b_gr_sm_debugger_attached(struct gk20a *g); |
175 | void gv11b_gr_suspend_single_sm(struct gk20a *g, | 177 | void gv11b_gr_suspend_single_sm(struct gk20a *g, |