summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_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/vgpu/gp10b/vgpu_gr_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/vgpu/gp10b/vgpu_gr_gp10b.c')
-rw-r--r--drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c
index ab35dc67..86184336 100644
--- a/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c
+++ b/drivers/gpu/nvgpu/vgpu/gp10b/vgpu_gr_gp10b.c
@@ -43,7 +43,7 @@ int vgpu_gr_gp10b_alloc_gr_ctx(struct gk20a *g,
43 struct vgpu_priv_data *priv = vgpu_get_priv_data(g); 43 struct vgpu_priv_data *priv = vgpu_get_priv_data(g);
44 int err; 44 int err;
45 45
46 gk20a_dbg_fn(""); 46 nvgpu_log_fn(g, " ");
47 47
48 err = vgpu_gr_alloc_gr_ctx(g, gr_ctx, vm, class, flags); 48 err = vgpu_gr_alloc_gr_ctx(g, gr_ctx, vm, class, flags);
49 if (err) 49 if (err)
@@ -78,7 +78,7 @@ int vgpu_gr_gp10b_alloc_gr_ctx(struct gk20a *g,
78 } 78 }
79 } 79 }
80 80
81 gk20a_dbg_fn("done"); 81 nvgpu_log_fn(g, "done");
82 return err; 82 return err;
83 83
84fail: 84fail:
@@ -132,11 +132,11 @@ int vgpu_gr_gp10b_set_ctxsw_preemption_mode(struct gk20a *g,
132 132
133 attrib_cb_size = ALIGN(attrib_cb_size, 128); 133 attrib_cb_size = ALIGN(attrib_cb_size, 128);
134 134
135 gk20a_dbg_info("gfxp context preempt size=%d", 135 nvgpu_log_info(g, "gfxp context preempt size=%d",
136 g->gr.ctx_vars.preempt_image_size); 136 g->gr.ctx_vars.preempt_image_size);
137 gk20a_dbg_info("gfxp context spill size=%d", spill_size); 137 nvgpu_log_info(g, "gfxp context spill size=%d", spill_size);
138 gk20a_dbg_info("gfxp context pagepool size=%d", pagepool_size); 138 nvgpu_log_info(g, "gfxp context pagepool size=%d", pagepool_size);
139 gk20a_dbg_info("gfxp context attrib cb size=%d", 139 nvgpu_log_info(g, "gfxp context attrib cb size=%d",
140 attrib_cb_size); 140 attrib_cb_size);
141 141
142 err = gr_gp10b_alloc_buffer(vm, 142 err = gr_gp10b_alloc_buffer(vm,
@@ -293,7 +293,7 @@ int vgpu_gr_gp10b_init_ctx_state(struct gk20a *g)
293 struct vgpu_priv_data *priv = vgpu_get_priv_data(g); 293 struct vgpu_priv_data *priv = vgpu_get_priv_data(g);
294 int err; 294 int err;
295 295
296 gk20a_dbg_fn(""); 296 nvgpu_log_fn(g, " ");
297 297
298 err = vgpu_gr_init_ctx_state(g); 298 err = vgpu_gr_init_ctx_state(g);
299 if (err) 299 if (err)