gpu: nvgpu: skip posting BPT events in case of recovery

In gk20a_gr_isr() we right now post BPT events irrespective of if
recovery was triggered or not
But posting of these events is not necessary in case we've triggered
recovery. These events are needed for debugger use cases where we
don't recover after hitting SM exceptions.

Fix this by skipping gk20a_gr_post_bpt_events() call in case recovery
was triggered

Bug 200456343

Change-Id: I726d46228baccd6b298eefd5a27618d42bbbd494
Signed-off-by: Deepak Nibade <dnibade@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1922777
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Terje Bergstrom <tbergstrom@nvidia.com>
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
Deepak Nibade
2018-10-09 20:12:26 +05:30
committed by mobile promotions
parent c94643155e
commit adb62e816e

View File

@@ -6160,7 +6160,7 @@ int gk20a_gr_isr(struct gk20a *g)
} }
/* Posting of BPT events should be the last thing in this function */ /* Posting of BPT events should be the last thing in this function */
if ((global_esr != 0U) && (tsg != NULL)) { if ((global_esr != 0U) && (tsg != NULL) && (need_reset == false)) {
gk20a_gr_post_bpt_events(g, tsg, global_esr); gk20a_gr_post_bpt_events(g, tsg, global_esr);
} }