From f0a455eab4b585db59b8b0bfd23e0d2e3c9755a2 Mon Sep 17 00:00:00 2001 From: Rajesh Devaraj Date: Tue, 9 Jun 2020 12:22:42 +0530 Subject: [PATCH] gpu: nvgpu: update write to ltc ecc status reg This patch changes "nvgpu_writel_check" to "nvgpu_writel" for the write operation on ltc_ltc0_lts0_l2_cache_ecc_status_r() register with ltc_ltc0_lts0_l2_cache_ecc_status_reset_task_f(). This is required because the read operation will always return 0 for the register field ltc_ltc0_lts0_l2_cache_ecc_status_reset_task_f() according to the ref manual dev_ltc.ref. Bug 2975438 JIRA NVGPU-5635 Change-Id: I898bdcb1ca15af62279c43426aca8ec68ed5ba05 Signed-off-by: Rajesh Devaraj Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2357792 Reviewed-by: automaticguardword Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: svc-mobile-cert Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions Tested-by: mobile promotions GVS: Gerrit_Virtual_Submit --- drivers/gpu/nvgpu/hal/ltc/intr/ltc_intr_gv11b_fusa.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/nvgpu/hal/ltc/intr/ltc_intr_gv11b_fusa.c b/drivers/gpu/nvgpu/hal/ltc/intr/ltc_intr_gv11b_fusa.c index 45a1e8100..63beaccd1 100644 --- a/drivers/gpu/nvgpu/hal/ltc/intr/ltc_intr_gv11b_fusa.c +++ b/drivers/gpu/nvgpu/hal/ltc/intr/ltc_intr_gv11b_fusa.c @@ -245,7 +245,7 @@ static void gv11b_ltc_intr_handle_lts_interrupts(struct gk20a *g, corrected_delta, corrected_overflow, uncorrected_delta, uncorrected_overflow, offset); - nvgpu_writel_check(g, + nvgpu_writel(g, nvgpu_safe_add_u32( ltc_ltc0_lts0_l2_cache_ecc_status_r(), offset), ltc_ltc0_lts0_l2_cache_ecc_status_reset_task_f());