summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
diff options
context:
space:
mode:
authorTerje Bergstrom <tbergstrom@nvidia.com>2018-04-18 22:39:46 -0400
committermobile promotions <svcmobile_promotions@nvidia.com>2018-05-09 21:26:04 -0400
commitdd739fcb039d51606e9a5454ec0aab17bcb01965 (patch)
tree806ba8575d146367ad1be00086ca0cdae35a6b28 /drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
parent7e66f2a63d4855e763fa768047dfc32f6f96b771 (diff)
gpu: nvgpu: Remove gk20a_dbg* functions
Switch all logging to nvgpu_log*(). gk20a_dbg* macros are intentionally left there because of use from other repositories. Because the new functions do not work without a pointer to struct gk20a, and piping it just for logging is excessive, some log messages are deleted. Change-Id: I00e22e75fe4596a330bb0282ab4774b3639ee31e Signed-off-by: Terje Bergstrom <tbergstrom@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/1704148 Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'drivers/gpu/nvgpu/gp10b/ltc_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/gp10b/ltc_gp10b.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
index 71764a7c..f74ca8f3 100644
--- a/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
+++ b/drivers/gpu/nvgpu/gp10b/ltc_gp10b.c
@@ -41,7 +41,7 @@ int gp10b_determine_L2_size_bytes(struct gk20a *g)
41 u32 tmp; 41 u32 tmp;
42 int ret; 42 int ret;
43 43
44 gk20a_dbg_fn(""); 44 nvgpu_log_fn(g, " ");
45 45
46 tmp = gk20a_readl(g, ltc_ltc0_lts0_tstg_info_1_r()); 46 tmp = gk20a_readl(g, ltc_ltc0_lts0_tstg_info_1_r());
47 47
@@ -49,9 +49,9 @@ int gp10b_determine_L2_size_bytes(struct gk20a *g)
49 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(tmp)*1024 * 49 ltc_ltc0_lts0_tstg_info_1_slice_size_in_kb_v(tmp)*1024 *
50 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(tmp); 50 ltc_ltc0_lts0_tstg_info_1_slices_per_l2_v(tmp);
51 51
52 gk20a_dbg(gpu_dbg_info, "L2 size: %d\n", ret); 52 nvgpu_log(g, gpu_dbg_info, "L2 size: %d\n", ret);
53 53
54 gk20a_dbg_fn("done"); 54 nvgpu_log_fn(g, "done");
55 55
56 return ret; 56 return ret;
57} 57}
@@ -83,7 +83,7 @@ int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
83 83
84 int err; 84 int err;
85 85
86 gk20a_dbg_fn(""); 86 nvgpu_log_fn(g, " ");
87 87
88 if (max_comptag_lines == 0U) 88 if (max_comptag_lines == 0U)
89 return 0; 89 return 0;
@@ -109,11 +109,11 @@ int gp10b_ltc_init_comptags(struct gk20a *g, struct gr_gk20a *gr)
109 /* must be a multiple of 64KB */ 109 /* must be a multiple of 64KB */
110 compbit_backing_size = roundup(compbit_backing_size, 64*1024); 110 compbit_backing_size = roundup(compbit_backing_size, 64*1024);
111 111
112 gk20a_dbg_info("compbit backing store size : %d", 112 nvgpu_log_info(g, "compbit backing store size : %d",
113 compbit_backing_size); 113 compbit_backing_size);
114 gk20a_dbg_info("max comptag lines : %d", 114 nvgpu_log_info(g, "max comptag lines : %d",
115 max_comptag_lines); 115 max_comptag_lines);
116 gk20a_dbg_info("gobs_per_comptagline_per_slice: %d", 116 nvgpu_log_info(g, "gobs_per_comptagline_per_slice: %d",
117 gobs_per_comptagline_per_slice); 117 gobs_per_comptagline_per_slice);
118 118
119 err = nvgpu_ltc_alloc_cbc(g, compbit_backing_size); 119 err = nvgpu_ltc_alloc_cbc(g, compbit_backing_size);