summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/gp106/gr_gp106.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/gp106/gr_gp106.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/gp106/gr_gp106.c')
-rw-r--r--drivers/gpu/nvgpu/gp106/gr_gp106.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/gp106/gr_gp106.c b/drivers/gpu/nvgpu/gp106/gr_gp106.c
index 1bd24b45..2e5f29ee 100644
--- a/drivers/gpu/nvgpu/gp106/gr_gp106.c
+++ b/drivers/gpu/nvgpu/gp106/gr_gp106.c
@@ -58,7 +58,7 @@ bool gr_gp106_is_valid_class(struct gk20a *g, u32 class_num)
58 default: 58 default:
59 break; 59 break;
60 } 60 }
61 gk20a_dbg_info("class=0x%x valid=%d", class_num, valid); 61 nvgpu_log_info(g, "class=0x%x valid=%d", class_num, valid);
62 return valid; 62 return valid;
63} 63}
64 64
@@ -75,7 +75,7 @@ static void gr_gp106_set_go_idle_timeout(struct gk20a *g, u32 data)
75int gr_gp106_handle_sw_method(struct gk20a *g, u32 addr, 75int gr_gp106_handle_sw_method(struct gk20a *g, u32 addr,
76 u32 class_num, u32 offset, u32 data) 76 u32 class_num, u32 offset, u32 data)
77{ 77{
78 gk20a_dbg_fn(""); 78 nvgpu_log_fn(g, " ");
79 79
80 if (class_num == PASCAL_COMPUTE_B) { 80 if (class_num == PASCAL_COMPUTE_B) {
81 switch (offset << 2) { 81 switch (offset << 2) {
@@ -177,9 +177,9 @@ int gr_gp106_set_ctxsw_preemption_mode(struct gk20a *g,
177 g->gr.max_tpc_count; 177 g->gr.max_tpc_count;
178 attrib_cb_size = ALIGN(attrib_cb_size, 128); 178 attrib_cb_size = ALIGN(attrib_cb_size, 128);
179 179
180 gk20a_dbg_info("gfxp context spill_size=%d", spill_size); 180 nvgpu_log_info(g, "gfxp context spill_size=%d", spill_size);
181 gk20a_dbg_info("gfxp context pagepool_size=%d", pagepool_size); 181 nvgpu_log_info(g, "gfxp context pagepool_size=%d", pagepool_size);
182 gk20a_dbg_info("gfxp context attrib_cb_size=%d", 182 nvgpu_log_info(g, "gfxp context attrib_cb_size=%d",
183 attrib_cb_size); 183 attrib_cb_size);
184 184
185 err = gr_gp10b_alloc_buffer(vm, 185 err = gr_gp10b_alloc_buffer(vm,