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/cde_gp10b.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'drivers/gpu/nvgpu/common/linux/cde_gp10b.c') diff --git a/drivers/gpu/nvgpu/common/linux/cde_gp10b.c b/drivers/gpu/nvgpu/common/linux/cde_gp10b.c index 483a3ee7..5c0e79a7 100644 --- a/drivers/gpu/nvgpu/common/linux/cde_gp10b.c +++ b/drivers/gpu/nvgpu/common/linux/cde_gp10b.c @@ -1,7 +1,7 @@ /* * GP10B CDE * - * Copyright (c) 2015-2017, NVIDIA CORPORATION. All rights reserved. + * Copyright (c) 2015-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"), @@ -117,7 +117,7 @@ int gp10b_populate_scatter_buffer(struct gk20a *g, u64 surf_pa = sg_phys(sg); unsigned int n = (int)(sg->length >> page_size_log2); - gk20a_dbg(gpu_dbg_cde, "surfPA=0x%llx + %d pages", surf_pa, n); + nvgpu_log(g, gpu_dbg_cde, "surfPA=0x%llx + %d pages", surf_pa, n); for (j=0; j < n && pages_left > 0; j++, surf_pa += page_size) { u32 addr = (((u32)(surf_pa>>7)) & getSliceMaskGP10B) >> page_size_shift; @@ -143,9 +143,9 @@ int gp10b_populate_scatter_buffer(struct gk20a *g, scatter_buffer[page >> 3] = d; if (nvgpu_log_mask_enabled(g, gpu_dbg_cde)) { - gk20a_dbg(gpu_dbg_cde, "scatterBuffer content:"); + nvgpu_log(g, gpu_dbg_cde, "scatterBuffer content:"); for (i = 0; i < page >> 3; i++) { - gk20a_dbg(gpu_dbg_cde, " %x", scatter_buffer[i]); + nvgpu_log(g, gpu_dbg_cde, " %x", scatter_buffer[i]); } } -- cgit v1.2.2