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/common/linux/vgpu/css_vgpu.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/common/linux/vgpu/css_vgpu.c')
-rw-r--r-- | drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c b/drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c index fe9dc670..ba2bf58b 100644 --- a/drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c +++ b/drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c | |||
@@ -86,7 +86,7 @@ static int vgpu_css_init_snapshot_buffer(struct gr_gk20a *gr) | |||
86 | int err; | 86 | int err; |
87 | u64 size; | 87 | u64 size; |
88 | 88 | ||
89 | gk20a_dbg_fn(""); | 89 | nvgpu_log_fn(g, " "); |
90 | 90 | ||
91 | if (data->hw_snapshot) | 91 | if (data->hw_snapshot) |
92 | return 0; | 92 | return 0; |
@@ -125,6 +125,7 @@ fail: | |||
125 | void vgpu_css_release_snapshot_buffer(struct gr_gk20a *gr) | 125 | void vgpu_css_release_snapshot_buffer(struct gr_gk20a *gr) |
126 | { | 126 | { |
127 | struct gk20a_cs_snapshot *data = gr->cs_data; | 127 | struct gk20a_cs_snapshot *data = gr->cs_data; |
128 | struct gk20a *g = gr->g; | ||
128 | 129 | ||
129 | if (!data->hw_snapshot) | 130 | if (!data->hw_snapshot) |
130 | return; | 131 | return; |
@@ -135,7 +136,7 @@ void vgpu_css_release_snapshot_buffer(struct gr_gk20a *gr) | |||
135 | vgpu_ivm_mempool_unreserve(css_cookie); | 136 | vgpu_ivm_mempool_unreserve(css_cookie); |
136 | css_cookie = NULL; | 137 | css_cookie = NULL; |
137 | 138 | ||
138 | gk20a_dbg_info("cyclestats(vgpu): buffer for snapshots released\n"); | 139 | nvgpu_log_info(g, "cyclestats(vgpu): buffer for snapshots released\n"); |
139 | } | 140 | } |
140 | 141 | ||
141 | int vgpu_css_flush_snapshots(struct channel_gk20a *ch, | 142 | int vgpu_css_flush_snapshots(struct channel_gk20a *ch, |
@@ -148,7 +149,7 @@ int vgpu_css_flush_snapshots(struct channel_gk20a *ch, | |||
148 | struct gk20a_cs_snapshot *data = gr->cs_data; | 149 | struct gk20a_cs_snapshot *data = gr->cs_data; |
149 | int err; | 150 | int err; |
150 | 151 | ||
151 | gk20a_dbg_fn(""); | 152 | nvgpu_log_fn(g, " "); |
152 | 153 | ||
153 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; | 154 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; |
154 | msg.handle = vgpu_get_handle(g); | 155 | msg.handle = vgpu_get_handle(g); |
@@ -176,7 +177,7 @@ static int vgpu_css_attach(struct channel_gk20a *ch, | |||
176 | &msg.params.cyclestats_snapshot; | 177 | &msg.params.cyclestats_snapshot; |
177 | int err; | 178 | int err; |
178 | 179 | ||
179 | gk20a_dbg_fn(""); | 180 | nvgpu_log_fn(g, " "); |
180 | 181 | ||
181 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; | 182 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; |
182 | msg.handle = vgpu_get_handle(g); | 183 | msg.handle = vgpu_get_handle(g); |
@@ -203,7 +204,7 @@ int vgpu_css_detach(struct channel_gk20a *ch, | |||
203 | &msg.params.cyclestats_snapshot; | 204 | &msg.params.cyclestats_snapshot; |
204 | int err; | 205 | int err; |
205 | 206 | ||
206 | gk20a_dbg_fn(""); | 207 | nvgpu_log_fn(g, " "); |
207 | 208 | ||
208 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; | 209 | msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; |
209 | msg.handle = vgpu_get_handle(g); | 210 | msg.handle = vgpu_get_handle(g); |