From a53ebf02d1bed568e13865cb2a525529338c628b Mon Sep 17 00:00:00 2001 From: Debarshi Dutta Date: Tue, 17 Aug 2021 15:40:55 +0530 Subject: [PATCH] gpu: nvgpu: update error message to info. These errors are now actually expected from code that counts number of sys/gpc/fbp perfmons after first context creation. Nvgpu tries to count them by register offset lookup in context image and counts perfmons until invalid offset is found. nvgpu_gr_hwmp_map_find_priv_offset no longer prints an error message. The correct error condition is moved to gr_exec_reg_ops Bug 200755537 Change-Id: Ib5c6ccd39275b2b06e3f8bce4878a3234478a780 Signed-off-by: Debarshi Dutta Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2586228 Tested-by: mobile promotions Reviewed-by: svcacv Reviewed-by: Deepak Nibade Reviewed-by: mobile promotions --- drivers/gpu/nvgpu/common/gr/hwpm_map.c | 1 - drivers/gpu/nvgpu/hal/gr/gr/gr_gk20a.c | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/gpu/nvgpu/common/gr/hwpm_map.c b/drivers/gpu/nvgpu/common/gr/hwpm_map.c index 8344bb101..4825a0528 100644 --- a/drivers/gpu/nvgpu/common/gr/hwpm_map.c +++ b/drivers/gpu/nvgpu/common/gr/hwpm_map.c @@ -607,7 +607,6 @@ int nvgpu_gr_hwmp_map_find_priv_offset(struct gk20a *g, if (result != NULL) { *priv_offset = result->offset; } else { - nvgpu_err(g, "Lookup failed for address 0x%x", addr); err = -EINVAL; } diff --git a/drivers/gpu/nvgpu/hal/gr/gr/gr_gk20a.c b/drivers/gpu/nvgpu/hal/gr/gr/gr_gk20a.c index bc0352b24..b1e1411a7 100644 --- a/drivers/gpu/nvgpu/hal/gr/gr/gr_gk20a.c +++ b/drivers/gpu/nvgpu/hal/gr/gr/gr_gk20a.c @@ -1532,8 +1532,7 @@ static int gr_exec_ctx_ops(struct nvgpu_tsg *tsg, offsets, offset_addrs, &num_offsets); if (err != 0) { - nvgpu_log(g, gpu_dbg_gpu_dbg, - "ctx op invalid offset: offset=0x%x", + nvgpu_err(g, "ctx op invalid offset: offset=0x%x", ctx_ops[i].offset); ctx_ops[i].status = REGOP(STATUS_INVALID_OFFSET);