From dd739fcb039d51606e9a5454ec0aab17bcb01965 Mon Sep 17 00:00:00 2001 From: Terje Bergstrom Date: Wed, 18 Apr 2018 19:39:46 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1704148 Reviewed-by: mobile promotions Tested-by: mobile promotions --- drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/vgpu/css_vgpu.c') 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) int err; u64 size; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); if (data->hw_snapshot) return 0; @@ -125,6 +125,7 @@ fail: void vgpu_css_release_snapshot_buffer(struct gr_gk20a *gr) { struct gk20a_cs_snapshot *data = gr->cs_data; + struct gk20a *g = gr->g; if (!data->hw_snapshot) return; @@ -135,7 +136,7 @@ void vgpu_css_release_snapshot_buffer(struct gr_gk20a *gr) vgpu_ivm_mempool_unreserve(css_cookie); css_cookie = NULL; - gk20a_dbg_info("cyclestats(vgpu): buffer for snapshots released\n"); + nvgpu_log_info(g, "cyclestats(vgpu): buffer for snapshots released\n"); } int vgpu_css_flush_snapshots(struct channel_gk20a *ch, @@ -148,7 +149,7 @@ int vgpu_css_flush_snapshots(struct channel_gk20a *ch, struct gk20a_cs_snapshot *data = gr->cs_data; int err; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; msg.handle = vgpu_get_handle(g); @@ -176,7 +177,7 @@ static int vgpu_css_attach(struct channel_gk20a *ch, &msg.params.cyclestats_snapshot; int err; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; msg.handle = vgpu_get_handle(g); @@ -203,7 +204,7 @@ int vgpu_css_detach(struct channel_gk20a *ch, &msg.params.cyclestats_snapshot; int err; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); msg.cmd = TEGRA_VGPU_CMD_CHANNEL_CYCLESTATS_SNAPSHOT; msg.handle = vgpu_get_handle(g); -- cgit v1.2.2