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/gk20a/pramin_gk20a.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/gk20a/pramin_gk20a.c')
-rw-r--r-- | drivers/gpu/nvgpu/gk20a/pramin_gk20a.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/nvgpu/gk20a/pramin_gk20a.c b/drivers/gpu/nvgpu/gk20a/pramin_gk20a.c index a76e2580..8dde61a2 100644 --- a/drivers/gpu/nvgpu/gk20a/pramin_gk20a.c +++ b/drivers/gpu/nvgpu/gk20a/pramin_gk20a.c | |||
@@ -45,7 +45,7 @@ u32 gk20a_pramin_enter(struct gk20a *g, struct nvgpu_mem *mem, | |||
45 | bus_bar0_window_target_vid_mem_f()) | | 45 | bus_bar0_window_target_vid_mem_f()) | |
46 | bus_bar0_window_base_f(hi); | 46 | bus_bar0_window_base_f(hi); |
47 | 47 | ||
48 | gk20a_dbg(gpu_dbg_mem, | 48 | nvgpu_log(g, gpu_dbg_mem, |
49 | "0x%08x:%08x begin for %p,%p at [%llx,%llx] (sz %llx)", | 49 | "0x%08x:%08x begin for %p,%p at [%llx,%llx] (sz %llx)", |
50 | hi, lo, mem, sgl, bufbase, | 50 | hi, lo, mem, sgl, bufbase, |
51 | bufbase + nvgpu_sgt_get_phys(g, sgt, sgl), | 51 | bufbase + nvgpu_sgt_get_phys(g, sgt, sgl), |
@@ -67,7 +67,7 @@ u32 gk20a_pramin_enter(struct gk20a *g, struct nvgpu_mem *mem, | |||
67 | void gk20a_pramin_exit(struct gk20a *g, struct nvgpu_mem *mem, | 67 | void gk20a_pramin_exit(struct gk20a *g, struct nvgpu_mem *mem, |
68 | struct nvgpu_sgl *sgl) | 68 | struct nvgpu_sgl *sgl) |
69 | { | 69 | { |
70 | gk20a_dbg(gpu_dbg_mem, "end for %p,%p", mem, sgl); | 70 | nvgpu_log(g, gpu_dbg_mem, "end for %p,%p", mem, sgl); |
71 | 71 | ||
72 | nvgpu_spinlock_release(&g->mm.pramin_window_lock); | 72 | nvgpu_spinlock_release(&g->mm.pramin_window_lock); |
73 | } | 73 | } |