From ea59a46d6907c8370888fddcbec9dee8d7541c5c Mon Sep 17 00:00:00 2001 From: Seshendra Gadagottu Date: Wed, 27 Mar 2019 10:59:07 -0700 Subject: [PATCH] gpu: nvgpu: avoid log spew on each railgate Following log is getting printed with each rail gate: nvgpu: 17000000.gv11b gv11b_fifo_ctxsw_timeout_enable:83 [INFO] fifo_eng_ctxsw_timeout disabled val = 0x000186a0 Avoided this log spew by changing log filter from nvgpu_info to nvgpu_log_info. JIRA NVGPU-1312 Change-Id: I05976b8107391771e6938a4a45489228c8fa4046 Signed-off-by: Seshendra Gadagottu Reviewed-on: https://git-master.nvidia.com/r/2083046 Reviewed-by: svc-mobile-coverity Reviewed-by: svc-mobile-misra Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: svc-misra-checker GVS: Gerrit_Virtual_Submit Reviewed-by: Vinod Gopalakrishnakurup Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/hal/fifo/ctxsw_timeout_gv11b.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/nvgpu/hal/fifo/ctxsw_timeout_gv11b.c b/drivers/gpu/nvgpu/hal/fifo/ctxsw_timeout_gv11b.c index 5e632968d..b3a1dc7af 100644 --- a/drivers/gpu/nvgpu/hal/fifo/ctxsw_timeout_gv11b.c +++ b/drivers/gpu/nvgpu/hal/fifo/ctxsw_timeout_gv11b.c @@ -79,8 +79,9 @@ void gv11b_fifo_ctxsw_timeout_enable(struct gk20a *g, bool enable) fifo_eng_ctxsw_timeout_detection_disabled_f()); nvgpu_writel(g, fifo_eng_ctxsw_timeout_r(), timeout); timeout = nvgpu_readl(g, fifo_eng_ctxsw_timeout_r()); - nvgpu_info(g, "fifo_eng_ctxsw_timeout disabled val = 0x%08x", - timeout); + nvgpu_log_info(g, + "fifo_eng_ctxsw_timeout disabled val = 0x%08x", + timeout); /* clear ctxsw timeout interrupts */ nvgpu_writel(g, fifo_intr_ctxsw_timeout_r(), ~U32(0U)); }