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/vgpu/vgpu.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'drivers/gpu/nvgpu/vgpu/vgpu.c') diff --git a/drivers/gpu/nvgpu/vgpu/vgpu.c b/drivers/gpu/nvgpu/vgpu/vgpu.c index 1e77cda9..17e80cd7 100644 --- a/drivers/gpu/nvgpu/vgpu/vgpu.c +++ b/drivers/gpu/nvgpu/vgpu/vgpu.c @@ -249,7 +249,7 @@ void vgpu_detect_chip(struct gk20a *g) p->gpu_impl = priv->constants.impl; p->gpu_rev = priv->constants.rev; - gk20a_dbg_info("arch: %x, impl: %x, rev: %x\n", + nvgpu_log_info(g, "arch: %x, impl: %x, rev: %x\n", p->gpu_arch, p->gpu_impl, p->gpu_rev); @@ -259,7 +259,7 @@ int vgpu_init_gpu_characteristics(struct gk20a *g) { int err; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); err = gk20a_init_gpu_characteristics(g); if (err) @@ -279,7 +279,7 @@ int vgpu_read_ptimer(struct gk20a *g, u64 *value) struct tegra_vgpu_read_ptimer_params *p = &msg.params.read_ptimer; int err; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); msg.cmd = TEGRA_VGPU_CMD_READ_PTIMER; msg.handle = vgpu_get_handle(g); @@ -304,7 +304,7 @@ int vgpu_get_timestamps_zipper(struct gk20a *g, int err; u32 i; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); if (count > TEGRA_VGPU_GET_TIMESTAMPS_ZIPPER_MAX_COUNT) { nvgpu_err(g, "count %u overflow", count); @@ -338,7 +338,7 @@ int vgpu_init_hal(struct gk20a *g) switch (ver) { case NVGPU_GPUID_GP10B: - gk20a_dbg_info("gp10b detected"); + nvgpu_log_info(g, "gp10b detected"); err = vgpu_gp10b_init_hal(g); break; case NVGPU_GPUID_GV11B: @@ -360,7 +360,7 @@ int vgpu_get_constants(struct gk20a *g) struct vgpu_priv_data *priv = vgpu_get_priv_data(g); int err; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); msg.cmd = TEGRA_VGPU_CMD_GET_CONSTANTS; msg.handle = vgpu_get_handle(g); -- cgit v1.2.2