summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c')
-rw-r--r--drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c11
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:
125void vgpu_css_release_snapshot_buffer(struct gr_gk20a *gr) 125void 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
141int vgpu_css_flush_snapshots(struct channel_gk20a *ch, 142int 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);