summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
diff options
context:
space:
mode:
authorSeema Khowala <seemaj@nvidia.com>2018-12-04 13:41:19 -0500
committermobile promotions <svcmobile_promotions@nvidia.com>2018-12-29 02:51:36 -0500
commit8e2d0c7b3d98149fd753792f183e6a1ae9ebc456 (patch)
tree7c0b9016f6080bfe3c436d9c923edb221710cf0f /drivers/gpu/nvgpu/gp10b/gr_gp10b.c
parent0d110b75228251f9ac17058f6daa3523b5909691 (diff)
gpu: nvgpu: add handling for ctxsw_intr0
ctxsw_intr0 is triggered by ucode even if it is not enabled by driver. Add handling for processing ctxsw_intr0. fecs mailbox(6) is used to report fecs/gpccs misc error codes. Also dump falcon stats for unhandled fecs intr. Bug 2361571 Bug 200472922 Change-Id: Iefb3c0d46ad1d08db07fd3c08cff91a77835908c Signed-off-by: Seema Khowala <seemaj@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1966984 (cherry picked from commit 2c379cad0f6a01d07102898b362735a574f3aea8 in dev-kernel) Reviewed-on: https://git-master.nvidia.com/r/1979745 Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Debarshi Dutta <ddutta@nvidia.com> Tested-by: Debarshi Dutta <ddutta@nvidia.com> Reviewed-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/gr_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/gr_gp10b.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
index 913434ab..be1e2038 100644
--- a/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/gr_gp10b.c
@@ -1996,7 +1996,9 @@ int gr_gp10b_handle_fecs_error(struct gk20a *g,
1996 * INTR1 (bit 1 of the HOST_INT_STATUS_CTXSW_INTR) 1996 * INTR1 (bit 1 of the HOST_INT_STATUS_CTXSW_INTR)
1997 * indicates that a CILP ctxsw save has finished 1997 * indicates that a CILP ctxsw save has finished
1998 */ 1998 */
1999 if (gr_fecs_intr & gr_fecs_host_int_status_ctxsw_intr_f(2)) { 1999
2000 if ((gr_fecs_intr &
2001 gr_fecs_host_int_status_ctxsw_intr_f(CTXSW_INTR1)) != 0U) {
2000 nvgpu_log(g, gpu_dbg_fn | gpu_dbg_gpu_dbg | gpu_dbg_intr, 2002 nvgpu_log(g, gpu_dbg_fn | gpu_dbg_gpu_dbg | gpu_dbg_intr,
2001 "CILP: ctxsw save completed!\n"); 2003 "CILP: ctxsw save completed!\n");
2002 2004