From c9463fdbb31324cc8eaa7fbed69f8d4b98ef38b5 Mon Sep 17 00:00:00 2001 From: Seema Khowala Date: Thu, 22 Feb 2018 13:00:25 -0800 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1662619 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/gk20a/gr_gk20a.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'drivers/gpu/nvgpu/gk20a/gr_gk20a.c') 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) if (need_reset) { if (tsgid != NVGPU_INVALID_TSG_ID) gk20a_fifo_recover(g, gr_engine_id, - tsgid, true, true, true); + tsgid, true, true, true, + RC_TYPE_GR_FAULT); else if (ch) gk20a_fifo_recover(g, gr_engine_id, - ch->chid, false, true, true); + ch->chid, false, true, true, + RC_TYPE_GR_FAULT); else gk20a_fifo_recover(g, gr_engine_id, - 0, false, false, true); + 0, false, false, true, + RC_TYPE_GR_FAULT); } if (gr_intr && !ch) { -- cgit v1.2.2