diff options
author | Seema Khowala <seemaj@nvidia.com> | 2018-02-22 16:00:25 -0500 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-04 00:43:06 -0400 |
commit | c9463fdbb31324cc8eaa7fbed69f8d4b98ef38b5 (patch) | |
tree | c7b620761aff85eea584ed63573548fcd7d679c4 /drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |
parent | bf0379997799e7f83514e974cd02aaaab85a4101 (diff) |
gpu: nvgpu: add rc_type i/p param to gk20a_fifo_recover
Add below rc_types to be passed to gk20a_fifo_recover
MMU_FAULT
PBDMA_FAULT
GR_FAULT
PREEMPT_TIMEOUT
CTXSW_TIMEOUT
RUNLIST_UPDATE_TIMEOUT
FORCE_RESET
SCHED_ERR
This is nice to have to know what triggered recovery.
Bug 2065990
Change-Id: I202268c5f237be2180b438e8ba027fce684967b6
Signed-off-by: Seema Khowala <seemaj@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1662619
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c index d26d8a93..86111321 100644 --- a/drivers/gpu/nvgpu/gk20a/gr_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/gr_gk20a.c | |||
@@ -6088,13 +6088,16 @@ int gk20a_gr_isr(struct gk20a *g) | |||
6088 | if (need_reset) { | 6088 | if (need_reset) { |
6089 | if (tsgid != NVGPU_INVALID_TSG_ID) | 6089 | if (tsgid != NVGPU_INVALID_TSG_ID) |
6090 | gk20a_fifo_recover(g, gr_engine_id, | 6090 | gk20a_fifo_recover(g, gr_engine_id, |
6091 | tsgid, true, true, true); | 6091 | tsgid, true, true, true, |
6092 | RC_TYPE_GR_FAULT); | ||
6092 | else if (ch) | 6093 | else if (ch) |
6093 | gk20a_fifo_recover(g, gr_engine_id, | 6094 | gk20a_fifo_recover(g, gr_engine_id, |
6094 | ch->chid, false, true, true); | 6095 | ch->chid, false, true, true, |
6096 | RC_TYPE_GR_FAULT); | ||
6095 | else | 6097 | else |
6096 | gk20a_fifo_recover(g, gr_engine_id, | 6098 | gk20a_fifo_recover(g, gr_engine_id, |
6097 | 0, false, false, true); | 6099 | 0, false, false, true, |
6100 | RC_TYPE_GR_FAULT); | ||
6098 | } | 6101 | } |
6099 | 6102 | ||
6100 | if (gr_intr && !ch) { | 6103 | if (gr_intr && !ch) { |