From adb62e816e38189eb82391244eb6763f8c817ea4 Mon Sep 17 00:00:00 2001 From: Deepak Nibade Date: Tue, 9 Oct 2018 20:12:26 +0530 Subject: [PATCH] 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 Reviewed-on: https://git-master.nvidia.com/r/1922777 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Terje Bergstrom Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index 1db2b6e1a..fba878d49 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c @@ -6160,7 +6160,7 @@ int gk20a_gr_isr(struct gk20a *g) } /* 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); }