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/lpwr/lpwr.c | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'drivers/gpu/nvgpu/lpwr/lpwr.c') diff --git a/drivers/gpu/nvgpu/lpwr/lpwr.c b/drivers/gpu/nvgpu/lpwr/lpwr.c index c470f330..751965e6 100644 --- a/drivers/gpu/nvgpu/lpwr/lpwr.c +++ b/drivers/gpu/nvgpu/lpwr/lpwr.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2016-2018, NVIDIA CORPORATION. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), @@ -185,7 +185,7 @@ u32 nvgpu_lpwr_pg_setup(struct gk20a *g) { u32 err = 0; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); err = get_lpwr_gr_table(g); if (err) @@ -206,7 +206,7 @@ static void nvgpu_pmu_handle_param_lpwr_msg(struct gk20a *g, { u32 *ack_status = param; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); if (status != 0) { nvgpu_err(g, "LWPR PARAM cmd aborted"); @@ -227,7 +227,7 @@ int nvgpu_lwpr_mclk_change(struct gk20a *g, u32 pstate) struct clk_set_info *pstate_info; u32 ack_status = 0; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); pstate_info = pstate_get_clk_set_info(g, pstate, clkwhich_mclk); @@ -308,7 +308,7 @@ u32 nvgpu_lpwr_is_mscg_supported(struct gk20a *g, u32 pstate_num) struct pstate *pstate = pstate_find(g, pstate_num); u32 ms_idx; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); if (!pstate) return 0; @@ -329,7 +329,7 @@ u32 nvgpu_lpwr_is_rppg_supported(struct gk20a *g, u32 pstate_num) struct pstate *pstate = pstate_find(g, pstate_num); u32 idx; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); if (!pstate) return 0; @@ -350,7 +350,7 @@ int nvgpu_lpwr_enable_pg(struct gk20a *g, bool pstate_lock) u32 is_rppg_supported = 0; u32 present_pstate = 0; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); if (pstate_lock) nvgpu_clk_arb_pstate_change_lock(g, true); @@ -387,7 +387,7 @@ int nvgpu_lpwr_disable_pg(struct gk20a *g, bool pstate_lock) u32 is_rppg_supported = 0; u32 present_pstate = 0; - gk20a_dbg_fn(""); + nvgpu_log_fn(g, " "); if (pstate_lock) nvgpu_clk_arb_pstate_change_lock(g, true); @@ -417,6 +417,6 @@ exit_unlock: if (pstate_lock) nvgpu_clk_arb_pstate_change_lock(g, false); - gk20a_dbg_fn("done"); + nvgpu_log_fn(g, "done"); return status; } -- cgit v1.2.2