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/gv11b/fifo_gv11b.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'drivers/gpu/nvgpu/gv11b/fifo_gv11b.c') diff --git a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c index d8976608..11b393e5 100644 --- a/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c +++ b/drivers/gpu/nvgpu/gv11b/fifo_gv11b.c @@ -1306,7 +1306,8 @@ bool gv11b_fifo_handle_sched_error(struct gk20a *g) if (sched_error == SCHED_ERROR_CODE_BAD_TSG ) { /* id is unknown, preempt all runlists and do recovery */ - gk20a_fifo_recover(g, 0, 0, false, false, false); + gk20a_fifo_recover(g, 0, 0, false, false, false, + RC_TYPE_SCHED_ERR); } return false; @@ -1465,7 +1466,8 @@ bool gv11b_fifo_handle_ctxsw_timeout(struct gk20a *g, u32 fifo_intr) /* Cancel all channels' timeout */ gk20a_channel_timeout_restart_all_channels(g); gk20a_fifo_recover(g, BIT(active_eng_id), tsgid, - true, true, verbose); + true, true, verbose, + RC_TYPE_CTXSW_TIMEOUT); } else { gk20a_dbg_info( "fifo is waiting for ctx switch: " -- cgit v1.2.2