diff options
author | Terje Bergstrom <tbergstrom@nvidia.com> | 2018-04-18 22:39:46 -0400 |
---|---|---|
committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-09 21:26:04 -0400 |
commit | dd739fcb039d51606e9a5454ec0aab17bcb01965 (patch) | |
tree | 806ba8575d146367ad1be00086ca0cdae35a6b28 /drivers/gpu/nvgpu/clk/clk_vf_point.c | |
parent | 7e66f2a63d4855e763fa768047dfc32f6f96b771 (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/clk/clk_vf_point.c')
-rw-r--r-- | drivers/gpu/nvgpu/clk/clk_vf_point.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/drivers/gpu/nvgpu/clk/clk_vf_point.c b/drivers/gpu/nvgpu/clk/clk_vf_point.c index 8333b2b0..b459c012 100644 --- a/drivers/gpu/nvgpu/clk/clk_vf_point.c +++ b/drivers/gpu/nvgpu/clk/clk_vf_point.c | |||
@@ -59,7 +59,7 @@ static u32 _clk_vf_points_pmudata_instget(struct gk20a *g, | |||
59 | (struct nv_pmu_clk_clk_vf_point_boardobj_grp_set *) | 59 | (struct nv_pmu_clk_clk_vf_point_boardobj_grp_set *) |
60 | pmuboardobjgrp; | 60 | pmuboardobjgrp; |
61 | 61 | ||
62 | gk20a_dbg_info(""); | 62 | nvgpu_log_info(g, " "); |
63 | 63 | ||
64 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ | 64 | /*check whether pmuboardobjgrp has a valid boardobj in index*/ |
65 | if (idx >= CTRL_BOARDOBJGRP_E255_MAX_OBJECTS) | 65 | if (idx >= CTRL_BOARDOBJGRP_E255_MAX_OBJECTS) |
@@ -67,7 +67,7 @@ static u32 _clk_vf_points_pmudata_instget(struct gk20a *g, | |||
67 | 67 | ||
68 | *ppboardobjpmudata = (struct nv_pmu_boardobj *) | 68 | *ppboardobjpmudata = (struct nv_pmu_boardobj *) |
69 | &pgrp_set->objects[idx].data.board_obj; | 69 | &pgrp_set->objects[idx].data.board_obj; |
70 | gk20a_dbg_info(" Done"); | 70 | nvgpu_log_info(g, " Done"); |
71 | return 0; | 71 | return 0; |
72 | } | 72 | } |
73 | 73 | ||
@@ -94,7 +94,7 @@ u32 clk_vf_point_sw_setup(struct gk20a *g) | |||
94 | u32 status; | 94 | u32 status; |
95 | struct boardobjgrp *pboardobjgrp = NULL; | 95 | struct boardobjgrp *pboardobjgrp = NULL; |
96 | 96 | ||
97 | gk20a_dbg_info(""); | 97 | nvgpu_log_info(g, " "); |
98 | 98 | ||
99 | status = boardobjgrpconstruct_e255(g, &g->clk_pmu.clk_vf_pointobjs.super); | 99 | status = boardobjgrpconstruct_e255(g, &g->clk_pmu.clk_vf_pointobjs.super); |
100 | if (status) { | 100 | if (status) { |
@@ -132,7 +132,7 @@ u32 clk_vf_point_sw_setup(struct gk20a *g) | |||
132 | pboardobjgrp->pmustatusinstget = _clk_vf_points_pmustatus_instget; | 132 | pboardobjgrp->pmustatusinstget = _clk_vf_points_pmustatus_instget; |
133 | 133 | ||
134 | done: | 134 | done: |
135 | gk20a_dbg_info(" done status %x", status); | 135 | nvgpu_log_info(g, " done status %x", status); |
136 | return status; | 136 | return status; |
137 | } | 137 | } |
138 | 138 | ||
@@ -141,7 +141,7 @@ u32 clk_vf_point_pmu_setup(struct gk20a *g) | |||
141 | u32 status; | 141 | u32 status; |
142 | struct boardobjgrp *pboardobjgrp = NULL; | 142 | struct boardobjgrp *pboardobjgrp = NULL; |
143 | 143 | ||
144 | gk20a_dbg_info(""); | 144 | nvgpu_log_info(g, " "); |
145 | 145 | ||
146 | pboardobjgrp = &g->clk_pmu.clk_vf_pointobjs.super.super; | 146 | pboardobjgrp = &g->clk_pmu.clk_vf_pointobjs.super.super; |
147 | 147 | ||
@@ -150,7 +150,7 @@ u32 clk_vf_point_pmu_setup(struct gk20a *g) | |||
150 | 150 | ||
151 | status = pboardobjgrp->pmuinithandle(g, pboardobjgrp); | 151 | status = pboardobjgrp->pmuinithandle(g, pboardobjgrp); |
152 | 152 | ||
153 | gk20a_dbg_info("Done"); | 153 | nvgpu_log_info(g, "Done"); |
154 | return status; | 154 | return status; |
155 | } | 155 | } |
156 | 156 | ||
@@ -187,7 +187,7 @@ static u32 _clk_vf_point_pmudatainit_volt(struct gk20a *g, | |||
187 | struct clk_vf_point_volt *pclk_vf_point_volt; | 187 | struct clk_vf_point_volt *pclk_vf_point_volt; |
188 | struct nv_pmu_clk_clk_vf_point_volt_boardobj_set *pset; | 188 | struct nv_pmu_clk_clk_vf_point_volt_boardobj_set *pset; |
189 | 189 | ||
190 | gk20a_dbg_info(""); | 190 | nvgpu_log_info(g, " "); |
191 | 191 | ||
192 | status = _clk_vf_point_pmudatainit_super(g, board_obj_ptr, ppmudata); | 192 | status = _clk_vf_point_pmudatainit_super(g, board_obj_ptr, ppmudata); |
193 | if (status != 0) | 193 | if (status != 0) |
@@ -214,7 +214,7 @@ static u32 _clk_vf_point_pmudatainit_freq(struct gk20a *g, | |||
214 | struct clk_vf_point_freq *pclk_vf_point_freq; | 214 | struct clk_vf_point_freq *pclk_vf_point_freq; |
215 | struct nv_pmu_clk_clk_vf_point_freq_boardobj_set *pset; | 215 | struct nv_pmu_clk_clk_vf_point_freq_boardobj_set *pset; |
216 | 216 | ||
217 | gk20a_dbg_info(""); | 217 | nvgpu_log_info(g, " "); |
218 | 218 | ||
219 | status = _clk_vf_point_pmudatainit_super(g, board_obj_ptr, ppmudata); | 219 | status = _clk_vf_point_pmudatainit_super(g, board_obj_ptr, ppmudata); |
220 | if (status != 0) | 220 | if (status != 0) |
@@ -297,7 +297,7 @@ struct clk_vf_point *construct_clk_vf_point(struct gk20a *g, void *pargs) | |||
297 | struct boardobj *board_obj_ptr = NULL; | 297 | struct boardobj *board_obj_ptr = NULL; |
298 | u32 status; | 298 | u32 status; |
299 | 299 | ||
300 | gk20a_dbg_info(""); | 300 | nvgpu_log_info(g, " "); |
301 | switch (BOARDOBJ_GET_TYPE(pargs)) { | 301 | switch (BOARDOBJ_GET_TYPE(pargs)) { |
302 | case CTRL_CLK_CLK_VF_POINT_TYPE_FREQ: | 302 | case CTRL_CLK_CLK_VF_POINT_TYPE_FREQ: |
303 | status = clk_vf_point_construct_freq(g, &board_obj_ptr, | 303 | status = clk_vf_point_construct_freq(g, &board_obj_ptr, |
@@ -316,7 +316,7 @@ struct clk_vf_point *construct_clk_vf_point(struct gk20a *g, void *pargs) | |||
316 | if (status) | 316 | if (status) |
317 | return NULL; | 317 | return NULL; |
318 | 318 | ||
319 | gk20a_dbg_info(" Done"); | 319 | nvgpu_log_info(g, " Done"); |
320 | 320 | ||
321 | return (struct clk_vf_point *)board_obj_ptr; | 321 | return (struct clk_vf_point *)board_obj_ptr; |
322 | } | 322 | } |
@@ -329,7 +329,7 @@ static u32 _clk_vf_point_pmudatainit_super(struct gk20a *g, | |||
329 | struct clk_vf_point *pclk_vf_point; | 329 | struct clk_vf_point *pclk_vf_point; |
330 | struct nv_pmu_clk_clk_vf_point_boardobj_set *pset; | 330 | struct nv_pmu_clk_clk_vf_point_boardobj_set *pset; |
331 | 331 | ||
332 | gk20a_dbg_info(""); | 332 | nvgpu_log_info(g, " "); |
333 | 333 | ||
334 | status = boardobj_pmudatainit_super(g, board_obj_ptr, ppmudata); | 334 | status = boardobj_pmudatainit_super(g, board_obj_ptr, ppmudata); |
335 | if (status != 0) | 335 | if (status != 0) |
@@ -355,7 +355,7 @@ static u32 clk_vf_point_update(struct gk20a *g, | |||
355 | struct clk_vf_point *pclk_vf_point; | 355 | struct clk_vf_point *pclk_vf_point; |
356 | struct nv_pmu_clk_clk_vf_point_boardobj_get_status *pstatus; | 356 | struct nv_pmu_clk_clk_vf_point_boardobj_get_status *pstatus; |
357 | 357 | ||
358 | gk20a_dbg_info(""); | 358 | nvgpu_log_info(g, " "); |
359 | 359 | ||
360 | 360 | ||
361 | pclk_vf_point = | 361 | pclk_vf_point = |
@@ -388,7 +388,7 @@ u32 clk_vf_point_cache(struct gk20a *g) | |||
388 | u32 status; | 388 | u32 status; |
389 | u8 index; | 389 | u8 index; |
390 | 390 | ||
391 | gk20a_dbg_info(""); | 391 | nvgpu_log_info(g, " "); |
392 | pclk_vf_points = &g->clk_pmu.clk_vf_pointobjs; | 392 | pclk_vf_points = &g->clk_pmu.clk_vf_pointobjs; |
393 | pboardobjgrp = &pclk_vf_points->super.super; | 393 | pboardobjgrp = &pclk_vf_points->super.super; |
394 | pboardobjgrpmask = &pclk_vf_points->super.mask.super; | 394 | pboardobjgrpmask = &pclk_vf_points->super.mask.super; |