From 3c08a91de8cf4b2eb613e7666b39e71961a9cc0a Mon Sep 17 00:00:00 2001 From: Rajesh Devaraj Date: Tue, 9 Apr 2019 23:30:27 +0530 Subject: [PATCH] gpu: nvgpu: Update report_error callback for GCC In report_error callback related to GCC, replace tpc id with 0 to avoid the checking of tpc id at iGPU SDL testapp. This is because the tpc info passed could be an invalid one. Jira NVGPU-3087 Change-Id: I360d9e2ee3e1cf1296cf3a97d05d71e3478b8229 Signed-off-by: Rajesh Devaraj Reviewed-on: https://git-master.nvidia.com/r/2093562 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: Alex Waterman Reviewed-by: svc-misra-checker Reviewed-by: Raghuram Kothakota Reviewed-by: Automatic_Commit_Validation_User GVS: Gerrit_Virtual_Submit Reviewed-by: Ankur Kishore Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/hal/gr/intr/gr_intr_gv11b.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/hal/gr/intr/gr_intr_gv11b.c b/drivers/gpu/nvgpu/hal/gr/intr/gr_intr_gv11b.c index b7f0b41fc..b8e19a2ca 100644 --- a/drivers/gpu/nvgpu/hal/gr/intr/gr_intr_gv11b.c +++ b/drivers/gpu/nvgpu/hal/gr/intr/gr_intr_gv11b.c @@ -95,7 +95,7 @@ void gv11b_gr_intr_handle_gcc_exception(struct gk20a *g, u32 gpc, ); } *corrected_err += gcc_l15_corrected_err_count_delta; - nvgpu_gr_report_ecc_error(g, NVGPU_ERR_MODULE_GCC, gpc, tpc, + nvgpu_gr_report_ecc_error(g, NVGPU_ERR_MODULE_GCC, gpc, 0, GPU_GCC_L15_ECC_CORRECTED, 0, *corrected_err); nvgpu_writel(g, @@ -117,7 +117,7 @@ void gv11b_gr_intr_handle_gcc_exception(struct gk20a *g, u32 gpc, ); } *uncorrected_err += gcc_l15_uncorrected_err_count_delta; - nvgpu_gr_report_ecc_error(g, NVGPU_ERR_MODULE_GCC, gpc, tpc, + nvgpu_gr_report_ecc_error(g, NVGPU_ERR_MODULE_GCC, gpc, 0, GPU_GCC_L15_ECC_UNCORRECTED, 0, *uncorrected_err); nvgpu_writel(g,